From: Jean Delvare <khali@linux-fr.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Build system runs ld more often than needed
Date: Mon, 27 Mar 2006 14:38:48 +0200 [thread overview]
Message-ID: <20060327143848.3da1ac02.khali@linux-fr.org> (raw)
Hi Sam,
I have noticed the following problem:
khali@arrakis:~/src/linux-2.6.16-git> make modules
CHK include/linux/version.h
Building modules, stage 2.
MODPOST
khali@arrakis:~/src/linux-2.6.16-git> touch drivers/media/video/zoran_card.c
khali@arrakis:~/src/linux-2.6.16-git> make modules
CHK include/linux/version.h
CC [M] drivers/media/video/zoran_card.o
LD [M] drivers/media/video/zr36067.o
LD [M] drivers/media/video/msp3400.o
LD [M] drivers/media/video/tuner.o
Building modules, stage 2.
MODPOST
LD [M] drivers/media/video/msp3400.ko
LD [M] drivers/media/video/tuner.ko
LD [M] drivers/media/video/zr36067.ko
khali@arrakis:~/src/linux-2.6.16-git>
See how unrelated modules are linked again?
I investigated further and it seems to happen whenever a given Makefile
has more than one composite object definition. In the case of
drivers/media/video, the following composite objects are defined:
zoran-objs := zr36120.o zr36120_i2c.o zr36120_mem.o
zr36067-objs := zoran_procfs.o zoran_device.o \
zoran_driver.o zoran_card.o
tuner-objs := tuner-core.o tuner-types.o tuner-simple.o \
mt20xx.o tda8290.o tea5767.o
msp3400-objs := msp3400-driver.o msp3400-kthreads.o
I have the following enabled:
CONFIG_VIDEO_MSP3400=m
CONFIG_VIDEO_ZORAN=m
CONFIG_VIDEO_TUNER=m
So msp3400 and tuner are relinked whenever I make a change to the
zr36067 driver.
I was able to reproduce the problem in drivers/scsi so it's not local
to the media/video area. I was also able to reproduce the problem back
to Linux 2.6.0 so the problem is not new.
Can this be looked upon?
Thanks,
--
Jean Delvare
next reply other threads:[~2006-03-27 12:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-27 12:38 Jean Delvare [this message]
2006-03-27 14:06 ` Build system runs ld more often than needed Sam Ravnborg
2006-03-27 16:17 ` Jean Delvare
2006-03-27 16:39 ` Sam Ravnborg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060327143848.3da1ac02.khali@linux-fr.org \
--to=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox