[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YFH0sDpUIUmdpNkQ@hirez.programming.kicks-ass.net>
Date: Wed, 17 Mar 2021 13:23:12 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Christophe Leroy <christophe.leroy@...roup.eu>
Cc: Ingo Molnar <mingo@...nel.org>, He Ying <heying24@...wei.com>,
frederic@...nel.org, paulmck@...nel.org, clg@...d.org,
qais.yousef@....com, johnny.chenyi@...wei.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] smp: kernel/panic.c - silence warnings
On Wed, Mar 17, 2021 at 12:00:29PM +0100, Christophe Leroy wrote:
> What do you mean ? 'extern' prototype is pointless for function prototypes
> and deprecated, no new function prototypes should be added with the 'extern'
> keyword.
>
> checkpatch.pl tells you: "extern prototypes should be avoided in .h files"
I have a very strong preference for extern on function decls, to match
the extern on variable decl.
Checkpatch is just wrong here.
Powered by blists - more mailing lists