diff options
author | Joe Perches <[email protected]> | 2014-04-03 14:49:28 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-04-03 16:21:15 -0700 |
commit | 3b617e3b80548096eda92ebd8382f76b139e011c (patch) | |
tree | e2613eb994f3ff9c89bdcf21a954c8fbcdd0bc0e /lib/memory-notifier-error-inject.c | |
parent | cc93319b5f2471ff2042ce62ea6da1f3bb3ce394 (diff) |
checkpatch: net and drivers/net: warn on missing blank line after variable declaration
Networking prefers this style, so warn when it's not used.
Networking uses:
void foo(int bar)
{
int baz;
code...
}
not
void foo(int bar)
{
int baz;
code...
}
There are a limited number of false positives when using macros to
declare variables like:
WARNING: networking uses a blank line after declarations
#330: FILE: net/ipv4/inet_hashtables.c:330:
+ int dif = sk->sk_bound_dev_if;
+ INET_ADDR_COOKIE(acookie, saddr, daddr)
Signed-off-by: Joe Perches <[email protected]>
Cc: David Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions