* IA32 (2.6.9-rc3 - 2004-09-29.21.30) - 10 New warnings (gcc 3.2.2)
@ 2004-09-30 14:32 John Cherry
2004-09-30 15:01 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: John Cherry @ 2004-09-30 14:32 UTC (permalink / raw)
To: linux-kernel
*** Warning: "isdn_ppp_register_compressor" [drivers/isdn/i4l/isdn_bsdcomp.ko] undefined!
*** Warning: "isdn_ppp_unregister_compressor" [drivers/isdn/i4l/isdn_bsdcomp.ko] undefined!
*** Warning: "register_isdn" [drivers/isdn/act2000/act2000.ko] undefined!
*** Warning: "register_isdn" [drivers/isdn/capi/capidrv.ko] undefined!
*** Warning: "register_isdn" [drivers/isdn/hisax/hisax.ko] undefined!
*** Warning: "register_isdn" [drivers/isdn/icn/icn.ko] undefined!
*** Warning: "register_isdn" [drivers/isdn/pcbit/pcbit.ko] undefined!
*** Warning: "register_isdn" [drivers/isdn/sc/sc.ko] undefined!
*** Warning: "register_isdn" [drivers/isdn/tpam/tpam.ko] undefined!
drivers/net/wan/pc300_tty.c:704: warning: passing arg 1 of `tty_ldisc_ref' from incompatible pointer type
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: IA32 (2.6.9-rc3 - 2004-09-29.21.30) - 10 New warnings (gcc 3.2.2)
2004-09-30 14:32 IA32 (2.6.9-rc3 - 2004-09-29.21.30) - 10 New warnings (gcc 3.2.2) John Cherry
@ 2004-09-30 15:01 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2004-09-30 15:01 UTC (permalink / raw)
To: John Cherry; +Cc: Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
On Iau, 2004-09-30 at 15:32, John Cherry wrote:
> drivers/net/wan/pc300_tty.c:704: warning: passing arg 1 of `tty_ldisc_ref' from incompatible pointer type
I've got a patch for this and the other 2 64bit warnings in that file.
- Fix the ldisc ref bug
- Fix the 64bit pointer cast warnings
- Fix the coding style from "Alan bracketing" to "Linus bracketing"
[-- Attachment #2: Type: text/plain, Size: 1525 bytes --]
--- ../linux.vanilla-2.6.9rc3/drivers/net/wan/pc300_tty.c 2004-09-30 16:13:09.075305760 +0100
+++ drivers/net/wan/pc300_tty.c 2004-09-30 17:02:18.400940112 +0100
@@ -192,13 +192,14 @@
*/
void cpc_tty_init(pc300dev_t *pc300dev)
{
- int port, aux;
+ unsigned long port;
+ int aux;
st_cpc_tty_area * cpc_tty;
/* hdlcX - X=interface number */
port = pc300dev->dev->name[4] - '0';
if (port >= CPC_TTY_NPORTS) {
- printk("%s-tty: invalid interface selected (0-%i): %i",
+ printk("%s-tty: invalid interface selected (0-%i): %li",
pc300dev->dev->name,
CPC_TTY_NPORTS-1,port);
return;
@@ -682,7 +683,8 @@
*/
static void cpc_tty_rx_work(void * data)
{
- int port, i, j;
+ unsigned long port;
+ int i, j;
st_cpc_tty_area *cpc_tty;
volatile st_cpc_rx_buf * buf;
char flags=0,flg_rx=1;
@@ -693,18 +695,15 @@
for (i=0; (i < 4) && flg_rx ; i++) {
flg_rx = 0;
- port = (int) data;
+ port = (unsigned long) data;
for (j=0; j < CPC_TTY_NPORTS; j++) {
cpc_tty = &cpc_tty_area[port];
if ((buf=cpc_tty->buf_rx.first) != 0) {
-
- if(cpc_tty->tty)
- {
- ld = tty_ldisc_ref(cpc_tty);
- if(ld)
- {
- if (ld->receive_buf)) {
+ if(cpc_tty->tty) {
+ ld = tty_ldisc_ref(cpc_tty->tty);
+ if(ld) {
+ if (ld->receive_buf) {
CPC_TTY_DBG("%s: call line disc. receive_buf\n",cpc_tty->name);
ld->receive_buf(cpc_tty->tty, (char *)(buf->data), &flags, buf->size);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-30 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-30 14:32 IA32 (2.6.9-rc3 - 2004-09-29.21.30) - 10 New warnings (gcc 3.2.2) John Cherry
2004-09-30 15:01 ` Alan Cox
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®