lkml.org 
[lkml]   [2021]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] smp: kernel/panic.c - silence warnings
From
Date


Le 17/03/2021 à 21:09, Ingo Molnar a écrit :
>
> * Peter Zijlstra <peterz@infradead.org> wrote:
>
>> Now, the C people figured that distinction was useless and allowed
>> sloppiness. But I still think there's merrit to that. And as
>> mentioned earlier, it is consistent with variable declarations.
>
> Fully agreed, and my other point was that it's also consistent with
> the other existing externs were used *in the same header file*
> already.
>
> I.e. there's nothing more sloppy than mixing different styles within
> the same header. Checkpatch needs to be fixed or ignored here.
>

As pointed by He there are already many prototypes not flagged 'extern' in that header. Blaming the
file shows that most remaining 'extern' are from the old days.

So adding new function prototypes with the 'extern' keywork wouldn't make the file less sloppy but
would be a step backwards.

I think there is a will to make all those unneccessary 'extern' flags disappear on the long term. To
achieve that there are two ways: Either smoothly do it on every function prototype modified or added
or at a point in time big-bang convert the entire file. The later hinders blamability of the file.

Maybe one day we'll convert all remaining 'extern' away once they have become the minority. To
achieve that we really need to not add new ones.

Christophe

\
 
 \ /
  Last update: 2021-03-18 07:06    [W:0.441 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site