[openib-general] new sparse warnings
Tom Duffy
Tom.Duffy at Sun.COM
Wed Dec 15 13:55:39 PST 2004
On Wed, 2004-12-15 at 13:42 -0800, Roland Dreier wrote:
> I'm puzzled by that sparse warning. I get no complaint on i386, and
> the line in question seems to be
>
> if (put_user(agent_id,
> (u32 __user *) (arg + offsetof(struct ib_user_mad_reg_req, id)))) {
>
> which I believe is correctly annotated. A quick glance at <asm-x86_64/uaccess.h>
> shows the definition of put_user() to be way to obfuscated to
> understand quickly but my first guess would be that there is some
> subtle difference between the i386 and x86_64 versions that triggers
> the warning.
Yeah, I started down this route as well, and ran into the same
confusion. I thought maybe somebody smarter than me could figure it
out...
-tduffy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20041215/68bf5e29/attachment.sig>
More information about the general
mailing list