From: Adrian Bunk <bunk@fs.tum.de>
To: Andrew Morton <akpm@osdl.org>, digilnux@dgii.com
Cc: linux-kernel@vger.kernel.org
Subject: [patch] 2.6.9-rc1-mm2: char/pcxx.c doesn't compile
Date: Tue, 31 Aug 2004 19:41:02 +0200 [thread overview]
Message-ID: <20040831174102.GF3466@fs.tum.de> (raw)
In-Reply-To: <20040830235426.441f5b51.akpm@osdl.org>
The following compile error might not be specific to -mm:
<-- snip -->
...
CC drivers/char/pcxx.o
drivers/char/pcxx.c: In function `pcxe_cleanup':
drivers/char/pcxx.c:209: warning: unused variable `e2'
drivers/char/pcxx.c: At top level:
drivers/char/pcxx.c:229: `pcxe_init' undeclared here (not in a function)
drivers/char/pcxx.c:230: warning: type defaults to `int' in declaration of `module_cleanup'
drivers/char/pcxx.c:230: warning: parameter names (without types) in function declaration
drivers/char/pcxx.c:230: warning: data definition has no type or storage class
drivers/char/pcxx.c:1016: redefinition of `__initcall_pcxe_init'
drivers/char/pcxx.c:229: `__initcall_pcxe_init' previously defined here
drivers/char/pcxx.c:1016: `pcxe_init' undeclared here (not in a function)
drivers/char/pcxx.c:1017: `pcxe_exit' undeclared here (not in a function)
drivers/char/pcxx.c: In function `pcxe_tiocmget':
drivers/char/pcxx.c:2009: `mstat' undeclared (first use in this function)
drivers/char/pcxx.c:2009: (Each undeclared identifier is reported only once
drivers/char/pcxx.c:2009: for each function it appears in.)
drivers/char/pcxx.c: In function `pcxe_tiocmset':
drivers/char/pcxx.c:2072: warning: control reaches end of non-void function
drivers/char/pcxx.c: At top level:
drivers/char/pcxx.c:1044: warning: `pcxe_init' defined but not used
make[2]: *** [drivers/char/pcxx.o] Error 1
<-- snip -->
The patch below (only compilation tested) fixes all errors and warnings.
diffstat output:
drivers/char/pcxx.c | 15 +++++----------
1 files changed, 5 insertions(+), 10 deletions(-)
Signed-off-by: Adrian Bunk <bunk@fs.tum.de>
--- linux-2.6.9-rc1-mm2-full/drivers/char/pcxx.c.old 2004-08-31 13:30:28.000000000 +0200
+++ linux-2.6.9-rc1-mm2-full/drivers/char/pcxx.c 2004-08-31 14:06:28.000000000 +0200
@@ -206,7 +200,7 @@
{
unsigned long flags;
- int e1, e2;
+ int e1;
printk(KERN_NOTICE "Unloading PC/Xx version %s\n", VERSION);
@@ -223,12 +217,6 @@
restore_flags(flags);
}
-/*
- * pcxe_init() is our init_module():
- */
-module_init(pcxe_init);
-module_cleanup(pcxe_cleanup);
-
static inline struct channel *chan(register struct tty_struct *tty)
{
if (tty) {
@@ -1013,9 +1001,6 @@
}
#endif
-module_init(pcxe_init)
-module_exit(pcxe_exit)
-
static struct tty_operations pcxe_ops = {
.open = pcxe_open,
.close = pcxe_close,
@@ -1561,6 +1546,8 @@
return ret;
}
+module_init(pcxe_init)
+module_exit(pcxe_cleanup)
static void pcxxpoll(unsigned long dummy)
{
@@ -1995,6 +1982,7 @@
volatile struct board_chan *bc;
unsigned long flags;
int mflag = 0;
+ int mstat;
if(ch)
bc = ch->brdchan;
@@ -2069,6 +2057,7 @@
pcxxparam(tty,ch);
memoff(ch);
restore_flags(flags);
+ return 0;
}
next prev parent reply other threads:[~2004-08-31 17:46 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 6:54 2.6.9-rc1-mm2 Andrew Morton
2004-08-31 8:51 ` 2.6.9-rc1-mm2 Inconsistent kallsyms Helge Hafting
2004-08-31 9:02 ` Andrew Morton
2004-09-01 10:45 ` Helge Hafting
2004-08-31 11:05 ` Paulo Marques
2004-08-31 12:04 ` 2.6.9-rc1-mm2: tdfxfb_lib causes compile error Adrian Bunk
2004-08-31 17:21 ` 2.6.9-rc1-mm2 (compile stats) John Cherry
2004-08-31 17:41 ` Adrian Bunk [this message]
2004-08-31 20:18 ` [patch] 2.6.9-rc1-mm2: char/pcxx.c doesn't compile Jesper Juhl
2004-08-31 20:17 ` Adrian Bunk
2004-08-31 20:27 ` Jesper Juhl
2004-08-31 17:47 ` 2.6.9-rc1-mm2: why is DIGIEPCA marked BROKEN? Adrian Bunk
2004-08-31 19:57 ` Christoph Hellwig
2004-08-31 19:59 ` Adrian Bunk
2004-08-31 18:53 ` 2.6.9-rc1-mm2 Martin J. Bligh
2004-08-31 19:16 ` 2.6.9-rc1-mm2 Gene Heskett
2004-08-31 19:45 ` 2.6.9-rc1-mm2 Martin J. Bligh
2004-08-31 19:26 ` 2.6.9-rc1-mm2 Andrew Morton
2004-08-31 18:54 ` 2.6.9-rc1-mm2 Gene Heskett
2004-08-31 19:41 ` 2.6.9-rc1-mm2 Sam Ravnborg
2004-09-01 17:35 ` 2.6.9-rc1-mm2 Tom Rini
2004-09-01 19:23 ` 2.6.9-rc1-mm2 Sam Ravnborg
2004-08-31 22:13 ` 2.6.9-rc1-mm2 Rick Lindsley
2004-09-01 21:07 ` 2.6.9-rc1-mm2: IP_NF_COMPAT_IPCHAINS compilation broken Adrian Bunk
2004-09-01 7:15 ` 2.6.9-rc1-mm2 Andre Eisenbach
2004-09-01 7:25 ` 2.6.9-rc1-mm2 William Lee Irwin III
2004-09-01 9:15 ` 2.6.9-rc1-mm2 Andre Eisenbach
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=20040831174102.GF3466@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=akpm@osdl.org \
--cc=digilnux@dgii.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.