public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fixes for gcc 3.3
@ 2003-05-15 16:44 Andrew Church
  2003-05-18 14:33 ` Falk Hueffner
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Church @ 2003-05-15 16:44 UTC (permalink / raw)
  To: linux-kernel

[Note: I am not subscribed to the list; please CC: me on responses.]

     The following is a short set of modifications I had to make to the
2.4.20 source to get it to compile under gcc 3.3.  There may be more; these
are just the ones that showed up under my configuration.  If anyone is
working on (or planning to work on) kernel/gcc-3.3 compatibility issues,
feel free to use this as a starting point.

  --Andrew Church
    achurch@achurch.org
    http://achurch.org/

---------------------------------------------------------------------------

--- linux-2.4.20-orig/drivers/ide/ide-cd.h	2002-12-10 17:46:28 +0900
+++ linux-2.4.20/drivers/ide/ide-cd.h	2003-05-16 00:59:53 +0900
@@ -437,7 +437,7 @@
 
 	byte     curlba[3];
 	byte     nslots;
-	__u8 short slot_tablelen;
+	__u8     slot_tablelen;
 };
 
 
--- linux-2.4.20-orig/drivers/scsi/aic7xxx/aic7xxx_osm.c	2002-08-03 09:39:44 +0900
+++ linux-2.4.20/drivers/scsi/aic7xxx/aic7xxx_osm.c	2003-05-16 01:21:40 +0900
@@ -417,25 +417,25 @@
 MODULE_LICENSE("Dual BSD/GPL");
 #endif
 MODULE_PARM(aic7xxx, "s");
-MODULE_PARM_DESC(aic7xxx, "period delimited, options string.
-	verbose			Enable verbose/diagnostic logging
-	no_probe		Disable EISA/VLB controller probing
-	no_reset		Supress initial bus resets
-	extended		Enable extended geometry on all controllers
-	periodic_otag		Send an ordered tagged transaction periodically
-				to prevent tag starvation.  This may be
-				required by some older disk drives/RAID arrays. 
-	reverse_scan		Sort PCI devices highest Bus/Slot to lowest
-	tag_info:<tag_str>	Set per-target tag depth
-	seltime:<int>		Selection Timeout(0/256ms,1/128ms,2/64ms,3/32ms)
-
-	Sample /etc/modules.conf line:
-		Enable verbose logging
-		Disable EISA/VLB probing
-		Set tag depth on Controller 2/Target 2 to 10 tags
-		Shorten the selection timeout to 128ms from its default of 256
-
-	options aic7xxx='\"verbose.no_probe.tag_info:{{}.{}.{..10}}.seltime:1\"'
+MODULE_PARM_DESC(aic7xxx, "period delimited, options string.\n\
+	verbose			Enable verbose/diagnostic logging\n\
+	no_probe		Disable EISA/VLB controller probing\n\
+	no_reset		Supress initial bus resets\n\
+	extended		Enable extended geometry on all controllers\n\
+	periodic_otag		Send an ordered tagged transaction periodically\n\
+				to prevent tag starvation.  This may be\n\
+				required by some older disk drives/RAID arrays. \n\
+	reverse_scan		Sort PCI devices highest Bus/Slot to lowest\n\
+	tag_info:<tag_str>	Set per-target tag depth\n\
+	seltime:<int>		Selection Timeout(0/256ms,1/128ms,2/64ms,3/32ms)\n\
+\n\
+	Sample /etc/modules.conf line:\n\
+		Enable verbose logging\n\
+		Disable EISA/VLB probing\n\
+		Set tag depth on Controller 2/Target 2 to 10 tags\n\
+		Shorten the selection timeout to 128ms from its default of 256\n\
+\n\
+	options aic7xxx='\"verbose.no_probe.tag_info:{{}.{}.{..10}}.seltime:1\"'\n\
 ");
 #endif
 
--- linux-2.4.20-orig/net/core/rtnetlink.c	2002-12-09 16:38:46 +0900
+++ linux-2.4.20/net/core/rtnetlink.c	2003-05-16 01:31:20 +0900
@@ -394,7 +394,7 @@
  * Malformed skbs with wrong lengths of messages are discarded silently.
  */
 
-extern __inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
+__inline__ int rtnetlink_rcv_skb(struct sk_buff *skb)
 {
 	int err;
 	struct nlmsghdr * nlh;

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

* Re: [PATCH] Fixes for gcc 3.3
  2003-05-15 16:44 [PATCH] Fixes for gcc 3.3 Andrew Church
@ 2003-05-18 14:33 ` Falk Hueffner
  0 siblings, 0 replies; 2+ messages in thread
From: Falk Hueffner @ 2003-05-18 14:33 UTC (permalink / raw)
  To: Andrew Church; +Cc: linux-kernel

achurch@achurch.org (Andrew Church) writes:

>      The following is a short set of modifications I had to make to the
> 2.4.20 source to get it to compile under gcc 3.3.
> 
> --- linux-2.4.20-orig/drivers/ide/ide-cd.h	2002-12-10 17:46:28 +0900
> +++ linux-2.4.20/drivers/ide/ide-cd.h	2003-05-16 00:59:53 +0900
> @@ -437,7 +437,7 @@
>  
>  	byte     curlba[3];
>  	byte     nslots;
> -	__u8 short slot_tablelen;
> +	__u8     slot_tablelen;
>  };

Please check out the 2.5 source whether things are fixed there
already, and maybe differently. This for example should really be
__u16.

-- 
	Falk

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

end of thread, other threads:[~2003-05-18 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 16:44 [PATCH] Fixes for gcc 3.3 Andrew Church
2003-05-18 14:33 ` Falk Hueffner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox