From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
To: linux-kernel@vger.kernel.org
Subject: genksyms crashes on drivers/char/joystick/pcigame.c
Date: Tue, 1 Apr 2003 17:19:18 +0200 [thread overview]
Message-ID: <20030401151918.GJ1870@os.inf.tu-dresden.de> (raw)
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/
next reply other threads:[~2003-04-01 15:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-01 15:19 Adam Lackorzynski [this message]
2003-04-02 11:17 ` Keith Owens
2003-04-02 12:15 ` Adam Lackorzynski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030401151918.GJ1870@os.inf.tu-dresden.de \
--to=adam@os.inf.tu-dresden.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®