在 2021/3/18 4:09, Ingo Molnar 写道:
* Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
Now, the C people figured that distinction was useless and allowedFully agreed, and my other point was that it's also consistent with
sloppiness. But I still think there's merrit to that. And as
mentioned earlier, it is consistent with variable declarations.
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.
Thank you all for the reply!
There are already mixing different styles within linux/smp.h. I mean 'extern' and
non 'extern' func declarations both exist in this header. Since two of you three
think that 'extern' is needed, I'll add it and resend my patch.