nr-irqs.c 436 B

123456789101112131415161718192021
  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. };
  16. DEFINE(NR_IRQS, sizeof (union paravirt_nr_irqs_max));
  17. }