mce: convert to rcu_dereference_index_check()
The mce processing applies rcu_dereference_check() to integers used as array indices. This patch therefore moves mce to the new RCU API rcu_dereference_index_check() that avoids the sparse processing that would otherwise result in compiler errors. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com>
This commit is contained in:
		
					parent
					
						
							
								81bdf5bd73
							
						
					
				
			
			
				commit
				
					
						ec8c27e04f
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -51,7 +51,7 @@
 | 
			
		|||
static DEFINE_MUTEX(mce_read_mutex);
 | 
			
		||||
 | 
			
		||||
#define rcu_dereference_check_mce(p) \
 | 
			
		||||
	rcu_dereference_check((p), \
 | 
			
		||||
	rcu_dereference_index_check((p), \
 | 
			
		||||
			      rcu_read_lock_sched_held() || \
 | 
			
		||||
			      lockdep_is_held(&mce_read_mutex))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue