[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <kspuuk$k2v$1@ger.gmane.org>
Date: Thu, 25 Jul 2013 01:27:49 +0000 (UTC)
From: Cong Wang <xiyou.wangcong@...il.com>
To: linux-kernel@...r.kernel.org
Cc: netdev@...r.kernel.org
Subject: Re: [RFC PATCH - diffstat only] include/net: Remove extern from
function prototypes
On Tue, 23 Jul 2013 at 17:58 GMT, Joe Perches <joe@...ches.com> wrote:
> 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.
>
Since we all know this, why bother it? Having "extern" doesn't harm
readability, instead it probably helps.
...
>
> I believe it makes grepping for extern useful as
> all the matches are actual variables and structs.
>
You need a semantic tool.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists