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
88pm8607.c -rw-r--r-- 13.4 KB
Kconfig -rw-r--r-- 12.2 KB
Makefile -rw-r--r-- 2.7 KB
aat2870-regulator.c -rw-r--r-- 6.0 KB
ab3100.c -rw-r--r-- 15.7 KB
ab8500.c -rw-r--r-- 23.0 KB
ad5398.c -rw-r--r-- 6.4 KB
anatop-regulator.c -rw-r--r-- 6.6 KB
core.c -rw-r--r-- 90.1 KB
da903x.c -rw-r--r-- 15.5 KB
da9052-regulator.c -rw-r--r-- 12.5 KB
db8500-prcmu.c -rw-r--r-- 14.5 KB
dbx500-prcmu.c -rw-r--r-- 5.8 KB
dbx500-prcmu.h -rw-r--r-- 1.5 KB
dummy.c -rw-r--r-- 2.1 KB
dummy.h -rw-r--r-- 718 bytes
fixed-helper.c -rw-r--r-- 1.4 KB
fixed.c -rw-r--r-- 8.3 KB
gpio-regulator.c -rw-r--r-- 9.0 KB
isl6271a-regulator.c -rw-r--r-- 4.7 KB
lp3971.c -rw-r--r-- 12.8 KB
lp3972.c -rw-r--r-- 15.7 KB
max1586.c -rw-r--r-- 7.4 KB
max8649.c -rw-r--r-- 7.9 KB
max8660.c -rw-r--r-- 12.2 KB
max8925-regulator.c -rw-r--r-- 8.1 KB
max8952.c -rw-r--r-- 8.6 KB
max8997.c -rw-r--r-- 29.9 KB
max8998.c -rw-r--r-- 23.5 KB
mc13783-regulator.c -rw-r--r-- 13.3 KB
mc13892-regulator.c -rw-r--r-- 19.2 KB
mc13xxx-regulator-core.c -rw-r--r-- 7.4 KB
mc13xxx.h -rw-r--r-- 3.6 KB
of_regulator.c -rw-r--r-- 4.1 KB
palmas-regulator.c -rw-r--r-- 18.8 KB
pcap-regulator.c -rw-r--r-- 7.5 KB
pcf50633-regulator.c -rw-r--r-- 6.6 KB
rc5t583-regulator.c -rw-r--r-- 7.5 KB
s5m8767.c -rw-r--r-- 19.8 KB
tps6105x-regulator.c -rw-r--r-- 5.0 KB
tps62360-regulator.c -rw-r--r-- 15.5 KB
tps65023-regulator.c -rw-r--r-- 13.3 KB
tps6507x-regulator.c -rw-r--r-- 12.0 KB
tps65090-regulator.c -rw-r--r-- 3.9 KB
tps65217-regulator.c -rw-r--r-- 10.1 KB
tps6524x-regulator.c -rw-r--r-- 15.1 KB
tps6586x-regulator.c -rw-r--r-- 11.0 KB
tps65910-regulator.c -rw-r--r-- 34.0 KB
tps65912-regulator.c -rw-r--r-- 12.6 KB
twl-regulator.c -rw-r--r-- 34.4 KB
userspace-consumer.c -rw-r--r-- 4.5 KB
virtual.c -rw-r--r-- 8.5 KB
wm831x-dcdc.c -rw-r--r-- 25.9 KB
wm831x-isink.c -rw-r--r-- 6.4 KB
wm831x-ldo.c -rw-r--r-- 20.3 KB
wm8350-regulator.c -rw-r--r-- 38.4 KB
wm8400-regulator.c -rw-r--r-- 8.5 KB
wm8994-regulator.c -rw-r--r-- 6.1 KB

back to top