[rootkit85@xxxxxxxx: gcc-4.0 compilation issue]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Forwarded message from Matteo Croce <rootkit85 at yahoo.it> -----

From: Matteo Croce <rootkit85 at yahoo.it>
Subject: gcc-4.0 compilation issue
Cc: Ky?sti M?lkki <kmalkki at cc.hut.fi>, Frodo Looijaard <frodol at dds.nl>,
	"Simon G.Vogl" <simon at tk.uni-linz.ac.at>
To: "Undisclosed.Recipients": ;
X-Virus-Scanned: ClamAV 0.83/782/Thu Mar 24 13:29:35 2005 on morannon.frodo.local
X-Virus-Scanned: amavisd-new isd-holland.nl
X-Virus-Status: Clean
X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on 
	morannon.frodo.local
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham 
	version=3.0.2
X-Spam-Level: 

Hi,
i've made this trivial patch to make the linux kernel
i2c driver compile with gcc-4.0

Regards,
Matteo Croce

diff -urN linux-2.6.11.5/include/linux/i2c.h linux-2.6.11.5-vanilla/include/linux/i2c.h
--- linux-2.6.11.5/include/linux/i2c.h	2005-03-24 17:27:52.000000000 +0100
+++ linux-2.6.11.5-vanilla/include/linux/i2c.h	2005-03-19 07:34:52.000000000 +0100
@@ -55,7 +55,7 @@
 
 /* Transfer num messages.
  */
-extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msg,int num);
+extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[],int num);
 
 /*
  * Some adapter types (i.e. PCF 8584 based ones) may support slave behaviuor. 
@@ -194,7 +194,7 @@
 	   to NULL. If an adapter algorithm can do SMBus access, set 
 	   smbus_xfer. If set to NULL, the SMBus protocol is simulated
 	   using common I2C messages */
-	int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg *msgs, 
+	int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg msgs[], 
 	                   int num);
 	int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr, 
 	                   unsigned short flags, char read_write,


----- End forwarded message -----

-- 
Frodo Looijaard <frodol at dds.nl>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux