Re: [PATCH] MIPS: octeon: Remove vestiges of CONFIG_CAVIUM_RESERVE32
From: Thomas Bogendoerfer
Date: Mon Jul 19 2021 - 07:28:01 EST
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@xxxxxxxxxxx>
> ---
>
> 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 ]