mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	This adds the initial dummy support for 'runtime constants' for when an architecture doesn't actually support an implementation of fixing up said runtime constants. This ends up being the fallback to just using the variables as regular __ro_after_init variables, and changes the dcache d_hash() function to use this model. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			414 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
#ifndef _ASM_RUNTIME_CONST_H
 | 
						|
#define _ASM_RUNTIME_CONST_H
 | 
						|
 | 
						|
/*
 | 
						|
 * This is the fallback for when the architecture doesn't
 | 
						|
 * support the runtime const operations.
 | 
						|
 *
 | 
						|
 * We just use the actual symbols as-is.
 | 
						|
 */
 | 
						|
#define runtime_const_ptr(sym) (sym)
 | 
						|
#define runtime_const_shift_right_32(val, sym) ((u32)(val)>>(sym))
 | 
						|
#define runtime_const_init(type,sym) do { } while (0)
 | 
						|
 | 
						|
#endif
 |