On Wed, Mar 02, 2005 at 07:21:04AM -0800, Mickey Stein wrote: > I've noticed no problems with today's new 2.6.11 in the i2c realm on > gcc3.x, but the last couple of weeks of gcc 4.x cvs give this: > > Error msgs building i2c modules on 2.6.11 using gcc 4: > ------------ > In file included from drivers/i2c/i2c-core.c:29: > include/linux/i2c.h:58: error: array type has incomplete element type > include/linux/i2c.h:197: error: array type has incomplete element type > drivers/i2c/i2c-core.c: In function ?i2c_transfer?: > drivers/i2c/i2c-core.c:594: error: type of formal parameter 2 is incomplete > drivers/i2c/i2c-core.c: In function ?i2c_master_send?: > drivers/i2c/i2c-core.c:620: error: type of formal parameter 2 is incomplete > drivers/i2c/i2c-core.c: In function ?i2c_master_recv?: > drivers/i2c/i2c-core.c:649: error: type of formal parameter 2 is incomplete > make[2]: *** [drivers/i2c/i2c-core.o] Error 1 > make[1]: *** [drivers/i2c] Error 2 > make: *** [drivers] Error 2 > ------------- > > I'm not clear on whether the mainstream kernel is "supposed" to compile > error-free with the current state of > gcc 4 cvs. If not, then disregard. I tested this patch applied against > today's 2.6.11 with gcc 3.x & 4.x > by enabling all i2c module switches and building. > > A thread discussing this can be found by following the link below: > > http://gcc.gnu.org/ml/gcc/2005-02/msg00053.html > > The patch changes declarations from "struct i2c_msg msg[]" format to > "struct i2c_msg *msg". > > I've run this by Greg K-H and fixed a typo akpm noticed. The patch > touches on several other > files using *i2c_transfer and *master_xfer that give warnings.
This patch is already in the -mm tree, and will be sent to Linus in a few days. thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/