Re: Problem in compiling a kernel module
From: Grant Likely <hidden>
Date: 2007-03-12 18:36:46
On 3/12/07, Matthias Fechner [off-list ref] wrote:
If I try now to compile to kernel I got the following error message: WARNING: drivers/i2c/chips/max6633.o - Section mismatch: reference to .init.data: from .text after 'cleanup_module' (at offset 0x196) WARNING: drivers/i2c/chips/max6633.o - Section mismatch: reference to .init.data: from .text after 'cleanup_module' (at offset 0x1a6) WARNING: drivers/i2c/chips/max6633.o - Section mismatch: reference to .init.data: from .text after 'cleanup_module' (at offset 0x1da) WARNING: drivers/i2c/chips/max6633.o - Section mismatch: reference to .init.data: from .text after 'cleanup_module' (at offset 0x1e2) What does that mean or how can debug or solve the problem?
Looks like you're trying to access inital data (which is freed after module load) from regular code (which is not) g. -- Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. grant.likely@secretlab.ca (403) 399-0195