 4782f7f9ae
			
		
	
	
	4782f7f9ae
	
	
	
		
			
			get_hw_config_num_irq() may be called by normal iss_model_init_smp()
which is a function pointer for 'init_smp' which may be called by
first_lines_of_secondary() which also need be normal too.
The related warning (with allmodconfig):
    MODPOST vmlinux.o
  WARNING: vmlinux.o(.text+0x5814): Section mismatch in reference from the function iss_model_init_smp() to the function .init.text:get_hw_config_num_irq()
  The function iss_model_init_smp() references
  the function __init get_hw_config_num_irq().
  This is often because iss_model_init_smp lacks a __init
  annotation or the annotation of get_hw_config_num_irq is wrong.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
		
	
			
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			702 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			702 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU General Public License version 2 as
 | |
|  * published by the Free Software Foundation.
 | |
|  */
 | |
| 
 | |
| #ifndef __ASM_ARC_IRQ_H
 | |
| #define __ASM_ARC_IRQ_H
 | |
| 
 | |
| #define NR_CPU_IRQS	32  /* number of interrupt lines of ARC770 CPU */
 | |
| #define NR_IRQS		128 /* allow some CPU external IRQ handling */
 | |
| 
 | |
| /* Platform Independent IRQs */
 | |
| #define TIMER0_IRQ      3
 | |
| #define TIMER1_IRQ      4
 | |
| 
 | |
| #include <asm-generic/irq.h>
 | |
| 
 | |
| extern void arc_init_IRQ(void);
 | |
| extern int get_hw_config_num_irq(void);
 | |
| 
 | |
| void arc_local_timer_setup(unsigned int cpu);
 | |
| 
 | |
| #endif
 |