All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem in compiling a kernel module
@ 2007-03-12 17:00 Matthias Fechner
  2007-03-12 18:36 ` Grant Likely
  0 siblings, 1 reply; 23+ messages in thread
From: Matthias Fechner @ 2007-03-12 17:00 UTC (permalink / raw)
  To: linuxppc-embedded

Hi,

I'm not sure if this is the right list, so please correct me.

If have written a kernel module to read a I2C chip (it's very basic
now and I try to understand some thinks first so please forgive some
stupid questions).

I copied it to drivers/i2c/chips and added it into the Makefile with
the following line:
obj-m += max6633.o

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?

Best regards,
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Problem in compiling a kernel module
@ 2011-07-10  4:37 Ponkumaran Annadurai
  2011-07-10  5:33 ` Prashant Shah
  0 siblings, 1 reply; 23+ messages in thread
From: Ponkumaran Annadurai @ 2011-07-10  4:37 UTC (permalink / raw)
  To: kernelnewbies

 I am trying to compile a sample hello world module, but when issue make
command, it says that "make: Nothing to be done for `all'.".  Also I tried
the command "make hello", then it is showing that "linux/module.h no such
file". But I am in the newly compiled kernel. What might be the problem?

-- 
thanks,
kumaran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110710/0473de4b/attachment.html 

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

end of thread, other threads:[~2011-07-10 17:25 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-12 17:00 Problem in compiling a kernel module Matthias Fechner
2007-03-12 18:36 ` Grant Likely
2007-03-13  4:30   ` Matthias Fechner
2007-03-13  4:55     ` Grant Likely
2007-03-13 12:55     ` Ben Warren
2007-03-14  4:33       ` Matthias Fechner
2007-03-14  6:54         ` Domen Puncer
2007-03-15  4:27           ` Matthias Fechner
2007-08-07 17:42           ` Fedora 7 on a non FPU system Michael Brian Willis
2007-08-07 19:11             ` Roland Dreier
2007-08-07 19:29             ` Josh Boyer
2007-08-07 21:43             ` Clemens Koller
2007-08-08 22:18               ` Michael Brian Willis
  -- strict thread matches above, loose matches on Subject: below --
2011-07-10  4:37 Problem in compiling a kernel module Ponkumaran Annadurai
2011-07-10  5:33 ` Prashant Shah
2011-07-10  6:06   ` Ponkumaran Annadurai
2011-07-10  6:14     ` Prashant Shah
2011-07-10  6:18     ` Prashant Shah
2011-07-10  6:45     ` Prashant Shah
2011-07-10  6:54       ` Ponkumaran Annadurai
2011-07-10 16:39         ` Niamathullah sharief
2011-07-10 16:59           ` Ponkumaran Annadurai
2011-07-10 17:25             ` Prashant Shah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.