mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	Use a more generic form for __section that requires quotes to avoid
complications with clang and gcc differences.
Remove the quote operator # from compiler_attributes.h __section macro.
Convert all unquoted __section(foo) uses to quoted __section("foo").
Also convert __attribute__((section("foo"))) uses to __section("foo")
even if the __attribute__ has multiple list entry forms.
Conversion done using the script at:
    https://lore.kernel.org/lkml/75393e5ddc272dc7403de74d645e6c6e0f4e70eb.camel@perches.com/2-convert_section.pl
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@gooogle.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
	
			
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			527 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * This file is subject to the terms and conditions of the GNU General Public
 | 
						|
 * License.  See the file "COPYING" in the main directory of this archive
 | 
						|
 * for more details.
 | 
						|
 *
 | 
						|
 * Copyright (C) 1997, 98, 99, 2000, 2003 Ralf Baechle
 | 
						|
 * Copyright (C) 1999 Silicon Graphics, Inc.
 | 
						|
 */
 | 
						|
#ifndef _ASM_CACHE_H
 | 
						|
#define _ASM_CACHE_H
 | 
						|
 | 
						|
#include <kmalloc.h>
 | 
						|
 | 
						|
#define L1_CACHE_SHIFT		CONFIG_MIPS_L1_CACHE_SHIFT
 | 
						|
#define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
 | 
						|
 | 
						|
#define __read_mostly __section(".data..read_mostly")
 | 
						|
 | 
						|
#endif /* _ASM_CACHE_H */
 |