linux_dsm_epyc7002/arch/arm/mach-davinci
Russell King b1b3f49ce4 ARM: config: sort select statements alphanumerically
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>
2012-10-13 17:11:28 +01:00
..
include/mach Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-10-12 12:39:17 +09:00
aemif.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
asp.h ASoC/ARM: Davinci: McASP: split asp header into platform and audio specific 2012-08-27 11:12:09 -07:00
board-da830-evm.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-da850-evm.c Merge branch 'samsung_platform_data' into staging/for_v3.7 2012-10-05 22:32:05 -03:00
board-dm355-evm.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-dm355-leopard.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-dm365-evm.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-dm644x-evm.c Merge branch 'samsung_platform_data' into staging/for_v3.7 2012-10-05 22:32:05 -03:00
board-dm646x-evm.c Merge branch 'samsung_platform_data' into staging/for_v3.7 2012-10-05 22:32:05 -03:00
board-mityomapl138.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-neuros-osd2.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-omapl138-hawk.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
board-sffsdr.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-tnetv107x-evm.c sections: fix section conflicts in arch/arm/ 2012-10-06 03:04:38 +09:00
cdce949.c arm: fix implicit module.h users by adding it to arch/arm as required. 2011-10-31 19:30:50 -04:00
clock.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
clock.h ARM: davinci: add support for multiple power domains 2011-12-03 00:35:52 +05:30
common.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
cp_intc.c ARM: davinci: cp_intc: Add OF support for TI interrupt controller 2012-07-05 14:12:35 +05:30
cpufreq.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
cpuidle.c ARM: davinci: Fix for cpuidle consolidation changes 2012-03-22 01:19:44 -04:00
da830.c sections: fix section conflicts in arch/arm/ 2012-10-06 03:04:38 +09:00
da850.c Merge branch 'staging/for_v3.7' into v4l_for_linus 2012-10-11 15:07:19 -03:00
davinci.h Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
devices-da8xx.c ASoC/ARM: Davinci: McASP: split asp header into platform and audio specific 2012-08-27 11:12:09 -07:00
devices-tnetv107x.c ARM: davinci: Explicitly set channel controllers' default queues 2011-09-17 15:54:08 +05:30
devices.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
dm355.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
dm365.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
dm644x.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2012-10-12 12:39:17 +09:00
dm646x.c ASoC/ARM: Davinci: McASP: split asp header into platform and audio specific 2012-08-27 11:12:09 -07:00
dma.c arm-soc: driver specific updates 2012-05-26 12:22:27 -07:00
irq.c Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-19 22:10:05 -07:00
Kconfig ARM: config: sort select statements alphanumerically 2012-10-13 17:11:28 +01:00
Makefile ARM: davinci: add runtime PM support for clock management 2012-07-01 17:26:26 +05:30
Makefile.boot ARM: 7022/1: allow to detect conflicting zreladdrs 2011-10-17 09:12:40 +01:00
mux.c Davinci: pinmux - use ioremap() 2010-05-13 10:05:29 -07:00
mux.h Davinci: eliminate pinmux offset verbosity 2010-05-06 15:02:09 -07:00
pm_domain.c ARM: davinci: add runtime PM support for clock management 2012-07-01 17:26:26 +05:30
pm.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
psc.c ARM: davinci: psc: fix incorrect offsets 2011-12-05 16:47:15 +05:30
serial.c Davinci: serial - conditional reset via pwremu 2010-05-06 15:02:10 -07:00
sleep.S Merge branch 'depends/rmk/memory_h' into next/fixes 2011-10-31 23:11:53 +01:00
sram.c DaVinci: remove unneeded #include's 2009-11-25 10:21:31 -08:00
time.c ARM: davinci: convert to common sched_clock() implementation 2012-02-03 11:34:25 +00:00
tnetv107x.c ARM: 7190/1: restart: davinci: use new restart hook 2012-01-05 12:57:09 +00:00
usb.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00