Re: [RFC PATCH - diffstat only] include/net: Remove extern fromfunction prototypes
From: Stephen Rothwell
Date: Tue Jul 30 2013 - 03:38:10 EST
On Tue, 30 Jul 2013 00:10:01 -0700 (PDT) David Miller <davem@xxxxxxxxxxxxx> wrote:
> From: Joe Perches <joe@xxxxxxxxxxx>
> Date: Tue, 23 Jul 2013 10:58:11 -0700
> > Function prototypes don't need to be declared
> > extern in .h files. It's assumed by the compiler
> > and is as unnecessary as using auto is when
> > declaring automatic/local variables in a block.
> > I ran a script to remove these unnecessary extern
> > uses from function prototypes in include/net/ as
> > well as reflow the function arguments to 80 cols.
> > It's 370KB, far too large to submit at once.
> > Of course it could be broken into multiple patches
> > for the various directories/subsystems.
> No objections from me.
I must admit I prefer the other way (i.e. with the explicit extern). If
nothing else it makes it consistent with variable declarations in header
files (which need the extern) and "static inlines" ...
Making these churn changes also will almost certainly cause unnecessary
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
Description: PGP signature