Revision c67e5382fb3f312c95d8d01db40fb398e6da454d authored by H Hartley Sweeten on 31 May 2012, 23:26:10 UTC, committed by Linus Torvalds on 01 June 2012, 00:49:27 UTC
The init/mount.o source files produce a number of sparse warnings of the
type:

warning: incorrect type in argument 1 (different address spaces)
   expected char [noderef] <asn:1>*dev_name
   got char *name

This is due to the syscalls expecting some of the arguments to be user
pointers but they are being passed as kernel pointers.  This is harmless
but adds a lot of noise to a sparse build.

To limit the noise just disable the sparse checking in the relevant source
files, but still display a warning so that the user knows this has been
done.

Since the sparse checking has been disabled we can also remove the __user
__force casts that are scattered thru the source.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 243f380
History
File Mode Size
i1480
Kconfig -rw-r--r-- 2.5 KB
Makefile -rw-r--r-- 448 bytes
address.c -rw-r--r-- 10.1 KB
allocator.c -rw-r--r-- 9.9 KB
beacon.c -rw-r--r-- 16.2 KB
driver.c -rw-r--r-- 3.8 KB
drp-avail.c -rw-r--r-- 8.6 KB
drp-ie.c -rw-r--r-- 9.5 KB
drp.c -rw-r--r-- 24.1 KB
est.c -rw-r--r-- 13.4 KB
hwa-rc.c -rw-r--r-- 27.7 KB
ie-rcv.c -rw-r--r-- 1.6 KB
ie.c -rw-r--r-- 9.6 KB
lc-dev.c -rw-r--r-- 12.8 KB
lc-rc.c -rw-r--r-- 10.9 KB
neh.c -rw-r--r-- 17.8 KB
pal.c -rw-r--r-- 2.3 KB
radio.c -rw-r--r-- 4.6 KB
reset.c -rw-r--r-- 11.0 KB
rsv.c -rw-r--r-- 26.9 KB
scan.c -rw-r--r-- 4.1 KB
umc-bus.c -rw-r--r-- 5.5 KB
umc-dev.c -rw-r--r-- 2.2 KB
umc-drv.c -rw-r--r-- 845 bytes
uwb-debug.c -rw-r--r-- 9.4 KB
uwb-internal.h -rw-r--r-- 11.1 KB
uwbd.c -rw-r--r-- 10.2 KB
whc-rc.c -rw-r--r-- 13.2 KB
whci.c -rw-r--r-- 6.5 KB

back to top