1 New compile/sparse warning (overnight build)

From: John Cherry
Date: Wed Sep 29 2004 - 12:28:54 EST


This sparse warning was introduced with patch 1.2000 (axboe).
In fs/bio.c (line 509),

if (copy_from_user(addr, (char *) p, bvec->bv_len))

should probably be

if (copy_from_user(addr, (char __user *) p, bvec->bv_len))

John

--------------------------------------------------------------

Compiler: gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Arch: i386


Summary:
New warnings = 1
Fixed warnings = 3

New warnings:
-------------
fs/bio.c:509:30: warning: incorrect type in argument 2 (different
address spaces)
fs/bio.c:509:30: expected void const [noderef] *from<asn:1>
fs/bio.c:509:30: got char *<noident>


Fixed warnings:
---------------
fs/bio.c:392:20: warning: incorrect type in argument 1 (different
address spaces)
fs/bio.c:392:20: expected void [noderef] *to<asn:1>
fs/bio.c:392:20: got char *uaddr

fs/bio.c:462:31: warning: incorrect type in argument 2 (different
address spaces)
fs/bio.c:462:31: expected void const [noderef] *from<asn:1>
fs/bio.c:462:31: got char *<noident>

kernel/sys.c:1737:34: warning: incorrect type in argument 2 (different
address spaces)
kernel/sys.c:1737:34: expected char const [noderef] *src<asn:1>
kernel/sys.c:1737:34: got char *<noident>



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/