lkml.org 
[lkml]   [2016]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: suppress sparse warning in copy_to_user()
>>> On 04.10.16 at 10:49, <johannes@sipsolutions.net> wrote:
>> > > If that was the case, everyone should have seen such warnings
>> > > from the day the original patch got introduced.
>> >
>> > Only if they run sparse. Clearly people don't, or we wouldn't have
>> > a history of a ton of such problems, e.g.
>>
>> No - you say "which gcc declares with (void *, int type) prototype".
>> If that was the case, there would need to be a warning.
>
> There would need to be a warning when?

If the declaration used "void *" instead of "const void *".

Jan

\
 
 \ /
  Last update: 2016-10-04 11:03    [W:0.747 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site