From: Adrian Bunk <bunk@stusta.de>
To: james4765@verizon.net
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: [PATCH] ip2: fix compile warnings
Date: Sat, 18 Dec 2004 03:14:57 +0100 [thread overview]
Message-ID: <20041218021457.GK21288@stusta.de> (raw)
In-Reply-To: <20041217214735.7127.91238.40236@localhost.localdomain>
On Fri, Dec 17, 2004 at 03:47:13PM -0600, james4765@verizon.net wrote:
> This fixes the following compile errors in the ip2 and ip2main drivers:
>
> CC drivers/char/ip2main.o
> drivers/char/ip2main.c:470: warning: initialization from incompatible pointer type
> drivers/char/ip2main.c: In function `ip2_tiocmget':
> drivers/char/ip2main.c:2004: warning: unused variable `wait'
> drivers/char/ip2/i2lib.c: At top level:
> drivers/char/ip2/i2cmd.c:142: warning: `ct89' defined but not used
> drivers/char/ip2main.c:205: warning: `set_modem_info' declared `static' but never defined
> drivers/char/ip2/i2ellis.c:108: warning: `iiEllisCleanup' defined but not used
>...
This are not errors - they are only warnings.
> --- linux-2.6.10-rc3-mm1-original/drivers/char/ip2main.c 2004-12-03 16:55:03.000000000 -0500
> +++ linux-2.6.10-rc3-mm1/drivers/char/ip2main.c 2004-12-17 16:24:24.094730049 -0500
>...
> @@ -2001,7 +2000,6 @@
> static int ip2_tiocmget(struct tty_struct *tty, struct file *file)
> {
> i2ChanStrPtr pCh = DevTable[tty->index];
> - wait_queue_t wait;
>
> if (pCh == NULL)
> return -ENODEV;
> @@ -2018,6 +2016,8 @@
> /\/\|=mhw=|\/\/ */
>
> #ifdef ENABLE_DSSNOW
> + wait_queue_t wait;
> +
> i2QueueCommands(PTYPE_BYPASS, pCh, 100, 1, CMD_DSS_NOW);
>
> init_waitqueue_entry(&wait, current);
If someone will ever define ENABLE_DSSNOW your change broke compilation
with gcc 2.95 (variable declaration mixed with code).
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2004-12-18 2:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-17 21:47 [PATCH] ip2: fix compile warnings james4765
2004-12-18 1:46 ` Randy.Dunlap
2004-12-18 13:17 ` Jim Nelson
2004-12-20 6:20 ` Randy.Dunlap
2004-12-18 2:14 ` Adrian Bunk [this message]
2004-12-18 3:16 ` Jim Nelson
2004-12-19 14:08 ` Adrian Bunk
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=20041218021457.GK21288@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=james4765@verizon.net \
--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