[PATCH] global: Remove dead code that starts with CONFIG_[0-9A]

Rasmus Villemoes rasmus.villemoes at prevas.dk
Fri Aug 20 15:01:19 CEST 2021


On 19/08/2021 21.02, Tom Rini wrote:
> This removes a number of spots of dead code based on symbols that start
> with CONFIG_[0-9] or CONFIG_A.

How did you find those symbols? I suppose the actual patch is just
generated with unifdef or similar.

>  include/configs/vexpress_common.h         |   3 -
>  14 files changed, 3 insertions(+), 253 deletions(-)

Shouldn't they also be removed from scripts/config_whitelist.txt ?

More generally, running

for x in $(cat scripts/config_whitelist.txt) ; do git grep -w -q $x -- .
':!scripts/config_whitelist.txt' || echo $x ; done

[I'm sure there's a more efficient way...] shows a few symbols that
could be removed from that file, along with the places where they are
set via a CONFIG_SYS_EXTRA_OPTIONS.

Rasmus


More information about the U-Boot mailing list