Skip to contentSkip to conversation

samsung: Sort Makefile

PATCH In review Petr Vorel 2 participants 7 messages Nov 8, 2023 – Nov 10, 2023

Subsystems (3)
lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 samsung: Sort Makefile

---
 drivers/clk/samsung/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/clk/samsung/Makefile +5 -5
index ebbeacabe88f..8a678ed05181 100644
@@ -7,20 +7,20 @@ obj-$(CONFIG_COMMON_CLK)	+= clk.o clk-pll.o clk-cpu.o
 obj-$(CONFIG_EXYNOS_3250_COMMON_CLK)	+= clk-exynos3250.o
 obj-$(CONFIG_EXYNOS_4_COMMON_CLK)	+= clk-exynos4.o
 obj-$(CONFIG_EXYNOS_4_COMMON_CLK)	+= clk-exynos4412-isp.o
-obj-$(CONFIG_EXYNOS_5250_COMMON_CLK)	+= clk-exynos5250.o
 obj-$(CONFIG_EXYNOS_5250_COMMON_CLK)	+= clk-exynos5-subcmu.o
+obj-$(CONFIG_EXYNOS_5250_COMMON_CLK)	+= clk-exynos5250.o
 obj-$(CONFIG_EXYNOS_5260_COMMON_CLK)	+= clk-exynos5260.o
 obj-$(CONFIG_EXYNOS_5410_COMMON_CLK)	+= clk-exynos5410.o
-obj-$(CONFIG_EXYNOS_5420_COMMON_CLK)	+= clk-exynos5420.o
 obj-$(CONFIG_EXYNOS_5420_COMMON_CLK)	+= clk-exynos5-subcmu.o
-obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK)	+= clk-exynos5433.o
-obj-$(CONFIG_EXYNOS_AUDSS_CLK_CON) += clk-exynos-audss.o
-obj-$(CONFIG_EXYNOS_CLKOUT)	+= clk-exynos-clkout.o
+obj-$(CONFIG_EXYNOS_5420_COMMON_CLK)	+= clk-exynos5420.o
 obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK)	+= clk-exynos-arm64.o
+obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK)	+= clk-exynos5433.o
 obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK)	+= clk-exynos7.o
 obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK)	+= clk-exynos7885.o
 obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK)	+= clk-exynos850.o
 obj-$(CONFIG_EXYNOS_ARM64_COMMON_CLK)	+= clk-exynosautov9.o
+obj-$(CONFIG_EXYNOS_AUDSS_CLK_CON) += clk-exynos-audss.o
+obj-$(CONFIG_EXYNOS_CLKOUT)	+= clk-exynos-clkout.o
 obj-$(CONFIG_S3C64XX_COMMON_CLK)	+= clk-s3c64xx.o
 obj-$(CONFIG_S5PV210_COMMON_CLK)	+= clk-s5pv210.o clk-s5pv210-audss.o
 obj-$(CONFIG_TESLA_FSD_COMMON_CLK)	+= clk-fsd.o
Signature · 1 line
2.42.0
#1 lore raw
Quoted 4 lines · Petr Vorel
---
 drivers/clk/samsung/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Best regards,
Krzysztof

#2 lore raw
Quoted 3 lines · Krzysztof Kozlowski
Quoted 2 lines · Petr Vorel

---

You also lack commit msg explaining why doing this.

Please use subject prefixes matching the subsystem. You can get them for example with git log --oneline -- DIRECTORY_OR_FILE on the directory your patch is touching.

Best regards,
Krzysztof

author
#3 lore raw

Hi Krzysztof,

Quoted 6 lines · Krzysztof Kozlowski
Quoted 3 lines · Petr Vorel
Quoted 2 lines

---

You also lack commit msg explaining why doing this.

I'm sorry, I thought the reason is obvious - readability.

Some Makefiles are tried to be sorted (e.g. drivers/clk/qcom/Makefile), but lots of them are not (drivers/net/Makefile). Anyway, it's up to you (and other maintainers) to judge if it's useful or not. If considered useful, I'll send v2.

Quoted 3 lines

Please use subject prefixes matching the subsystem. You can get them for example with git log --oneline -- DIRECTORY_OR_FILE on the directory your patch is touching.

Ah, I'm sorry. I did this actually (do that each time I send patch for kernel), but I somehow overlooked "clk: ".

Kind regards,
Petr

Quoted 2 lines

Best regards,
Krzysztof

#4 lore raw
Quoted 7 lines · Petr Vorel

Hi Krzysztof,

Quoted 4 lines · Krzysztof Kozlowski
Quoted 3 lines · Petr Vorel
Quoted 2 lines

---

Quoted 8 lines
Quoted 1 line

You also lack commit msg explaining why doing this.

I'm sorry, I thought the reason is obvious - readability.

Some Makefiles are tried to be sorted (e.g. drivers/clk/qcom/Makefile), but lots of them are not (drivers/net/Makefile). Anyway, it's up to you (and other maintainers) to judge if it's useful or not. If considered useful, I'll send v2.

The commit should come with message justifying it. It's also not clear what do you sort - entries are sorted by Kconfig, but you move CONFIG_EXYNOS_5250_COMMON_CLK.

Best regards,
Krzysztof

author
#5 lore raw
Quoted 11 lines · Petr Vorel
Quoted 9 lines

Hi Krzysztof,

Quoted 6 lines · Krzysztof Kozlowski
Quoted 3 lines · Petr Vorel
Quoted 2 lines

---

You also lack commit msg explaining why doing this.

I'm sorry, I thought the reason is obvious - readability.

Quoted 7 lines
Quoted 4 lines

Some Makefiles are tried to be sorted (e.g. drivers/clk/qcom/Makefile), but lots of them are not (drivers/net/Makefile). Anyway, it's up to you (and other maintainers) to judge if it's useful or not. If considered useful, I'll send v2.

The commit should come with message justifying it. It's also not clear

Sure.

Quoted 2 lines

what do you sort - entries are sorted by Kconfig, but you move CONFIG_EXYNOS_5250_COMMON_CLK.

All entries are sorted, i.e. by obj-$() and then by it's entries (items behind +=).

At least CONFIG_EXYNOS_ARM64_COMMON_CLK is not sorted.

But anyway, feel free to reject this idea immediately, it's not worth of such in depth discussion.

Kind regards,
Petr

Quoted 2 lines

Best regards,
Krzysztof

author
#6 lore raw
In reply to Krzysztof Kozlowski

Hi Krzysztof,

Quoted 11 lines · Petr Vorel
Quoted 4 lines
---
 drivers/clk/samsung/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Sure, I'll do next time.

Kind regards,
Petr

Quoted 2 lines

Best regards,
Krzysztof