mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	checkpatch: exclude asm volatile from complex macro check
asm volatile and all its variants like __asm__ __volatile__ ("<foo>")
are reported as errors with "Macros with with complex values should be
enclosed in parentheses".
Make an exception for these asm volatile macro definitions by converting
the "asm volatile" to "asm_volatile" so it appears as a single function
call and the error isn't reported.
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Jeff Merkey <linux.mdb@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
							
								
									9cf7666ace
								
							
						
					
					
						commit
						42e152931d
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -4560,6 +4560,9 @@ sub process { | |||
| 			{ | ||||
| 			} | ||||
| 
 | ||||
| 			# Make asm volatile uses seem like a generic function | ||||
| 			$dstat =~ s/\b_*asm_*\s+_*volatile_*\b/asm_volatile/g; | ||||
| 
 | ||||
| 			my $exceptions = qr{ | ||||
| 				$Declare| | ||||
| 				module_param_named| | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Joe Perches
						Joe Perches