nr-irqs.c 494 B

123456789101112131415161718192021222324
  1. /*
  2. * calculate
  3. * NR_IRQS = max(IA64_NATIVE_NR_IRQS, XEN_NR_IRQS, FOO_NR_IRQS...)
  4. * depending on config.
  5. * This must be calculated before processing asm-offset.c.
  6. */
  7. #define ASM_OFFSETS_C 1
  8. #include <linux/kbuild.h>
  9. #include <linux/threads.h>
  10. #include <asm/native/irq.h>
  11. void foo(void)
  12. {
  13. union paravirt_nr_irqs_max {
  14. char ia64_native_nr_irqs[IA64_NATIVE_NR_IRQS];
  15. #ifdef CONFIG_XEN
  16. char xen_nr_irqs[XEN_NR_IRQS];
  17. #endif
  18. };
  19. DEFINE(NR_IRQS, sizeof (union paravirt_nr_irqs_max));
  20. }