From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Joe Perches <joe@perches.com>
Cc: David Daney <david.daney@cavium.com>,
linux-mips@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] MIPS: octeon: Remove vestiges of CONFIG_CAVIUM_RESERVE32
Date: Mon, 19 Jul 2021 13:27:18 +0200 [thread overview]
Message-ID: <20210719112718.GA7434@alpha.franken.de> (raw)
In-Reply-To: <997c0cdbd57752252d87129185a973c7d42e491f.camel@perches.com>
On Tue, Jul 13, 2021 at 10:49:15AM -0700, Joe Perches wrote:
> The config option CAVIUM_RESERVE32 is not used.
> Remove the dead code controlled by it.
>
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>
> Uncompiled, untested.
>
> Found using a grep for unused Kconfig entries:
>
> $ git grep -P '^\s*#\s*if(?:def\s+|\s*defined\s*\(?\s*)CONFIG_[A-Z0-9_]+' | \
> grep -oh -P '\bCONFIG_[A-Z0-9_]+\b' | \
> sort | sed -e 's/^CONFIG_//' -e 's/_MODULE$//' | uniq | \
> while read config ; do \
> echo CONFIG_$config; \
> git grep -w $config -- '*/Kconfig*' | \
> wc -l; \
> done | \
> grep -B1 '^0'
>
> with some additional inspection of the kernel source tree to verify.
>
> arch/mips/cavium-octeon/executive/cvmx-cmd-queue.c | 21 +++---------
> arch/mips/cavium-octeon/setup.c | 38 +---------------------
applied to mips-next.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
next prev parent reply other threads:[~2021-07-19 11:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-13 17:49 [PATCH] MIPS: octeon: Remove vestiges of CONFIG_CAVIUM_RESERVE32 Joe Perches
2021-07-19 11:27 ` Thomas Bogendoerfer [this message]
2022-07-21 12:19 ` Alexander Sverdlin
2022-07-22 7:53 ` Joe Perches
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=20210719112718.GA7434@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=david.daney@cavium.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.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 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.