The Alphabet (or, the sorting of Kconfig symbols)
Subsystems (4)
For those who don't know it, the order of letters in the alphabet is:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
and we use this order to determine the position of "select" entries in Kconfig files. We do that so that we can reduce conflicts. Conflicts such as these kinds of rubbish:
arch/arm/mach-shmobile/Kconfig +0 -0
@@@ -133,7 -116,7 +126,11 @@@ config ARCH_R8A779 select MIGHT_HAVE_PCI select SH_CLK_CPG select RENESAS_IRQC ++<<<<<<< HEAD + select SYS_SUPPORTS_SH_CMT ++======= + select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE ++>>>>>>> arm-soc/for-next
...
arch/arm/mach-zynq/Kconfig +0 -0
@@@ -2,19 -2,11 +2,23 @@@ config ARCH_ZYN select ARM_AMBA select ARM_GIC ++<<<<<<< HEAD + select ARCH_HAS_CPUFREQ + select ARCH_HAS_OPP + select COMMON_CLK + select CPU_V7 + select GENERIC_CLOCKEVENTS ++======= ++>>>>>>> arm-soc/for-next select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD if SMP select ICST - select MIGHT_HAVE_CACHE_L2X0 - select USE_OF - select HAVE_SMP - select SPARSE_IRQ select CADENCE_TTC_TIMER ++<<<<<<< HEAD + select ARM_GLOBAL_TIMER if !CPU_FREQ ++======= + select ARM_GLOBAL_TIMER + select MFD_SYSCON ++>>>>>>> arm-soc/for-next
Please note down the above sequence of letters for future reference. :)
Signature · 2 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it.
I think I'm going to give up trying to merge arm-soc for my build tree, the conflicts are far too numerous to properly fix up without spending a /lot/ of time on this. So from tonight, my builds will *not* include arm-soc in any shape or form.
You can all help to avoid that by managing your files better so that these kinds of conflicts don't happen.
Quoted 62 lines · Russell King - ARM Linux
For those who don't know it, the order of letters in the alphabet is:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
and we use this order to determine the position of "select" entries in
Kconfigfiles. We do that so that we can reduce conflicts. Conflicts such as these kinds of rubbish:arch/arm/mach-shmobile/Kconfig +4
-0@@@ -133,7 -116,7 +126,11 @@@ config ARCH_R8A779 select MIGHT_HAVE_PCI select SH_CLK_CPG select RENESAS_IRQC ++<<<<<<< HEAD + select SYS_SUPPORTS_SH_CMT ++======= + select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE ++>>>>>>> arm-soc/for-nextarch/arm/mach-zynq/Kconfig +8
-4@@@ -2,19 -2,11 +2,23 @@@ config ARCH_ZYN select ARM_AMBA select ARM_GIC ++<<<<<<< HEAD + select ARCH_HAS_CPUFREQ + select ARCH_HAS_OPP + select COMMON_CLK + select CPU_V7 + select GENERIC_CLOCKEVENTS ++======= ++>>>>>>> arm-soc/for-next select HAVE_ARM_SCU if SMP select HAVE_ARM_TWD if SMP select ICST - select MIGHT_HAVE_CACHE_L2X0 - select USE_OF - select HAVE_SMP - select SPARSE_IRQ select CADENCE_TTC_TIMER ++<<<<<<< HEAD + select ARM_GLOBAL_TIMER if !CPU_FREQ ++======= + select ARM_GLOBAL_TIMER + select MFD_SYSCON ++>>>>>>> arm-soc/for-nextPlease note down the above sequence of letters for future reference. :)
Signature · 7 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly improving, and getting towards what was expected from it.
Quoted 7 lines · Russell King - ARM Linux
For those who don't know it, the order of letters in the alphabet is:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
and we use this order to determine the position of "select" entries in
Kconfigfiles. We do that so that we can reduce conflicts. Conflicts such as these kinds of rubbish:
Equally applies to #include ordering.
g.
Quoted 2 lines · Grant Likely
Equally applies to #include ordering.
Yes.
Can we add this rule into Documentation/CodingStyle?
Thanks,
Richard
Quoted 7 lines · Richard Cochran
Quoted 2 lines · Grant Likely
Equally applies to #include ordering.
Yes.
Can we add this rule into
Documentation/CodingStyle?
Perhaps warnings (or errors?) from scripts/checkpatch.pl would be helpful as well.
Christopher
Signature · 3 lines
Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation.
Quoted 6 lines · On Friday 04 April 2014 14:11:10 Richard Cochran wrote:
Quoted 1 line · Grant Likely
Equally applies to #include ordering.
Yes.
Can we add this rule into
Documentation/CodingStyle?
If you care to submit a patch I'll ack it (after review of course :-)).
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 11 lines · Grant Likely
Quoted 7 lines · Russell King - ARM Linux
For those who don't know it, the order of letters in the alphabet is:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
and we use this order to determine the position of "select" entries in
Kconfigfiles. We do that so that we can reduce conflicts. Conflicts such as these kinds of rubbish:Equally applies to #include ordering.
With #includes there might be exceptions though because of dependencies between headers.
I don't know how common these are today, I didn't have had dependency problems for some time now, but I wouldn't want checkpatch to treat the order of #includes as error, while for Kconfig it's fine.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
Quoted 2 lines · Uwe Kleine-K?nig
With #includes there might be exceptions though because of dependencies between headers.
That is surely a sign of broken code.
Thanks,
Richard
Hello.
Quoted 4 lines · Richard Cochran
Quoted 2 lines
With #includes there might be exceptions though because of dependencies between headers.
That is surely a sign of broken code.
Yeah, such dependencies should normally be resolved in the headers
themselves, not the including code. Even the USB maintainer have finally agreed with that. :-)
WBR, Sergei