This patch fixes this problem by using inline functions for the
stubs instead of #defines.
/Mikael
--- linux-2.4.21-pre7/include/linux/pci_gameport.h.~1~ 2002-11-30 17:12:31.000000000 +0100
+++ linux-2.4.21-pre7/include/linux/pci_gameport.h 2003-04-05 14:31:20.000000000 +0200
@@ -32,8 +32,11 @@
extern struct pcigame *pcigame_attach(struct pci_dev *dev, int type);
extern void pcigame_detach(struct pcigame *game);
#else
-#define pcigame_attach(a,b) NULL
-#define pcigame_detach(a)
+static inline struct pcigame *pcigame_attach(struct pci_dev *dev, int type)
+{
+ return NULL;
+}
+static inline void pcigame_detach(struct pcigame *game) { }
#endif
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/