mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	genirq: Restrict export of irq_to_desc()
No more (ab)use in drivers finally. There is still the modular build of PPC/KVM which needs it, so restrict it to this case which still makes it unavailable for most drivers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20201210194045.551428291@linutronix.de
This commit is contained in:
		
							parent
							
								
									88f0a9d066
								
							
						
					
					
						commit
						64a1b95bb9
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -352,7 +352,9 @@ struct irq_desc *irq_to_desc(unsigned int irq)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return radix_tree_lookup(&irq_desc_tree, irq);
 | 
						return radix_tree_lookup(&irq_desc_tree, irq);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
EXPORT_SYMBOL(irq_to_desc);
 | 
					#ifdef CONFIG_KVM_BOOK3S_64_HV
 | 
				
			||||||
 | 
					EXPORT_SYMBOL_GPL(irq_to_desc);
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void delete_irq_desc(unsigned int irq)
 | 
					static void delete_irq_desc(unsigned int irq)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue