mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-29 13:00:35 +00:00
b1b3f49ce4
As suggested by Andrew Morton: This is a pet peeve of mine. Any time there's a long list of items (header file inclusions, kconfig entries, array initalisers, etc) and someone wants to add a new item, they *always* go and stick it at the end of the list. Guys, don't do this. Either put the new item into a randomly-chosen position or, probably better, alphanumerically sort the list. lets sort all our select statements alphanumerically. This commit was created by the following perl: while (<>) { while (/\\\s*$/) { $_ .= <>; } undef %selects if /^\s*config\s+/; if (/^\s+select\s+(\w+).*/) { if (defined($selects{$1})) { if ($selects{$1} eq $_) { print STDERR "Warning: removing duplicated $1 entry\n"; } else { print STDERR "Error: $1 differently selected\n". "\tOld: $selects{$1}\n". "\tNew: $_\n"; exit 1; } } $selects{$1} = $_; next; } if (%selects and (/^\s*$/ or /^\s+help/ or /^\s+---help---/ or /^endif/ or /^endchoice/)) { foreach $k (sort (keys %selects)) { print "$selects{$k}"; } undef %selects; } print; } if (%selects) { foreach $k (sort (keys %selects)) { print "$selects{$k}"; } } It found two duplicates: Warning: removing duplicated S5P_SETUP_MIPIPHY entry Warning: removing duplicated HARDIRQS_SW_RESEND entry and they are identical duplicates, hence the shrinkage in the diffstat of two lines. We have four testers reporting success of this change (Tony, Stephen, Linus and Sekhar.) Acked-by: Jason Cooper <jason@lakedaemon.net> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Stephen Warren <swarren@nvidia.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
include/mach | ||
bast-ide.c | ||
bast-irq.c | ||
clock-s3c244x.c | ||
clock-s3c2412.c | ||
clock-s3c2416.c | ||
clock-s3c2440.c | ||
clock-s3c2443.c | ||
common-s3c2443.c | ||
common-smdk.c | ||
common.c | ||
common.h | ||
dma-s3c2410.c | ||
dma-s3c2412.c | ||
dma-s3c2440.c | ||
dma-s3c2443.c | ||
h1940-bluetooth.c | ||
irq-pm.c | ||
irq-s3c244x.c | ||
irq-s3c2412.c | ||
irq-s3c2416.c | ||
irq-s3c2440.c | ||
irq-s3c2443.c | ||
Kconfig | ||
mach-amlm5900.c | ||
mach-anubis.c | ||
mach-at2440evb.c | ||
mach-bast.c | ||
mach-gta02.c | ||
mach-h1940.c | ||
mach-jive.c | ||
mach-mini2440.c | ||
mach-n30.c | ||
mach-nexcoder.c | ||
mach-osiris-dvs.c | ||
mach-osiris.c | ||
mach-otom.c | ||
mach-qt2410.c | ||
mach-rx1950.c | ||
mach-rx3715.c | ||
mach-smdk2410.c | ||
mach-smdk2413.c | ||
mach-smdk2416.c | ||
mach-smdk2440.c | ||
mach-smdk2443.c | ||
mach-tct_hammer.c | ||
mach-vr1000.c | ||
mach-vstms.c | ||
Makefile | ||
Makefile.boot | ||
pm-h1940.S | ||
pm-s3c2410.c | ||
pm-s3c2412.c | ||
pm-s3c2416.c | ||
pm.c | ||
s3c244x.c | ||
s3c2410.c | ||
s3c2412.c | ||
s3c2416.c | ||
s3c2440.c | ||
s3c2442.c | ||
s3c2443.c | ||
setup-i2c.c | ||
setup-sdhci-gpio.c | ||
setup-spi.c | ||
setup-ts.c | ||
simtec-audio.c | ||
simtec-nor.c | ||
simtec-pm.c | ||
simtec-usb.c | ||
simtec.h | ||
sleep-s3c2410.S | ||
sleep-s3c2412.S | ||
sleep.S |