Commit bf86ad8095d4684ada0d37bb1355ede2c88a5e4e

Authored by Ian Campbell
Committed by Konrad Rzeszutek Wilk
1 parent e84fe8a138

xen: events: pirq_check_eoi_map is X86 specific

On ARM I see:
drivers/xen/events.c:280:13: warning: 'pirq_check_eoi_map' defined but not used
[-Wunused-function]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

drivers/xen/events.c
... ... @@ -115,7 +115,9 @@
115 115 #define PIRQ_SHAREABLE (1 << 1)
116 116  
117 117 static int *evtchn_to_irq;
  118 +#ifdef CONFIG_X86
118 119 static unsigned long *pirq_eoi_map;
  120 +#endif
119 121 static bool (*pirq_needs_eoi)(unsigned irq);
120 122  
121 123 static DEFINE_PER_CPU(unsigned long [NR_EVENT_CHANNELS/BITS_PER_LONG],
122 124  
... ... @@ -277,10 +279,12 @@
277 279 return ret;
278 280 }
279 281  
  282 +#ifdef CONFIG_X86
280 283 static bool pirq_check_eoi_map(unsigned irq)
281 284 {
282 285 return test_bit(pirq_from_irq(irq), pirq_eoi_map);
283 286 }
  287 +#endif
284 288  
285 289 static bool pirq_needs_eoi_flag(unsigned irq)
286 290 {