* Misbehaviour with "make foo.ko"
@ 2011-02-17 16:49 Alan Cox
2011-02-17 22:31 ` Michal Marek
0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2011-02-17 16:49 UTC (permalink / raw)
To: mmarek, linux-kbuild
Trying to rebuild single modules gets into a mess
[alan@pyx linux-psbdev]$ make drivers/staging/mrst/pvr/psb_gfx.ko
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CC [M] drivers/staging/mrst/pvr/../drv/psb_fb.o
CC [M] drivers/staging/mrst/pvr/../drv/psb_intel_lvds.o
LD [M] drivers/staging/mrst/pvr/psb_gfx.o
MODPOST 1 modules
ERROR: "ttm_object_device_release" [drivers/staging/mrst/pvr/psb_gfx.ko]
undefined!
ERROR ...
The box has lots of modules but it seems the MODPOST stage when you build
a single .ko target erroneously only gets processed for that module,
which goes wrong as a result.
Alan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Misbehaviour with "make foo.ko"
2011-02-17 16:49 Misbehaviour with "make foo.ko" Alan Cox
@ 2011-02-17 22:31 ` Michal Marek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2011-02-17 22:31 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kbuild
On 17.2.2011 17:49, Alan Cox wrote:
> Trying to rebuild single modules gets into a mess
>
> [alan@pyx linux-psbdev]$ make drivers/staging/mrst/pvr/psb_gfx.ko
> CHK include/linux/version.h
> CHK include/generated/utsrelease.h
> CALL scripts/checksyscalls.sh
> CC [M] drivers/staging/mrst/pvr/../drv/psb_fb.o
> CC [M] drivers/staging/mrst/pvr/../drv/psb_intel_lvds.o
> LD [M] drivers/staging/mrst/pvr/psb_gfx.o
> MODPOST 1 modules
> ERROR: "ttm_object_device_release" [drivers/staging/mrst/pvr/psb_gfx.ko]
> undefined!
> ERROR ...
It works fine here with 2.6.38-rc5 and ext3.ko:
$ touch fs/ext3/namei.c
$ make O=/dev/shm/build fs/ext3/ext3.ko
Using /labs/mmarek/linux-2.6 as source for kernel
GEN /dev/shm/build/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CALL /labs/mmarek/linux-2.6/scripts/checksyscalls.sh
CC [M] fs/ext3/namei.o
LD [M] fs/ext3/ext3.o
MODPOST 3065 modules
WARNING: modpost: Found 56 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
LD [M] fs/ext3/ext3.ko
$
Where do I find the psb_gfx driver? I don't see it in linux-next.
Michal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-17 22:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 16:49 Misbehaviour with "make foo.ko" Alan Cox
2011-02-17 22:31 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox