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

Namhyung Kim
2010-08-23T16:38:16Z

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