public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux arch <linux-arch@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: Are Section mismatches out of control?
Date: Fri, 01 Feb 2008 08:53:25 -0600	[thread overview]
Message-ID: <1201877605.3134.4.camel@localhost.localdomain> (raw)
In-Reply-To: <20080201104718.GA11717@uranus.ravnborg.org>

On Fri, 2008-02-01 at 11:47 +0100, Sam Ravnborg wrote:
> James said in a related posting that the Section mismatch
> warnings were getting out of control.

What I actually said was that the churn in the source base caused by
these sectional mismatches was getting out of hand.

What I questioned was the value of inspecting all the drivers and trying
to fix them all (and the effort involved) vs my proposed solution of
simply making 90% of them go away.

> So I decided to take a closer look at current
> status. Latest mainline with Adrian + mine fixes applied.
> 
> Target was x86 - an allyesconfig build.
> I looked at the reported Section mismatch warnings per
> directory so see where it was looking bad.
> 
> The list is here:
> 
> 
> Directory         Warnings
> ================= ========
> block/             0
> fs/                0
> init/              0
> lib/               0
> net/               2
> sound/             3
> crypto/            0
> ipc/               0
> kernel/            0
> mm/                0
> usr/               0
> security/          0
> drivers/net/      11
> drivers/ata/       2
> drivers/base/      0
> drivers/block/     0
> drivers/cdrom/     0
> drivers/crypto/    0
> drivers/hid/       0
> drivers/input/     0
> drivers/lguest/    0
> drivers/leds/      0
> drivers/media/     0
> drivers/pci/       0
> drivers/pcmcia/    9
> drivers/power/     0
> drivers/ps3/       0
> drivers/rtc/       1
> drivers/scsi/      3
> drivers/isdn/     34
> drivers/serial/   10
> drivers/spi/       0
> drivers/usb/       0
> drivers/video/    14
> drivers/telephony/ 0
> drivers/watchdog/  0
> drivers/w1/        0
> drivers/dca        0
> drivers/edac/      0
> drivers/acpi/      2
> drivers/char/      3
> drivers/cpufreq    3
> drivers/hwmon/     1
> drivers/infiniband/ 0
> drivers/md         0
> drivers/message/   0
> drivers/misc/      0
> drivers/mmc/       0
> drivers/mtd/       0
> drivers/parport/   0
> drivers/pnp/       0
> 
> As expected the majority is in drivers/
> And as is obvious from the above the warnings are
> concentrated on a few places:
> drivers/isdn/ has the top score.
> Then we have video/, net/ serial/ and pcmia.
> 
> With thos four directories clean we are down with
> 78 less warnings.
> 
> The total figure for this build is 106 warnings.
> In my book things are not out of control.
> So stop complaining and lets see some fixes.
> 
> I will look at drivers/isdn as next step.

But on your own estimate, that's around 50 patches to fix all of this,
isn't it?  Which all have to be inspected, tested and integrated.  Is
that really a worthwhile exercise for saving 5k of memory (also from
your own estimate).  Particularly as the people who care about extreme
memory configurations aren't going "goody sections saved us 5k", they're
going "&^*&^ me the kernel increased in size by 150k on my system from
2.6.15 to 2.6.24". 

James



      parent reply	other threads:[~2008-02-01 14:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01 10:47 Are Section mismatches out of control? Sam Ravnborg
2008-02-01 11:03 ` Andrew Morton
2008-02-01 11:21   ` Harvey Harrison
2008-02-01 13:30     ` Geert Uytterhoeven
2008-02-01 13:40       ` Sam Ravnborg
2008-02-01 21:22         ` Geert Uytterhoeven
2008-02-01 22:32           ` Sam Ravnborg
2008-02-02 16:42             ` Geert Uytterhoeven
2008-02-02 17:40               ` Sam Ravnborg
2008-02-01 17:02     ` Roland Dreier
2008-02-01 21:47     ` Jan Engelhardt
2008-02-01 22:10       ` James Bottomley
2008-02-01 22:40       ` Sam Ravnborg
2008-02-02  0:01         ` Jan Engelhardt
2008-02-01 14:48   ` Johannes Weiner
2008-02-01 15:00   ` James Bottomley
2008-02-01 16:43   ` Jeff Garzik
2008-02-01 20:17     ` Sam Ravnborg
2008-02-01 20:24       ` Jeff Garzik
2008-02-01 22:38         ` Sam Ravnborg
2008-02-01 11:10 ` Andi Kleen
2008-02-01 21:51   ` Jan Engelhardt
2008-02-02  4:12     ` Andi Kleen
2008-02-01 14:53 ` James Bottomley [this message]

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=1201877605.3134.4.camel@localhost.localdomain \
    --to=james.bottomley@hansenpartnership.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-arch@vger.kernel.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