Ticket #1762 (closed task)

Opened 8 years ago

i2c-2.8.7 fails compiling (Examined/Solved - Linux 2.6.8)

Reported by: contact Owned by: somebody
Priority: minor Milestone:
Component: kernel Version:
Keywords: Cc:

Description

- Debian 3.1

- Kernel 2.6.8

- gcc 3.3.4

- i2c-2.8.7 fails compiling:

after several

In file included from /lib/modules/2.6.8/build/include/asm/processor.h:18,

from /lib/modules/2.6.8/build/include/asm/thread_info.h:16,

from /lib/modules/2.6.8/build/include/linux/thread_info.h:21,

from /lib/modules/2.6.8/build/include/linux/spinlock.h:12,

from /lib/modules/2.6.8/build/include/linux/capability.h:45,

from /lib/modules/2.6.8/build/include/linux/sched.h:7,

from /lib/modules/2.6.8/build/include/linux/module.h:10,

from kernel/i2c-dev.c:34:

/lib/modules/2.6.8/build/include/asm/system.h: In function 'set_64bit_var':

/lib/modules/2.6.8/build/include/asm/system.h:193: warning: dereferencing

type-punned pointer will b

reak strict-aliasing rules

/lib/modules/2.6.8/build/include/asm/system.h:193: warning: dereferencing

type-punned pointer will b

reak strict-aliasing rules

I finally see:

In file included from /lib/modules/2.6.8/build/include/asm/processor.h:18,

from /lib/modules/2.6.8/build/include/asm/thread_info.h:16,

from /lib/modules/2.6.8/build/include/linux/thread_info.h:21,

from /lib/modules/2.6.8/build/include/linux/spinlock.h:12,

from /lib/modules/2.6.8/build/include/linux/capability.h:45,

from /lib/modules/2.6.8/build/include/linux/sched.h:7,

from /lib/modules/2.6.8/build/include/linux/module.h:10,

from kernel/i2c-dev.c:34:

/lib/modules/2.6.8/build/include/asm/system.h: In function 'set_64bit_var':

/lib/modules/2.6.8/build/include/asm/system.h:193: warning: dereferencing

type-punned pointer will break strict-aliasing rules

/lib/modules/2.6.8/build/include/asm/system.h:193: warning: dereferencing

type-punned pointer will break strict-aliasing rules

kernel/i2c-dev.c: In function 'i2cdev_open':

kernel/i2c-dev.c:377: error: called object is not a function

kernel/i2c-dev.c:399: warning: implicit declaration of function

'MOD_INC_USE_COUNT'

kernel/i2c-dev.c: In function 'i2cdev_release':

kernel/i2c-dev.c:417: warning: implicit declaration of function

'MOD_DEC_USE_COUNT'

kernel/i2c-dev.c: At top level:

kernel/i2c-dev.c:512: warning: type defaults to 'int' in declaration of

'EXPORT_NO_SYMBOLS'

kernel/i2c-dev.c:512: warning: data definition has no type or storage class

make: *** [kernel/i2c-dev.o] Error 1

--- i2c release is for 2.4 kernels only.

Use in-kernel i2c for 2.6.

MDS 9/19/04

Note: See TracTickets for help on using tickets.