mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* genksyms crashes on drivers/char/joystick/pcigame.c
@ 2003-04-01 15:19 Adam Lackorzynski
  2003-04-02 11:17 ` Keith Owens
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Lackorzynski @ 2003-04-01 15:19 UTC (permalink / raw)
  To: linux-kernel

Hi,

when genksyms is used on drivers/char/joystick/pcigame.c during "make
dep" it segfaults. There isn't any joystick configuration in the kernel
(it's a plain "make oldconfig" from a fresh kernel copy).

/tmp/linux-2.4.20/drivers/char/joystick$ gcc -Wall -O2 -I/tmp/linux-2.4.20/include  -E -D__GENKSYMS__ pcigame.c| genksyms -p smp_ -k 2.4.20
Segmentation fault

$ genksyms -V       
genksyms version 2.4.25
...

It looks like the segfault is caused by the following line from the gcc
output above:

struct pcigame *((void *)0)
{
        struct pcigame *pcigame;
        int i;


which evaluates from

struct pcigame *pcigame_attach(struct pci_dev *dev, int type)
{
        struct pcigame *pcigame;
        int i;


pcigame_attach(a,b) is defined to NULL in include/linux/pci_gameport.h if
CONFIG_INPUT_PCIGAME{,_MODULE} isn't set (which is the case here).
Fixing this line makes genksyms work. Don't know who's at fault here but
segfaulting doesn't look good...




Adam
-- 
Adam                 adam@os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-02 12:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01 15:19 genksyms crashes on drivers/char/joystick/pcigame.c Adam Lackorzynski
2003-04-02 11:17 ` Keith Owens
2003-04-02 12:15   ` Adam Lackorzynski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®