All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ][Patch] alter prototypes in airo.c platform.h
@ 2006-02-21 10:16 Darren Jenkins\
  2006-02-24 21:46 ` John W. Linville
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Darren Jenkins\ @ 2006-02-21 10:16 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1812 bytes --]

G'day list,

This one finishes up the altering prototypes (because they contain
register) patches.

From http://linuxicc.sourceforge.net/

ICC complains about :Storage Class is not First

@ line 231 of platform.h &
@ lines 1078 & 1079 of airo.c

These are caused by the prototypes miss-naming the variables as
"register". Which as it is a keyword is an error.

The patch below renames the variables in the prototypes to match the
functions.

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>

 --- linux-2.6.16-rc3/drivers/isdn/hardware/eicon/platform.h.orig	2006-02-21 20:32:58.000000000 +1100
+++ linux-2.6.16-rc3/drivers/isdn/hardware/eicon/platform.h	2006-02-21 20:33:30.000000000 +1100
@@ -228,7 +228,7 @@ void PCIread (byte bus, byte func, int o
 /*
 **  I/O Port utilities
 */
-int diva_os_register_io_port (void *adapter, int register, unsigned long port,
+int diva_os_register_io_port (void *adapter, int on, unsigned long port,
 				unsigned long length, const char* name, int id);
 /*
 **  I/O port access abstraction
--- linux-2.6.16-rc3/drivers/net/wireless/airo.c.orig	2006-02-21 20:34:16.000000000 +1100
+++ linux-2.6.16-rc3/drivers/net/wireless/airo.c	2006-02-21 21:04:15.000000000 +1100
@@ -1075,8 +1075,8 @@ static const char version[] = "airo.c 0.
 struct airo_info;
 
 static int get_dec_u16( char *buffer, int *start, int limit );
-static void OUT4500( struct airo_info *, u16 register, u16 value );
-static unsigned short IN4500( struct airo_info *, u16 register );
+static void OUT4500( struct airo_info *, u16 reg, u16 value );
+static unsigned short IN4500( struct airo_info *, u16 reg );
 static u16 setup_card(struct airo_info*, u8 *mac, int lock);
 static int enable_MAC( struct airo_info *ai, Resp *rsp, int lock );
 static void disable_MAC(struct airo_info *ai, int lock);



[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-02-25  4:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-21 10:16 [KJ][Patch] alter prototypes in airo.c platform.h Darren Jenkins\
2006-02-24 21:46 ` John W. Linville
2006-02-25  0:39 ` Darren Jenkins\
2006-02-25  4:18 ` John W. Linville

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.