[openib-general] new sparse warnings
Roland Dreier
roland at topspin.com
Wed Dec 15 13:42:46 PST 2004
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.
- R.
More information about the general
mailing list