Re: [PATCH 2/3 RESEND] ptrace: cleanup address space conversion onptrace_request()

From: Namhyung Kim
Date: Mon Aug 23 2010 - 12:38:20 EST


2010-08-23 (Mon), 12:21 -0400, Christoph Hellwig:
> Just make this a
>
> void __user *datap = (void __user *)data;
>
> and you can pass it around withjout additional casts. Also no need
> for the force here I think.
>

But removing __force results in following sparse warning:

ptrace.c:567:40: warning: cast adds address space to expression
(<asn:1>)


--
Regards,
Namhyung Kim


--
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/