2004-04-14 05:07:34

by MAEDA Naoaki

[permalink] [raw]
Subject: [PATCH 2.6.5-mm5] msi.c compile failure on ia64 fix

Andrew,

Compilation of 2.6.5-mm5 on ia64 appears to fail in drivers/pci/msi.c
due to lack of definition of NR_VECTORS. Following patch fix the problem.

Regards,
Naoaki Maeda

diff -Naur linux-2.6.5-mm5/include/asm-ia64/msi.h linux-2.6.5-mm5-ia64msifix/include/asm-ia64/msi.h
--- linux-2.6.5-mm5/include/asm-ia64/msi.h 2004-04-14 13:10:42.000000000 +0900
+++ linux-2.6.5-mm5-ia64msifix/include/asm-ia64/msi.h 2004-04-14 13:12:51.000000000 +0900
@@ -6,6 +6,7 @@
#ifndef ASM_MSI_H
#define ASM_MSI_H

+#define NR_VECTORS NR_IRQ_VECTORS
#define FIRST_DEVICE_VECTOR IA64_FIRST_DEVICE_VECTOR
#define LAST_DEVICE_VECTOR IA64_LAST_DEVICE_VECTOR
static inline void set_intr_gate (int nr, void *func) {}