staging: vme_user: Added blank line after declarations
Subsystems (3)
PATCH 1/1 staging: vme_user: Added blank line after declarations
Fixes below warning reported by checkpatch.
WARNING: Missing a blank line after declarations
Signed-off-by Rohit Chavan <[email protected]>
--- drivers/staging/vme_user/vme_fake.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/vme_user/vme_fake.c +1 -0
@@ -67,6 +67,7 @@ struct fake_driver {unsigned long long lm_base;u32 lm_aspace;u32 lm_cycle; +void (*lm_callback[4 ])(void *);void *lm_data[4 ];struct tasklet_struct int_tasklet;
--
2.34.1
Quoted 4 lines · Rohit Chavan
Fixes below warning reported by checkpatch.
WARNING: Missing a blank line after declarationsSigned-off-by Rohit Chavan <[email protected]>
This is a checkpatch false positive. (It's not "after declarations"). Just ignore it.
regards,
dan carpenter
Joe Perches
maintainerQuoted 9 lines · Dan Carpenter
Quoted 4 lines · Rohit Chavan
Fixes below warning reported by checkpatch.
WARNING: Missing a blank line after declarationsSigned-off-by Rohit Chavan <[email protected]>This is a checkpatch false positive. (It's not "after declarations"). Just ignore it.
checkpatch could accept function pointer and function pointer arrays
--- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +2 -1
@@ -1073,6 +1073,7 @@ our $Typecast = qr{\s*(\(\s*$NonptrType\s*\)){0,1}\s*}; # Any use must be runtime checked with $^V our $balanced_parens = qr/(\((?:[^\(\)]++|(?-1))*\))/; +our $balanced_brackets = qr/(\[(?:[^\[\]]++|(?-1))*\])/; our $LvalOrFunc = qr{((?:[\&\*]\s*)?$Lval)\s*($balanced_parens{0,1})\s*}; our $FuncArg = qr{$Typecast{0,1}($LvalOrFunc|$Constant|$String)};
@@ -4107,7 +4108,7 @@ sub process { # looks like a declaration !($sl =~ /^\+\s+$Declare\s*$Ident\s*[=,;:\[]/ || # function pointer declarations - $sl =~ /^\+\s+$Declare\s*\(\s*\*\s*$Ident\s*\)\s*[=,;:\[\(]/ || + $sl =~ /^\+\s+$Declare\s*\(\s*\*\s*$Ident(?:\s*$balanced_brackets)*\s*\)\s*[=,;:\[\(]/ || # foo bar; where foo is some local typedef or #define $sl =~ /^\+\s+$Ident(?:\s+|\s*\*\s*)$Ident\s*[=,;\[]/ || # known declaration macros