Re: [PATCH] checkpatch: add *_NOTIFIER_HEAD as var definition

2019-07-02 Thread Joe Perches
On Tue, 2019-07-02 at 15:30 +0300, Gilad Ben-Yossef wrote: > Add *_NOTIFIER_HEAD as variable definition to avoid code like this: > > ATOMIC_NOTIFIER_HEAD(foo); > EXPORT_SYMBOL_GPL(foo); > > From triggering the the following warning: > WARNING: EXPORT_SYMBOL(foo); should immediately follow its fun

[PATCH] checkpatch: add *_NOTIFIER_HEAD as var definition

2019-07-02 Thread Gilad Ben-Yossef
Add *_NOTIFIER_HEAD as variable definition to avoid code like this: ATOMIC_NOTIFIER_HEAD(foo); EXPORT_SYMBOL_GPL(foo); >From triggering the the following warning: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable Signed-off-by: Gilad Ben-Yossef --- scripts/checkpatch