All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] scripts/checkpatch.pl: fix false warning of externschecking.
       [not found] <201710111121397732689@zte.com.cn>
@ 2017-10-11  3:29 ` Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2017-10-11  3:29 UTC (permalink / raw)
  To: jiang.biao2; +Cc: apw, linux-kernel, zhong.weidong

On Wed, 2017-10-11 at 11:21 +0800, jiang.biao2@zte.com.cn wrote:
> > On Tue, 2017-10-10 at 16:42 +0800, Jiang Biao wrote:
> > > When adding a function declaration in a .c file without an extern
> > > keywork decoration, checkpatch.pl will complain *externs should be
> > > avoided in .c files* false warning. This patch fix the bug.
> > nack.
> > The point is that external function declarations should be
> > done via #include.
> Hi Joe,

Hello Jiang

> Understood. But there are already some external function declarations in 
> .c files in current kernel, for instance line 505 in kernel/stop_machine.c,
> 
> extern void sched_set_stop_task(int cpu, struct task_struct *stop);
> 
> Should these be fixed? But maybe in some rare cases, external funciton 
> declarations in .c files are necessary.

Perhaps, but in those cases checkpatch messages should be ignored.

cheers, Joe

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-11  3:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <201710111121397732689@zte.com.cn>
2017-10-11  3:29 ` [PATCH] scripts/checkpatch.pl: fix false warning of externschecking Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.