diff options
author | Willy Tarreau <w@1wt.eu> | 2009-08-09 12:53:21 +0200 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2009-08-09 13:07:16 +0200 |
commit | d5bf033917d87ded5748f4e71f8e3bedc1196a91 (patch) | |
tree | f4251b09ea900be11add214af72bff1452197622 | |
parent | 1d5f2109c8c6683472ec0f9f1a2c2c3706a4ef8a (diff) | |
download | linux-2.4-d5bf033917d87ded5748f4e71f8e3bedc1196a91.tar.gz |
build: fix genksyms segfault in pcigame.c
Solar Designer reported a genksyms segfault. After investigation,
it turned out this was caused by defines overriding function
definitions in pcigame.c when CONFIG_INPUT_PCIGAME is disabled. Since
this only happens during make dep with MODVERSIONS and not when building
the module, the fix simply consists in undefining the offending names
in the C file itself.
Signed-off-by: Willy Tarreau <w@1wt.eu>
-rw-r--r-- | drivers/char/joystick/pcigame.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/joystick/pcigame.c b/drivers/char/joystick/pcigame.c index 5230608d4b51ad..04f47d32728380 100644 --- a/drivers/char/joystick/pcigame.c +++ b/drivers/char/joystick/pcigame.c @@ -103,6 +103,7 @@ static int pcigame_open(struct gameport *gameport, int mode) return 0; } +#undef pcigame_attach struct pcigame *pcigame_attach(struct pci_dev *dev, int type) { struct pcigame *pcigame; @@ -148,6 +149,7 @@ struct pcigame *pcigame_attach(struct pci_dev *dev, int type) EXPORT_SYMBOL_GPL(pcigame_attach); +#undef pcigame_detach void pcigame_detach(struct pcigame *game) { gameport_unregister_port(&game->gameport); |