nr-irqs.c 472 B

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