mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	checkpatch: add early_param exception to blank line after struct/function test
Add early_param as another exception to the blank line preferred after function/struct/union declaration or definition test. Link: https://lkml.kernel.org/r/3bd6ada59f411a7685d7e64eeb670540d4bfdcde.camel@perches.com Signed-off-by: Joe Perches <joe@perches.com> Cc: Dwaipayan Ray <dwaipayanray1@gmail.com> Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									481efd7bd6
								
							
						
					
					
						commit
						05dc40e694
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -3926,7 +3926,7 @@ sub process {
 | 
				
			||||||
		if ($prevline =~ /^[\+ ]};?\s*$/ &&
 | 
							if ($prevline =~ /^[\+ ]};?\s*$/ &&
 | 
				
			||||||
		    $line =~ /^\+/ &&
 | 
							    $line =~ /^\+/ &&
 | 
				
			||||||
		    !($line =~ /^\+\s*$/ ||
 | 
							    !($line =~ /^\+\s*$/ ||
 | 
				
			||||||
		      $line =~ /^\+\s*EXPORT_SYMBOL/ ||
 | 
							      $line =~ /^\+\s*(?:EXPORT_SYMBOL|early_param)/ ||
 | 
				
			||||||
		      $line =~ /^\+\s*MODULE_/i ||
 | 
							      $line =~ /^\+\s*MODULE_/i ||
 | 
				
			||||||
		      $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
 | 
							      $line =~ /^\+\s*\#\s*(?:end|elif|else)/ ||
 | 
				
			||||||
		      $line =~ /^\+[a-z_]*init/ ||
 | 
							      $line =~ /^\+[a-z_]*init/ ||
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue