* Should new code have forward declarations of static functions or not?
@ 2018-05-18 16:44 Simon Que
2018-05-18 17:06 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Simon Que @ 2018-05-18 16:44 UTC (permalink / raw)
To: linux-kernel
Is it preferred to have forward declarations of static funcs, or to omit
them altogether?
I know that different files in kernel code follow one style or the other.
Just wondering if there's a preferred style for new code.
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Should new code have forward declarations of static functions or not?
2018-05-18 16:44 Should new code have forward declarations of static functions or not? Simon Que
@ 2018-05-18 17:06 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2018-05-18 17:06 UTC (permalink / raw)
To: Simon Que; +Cc: linux-kernel
On Fri, May 18, 2018 at 12:44:31PM -0400, Simon Que wrote:
> Is it preferred to have forward declarations of static funcs, or to omit
> them altogether?
There are cases where you need them. But in general if you do not
absolutely need them try to avoid them.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-18 17:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-18 16:44 Should new code have forward declarations of static functions or not? Simon Que
2018-05-18 17:06 ` Christoph Hellwig
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.