From: Peter Zijlstra <peterz@infradead.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>,
Tejun Heo <tj@kernel.org>, Jan Kara <jack@suse.cz>,
"David S. Miller" <davem@davemloft.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] lib: proportions.c: Remove some unused functions
Date: Tue, 13 Jan 2015 15:16:52 +0100 [thread overview]
Message-ID: <20150113141652.GJ25256@twins.programming.kicks-ass.net> (raw)
In-Reply-To: <20141222132626.2697567529c7708804c4061a@linux-foundation.org>
On Mon, Dec 22, 2014 at 01:26:26PM -0800, Andrew Morton wrote:
> On Sat, 20 Dec 2014 15:51:53 +0100 Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> wrote:
>
> > Removes some functions that are not used anywhere:
> > prop_change_shift() prop_descriptor_init() prop_fraction_percpu() prop_fraction_single() __prop_inc_percpu_max() prop_local_destroy_percpu() prop_local_destroy_single() prop_local_init_percpu() prop_local_init_single()
> >
> > This was partially found by using a static code analysis program called cppcheck.
> >
> > ---
> > include/linux/proportions.h | 14 ----
> > lib/proportions.c | 177 -------------------------------------------
> > 2 files changed, 191 deletions(-)
>
> Gee, that's a heck of a lot of dead code.
>
> Peter, what was the thinking here? Was this code once used, or added
> for API completeness or what?
Some of it was used once, we changed the BDI code over to the flexible
proportion code from Honza, that removed
> Perhaps we should just ifdef it out, so the code is still sitting there if
> someone wishes to resurrect it.
If there are still users of the !flex proportion code I would argue to
just leave it sit there for API completeness. It doesn't actually harm
anyone. Linkers are very good at removing dead code.
If there are in fact no users left of the !flex proportion code, then we
should just kill the entire thing.
prev parent reply other threads:[~2015-01-13 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-20 14:51 Rickard Strandqvist
2014-12-22 21:26 ` Andrew Morton
2015-01-02 17:28 ` Jan Kara
2015-01-13 14:16 ` Peter Zijlstra [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=20150113141652.GJ25256@twins.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=rickard_strandqvist@spectrumdigital.se \
--cc=tj@kernel.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
Powered by JetHome