From: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
To: Keith Owens <kaos@ocs.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: genksyms crashes on drivers/char/joystick/pcigame.c
Date: Wed, 2 Apr 2003 14:15:04 +0200 [thread overview]
Message-ID: <20030402121504.GS1870@os.inf.tu-dresden.de> (raw)
In-Reply-To: <25740.1049282231@ocs3.intra.ocs.com.au>
On Wed Apr 02, 2003 at 21:17:11 +1000, Keith Owens wrote:
> On Tue, 1 Apr 2003 17:19:18 +0200,
> Adam Lackorzynski <adam@os.inf.tu-dresden.de> wrote:
> >when genksyms is used on drivers/char/joystick/pcigame.c during "make
> >dep" it segfaults.
>
> genksyms assumes and requires valid C code as input. genksyms does not
> attempt to validate the source, that is the job of gcc. If gcc barfs
> on the code, then do not attempt to run it through genksyms. This
> looks like a chicken and egg problem but is not, compile with
> MODVERSIONS=n to verify that new code is valid before building with
> MODVERSIONS=y. To put it another way, do not run modversions on test
> kernels.
I don't understand a vanilla 2.4.20 kernel as a "test kernel". This
segfault happens everytime a "make dep" with modversions and without
these joystick options is done and that's probably not too uncommon.
There's just no error message indicating that it's faulting.
Changing include/linux/pci_gameport.h prevents genksyms from segfaulting and
produces output, I'm not sure if this has other side effects.
For 2.4.20:
--- include/linux/pci_gameport.h.orig 2003-04-02 14:00:46.000000000 +0200
+++ include/linux/pci_gameport.h 2003-04-02 14:02:01.000000000 +0200
@@ -31,9 +31,6 @@
#if defined(CONFIG_INPUT_PCIGAME) || defined(CONFIG_INPUT_PCIGAME_MODULE)
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)
#endif
#endif
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
prev parent reply other threads:[~2003-04-02 12:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-01 15:19 Adam Lackorzynski
2003-04-02 11:17 ` Keith Owens
2003-04-02 12:15 ` Adam Lackorzynski [this message]
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=20030402121504.GS1870@os.inf.tu-dresden.de \
--to=adam@os.inf.tu-dresden.de \
--cc=kaos@ocs.com.au \
--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®