]> err.no Git - linux-2.6/commit
uml: Replace one-element array with zero-element array
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Sun, 6 May 2007 21:51:15 +0000 (14:51 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:13:02 +0000 (12:13 -0700)
commitc74c69b442364125fd13259ecaa4cd2ee43b9172
tree431e362c3402bd0f554aac1730d0264da71c0807
parent8c8408358f19a386298744829bf67b90c129ff18
uml: Replace one-element array with zero-element array

To look at users I did:
$ find arch/um/ include/asm-um -name '*.[ch]'|xargs grep -r 'net_kern\.h'
+-l|xargs grep '\<user\>'

Most users just cast user to the appropriate pointer, the remaining ones are
fixed here.  In net_kern.c, I'm almost sure that save trick is not needed
anymore, but I've not verified it.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/net_kern.c
arch/um/include/net_kern.h