Skip to contentSkip to conversation

clk: thead: allow COMPILE_TEST builds

PATCH In review Rosen Penev 3 participants 5 messages Jul 7 – Jul 15 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 clk: thead: allow COMPILE_TEST builds

Follow the pattern of many other directories in this Makefile (sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allows COMPILE_TEST to select the driver without having CONFIG_ARCH_THEAD enabled

Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/thead/

Assisted-by Codex:GPT-5.5

---
v2: use obj-y

 drivers/clk/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/Makefile +1 -1
index f6a71fd6d872..bbcedf5d60ea 100644
@@ -157,7 +157,7 @@ obj-$(CONFIG_ARCH_SUNXI)		+= sunxi/
 obj-y					+= sunxi-ng/
 obj-$(CONFIG_CLK_TEGRA)			+= tegra/
 obj-y					+= tenstorrent/
-obj-$(CONFIG_ARCH_THEAD)		+= thead/
+obj-y					+= thead/
 obj-y					+= ti/
 obj-$(CONFIG_CLK_UNIPHIER)		+= uniphier/
 obj-$(CONFIG_ARCH_U8500)		+= ux500/
Signature · 1 line
2.55.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 9 lines · Rosen Penev

Follow the pattern of many other directories in this Makefile (sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allows COMPILE_TEST to select the driver without having CONFIG_ARCH_THEAD enabled

Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/thead/

Assisted-by Codex:GPT-5.5
Acked-by
#2 lore raw
Quoted 5 lines · Brian Masney
Quoted 4 lines · Rosen Penev

Follow the pattern of many other directories in this Makefile (sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allows COMPILE_TEST to select the driver without having CONFIG_ARCH_THEAD enabled

Quoted 7 lines
Quoted 5 lines

Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/thead/

Assisted-by Codex:GPT-5.5

This doesn't apply to 7.2-rc or next for me due to the surrounding context, but I agree with the change itself.

Brian - do you think this should be routed through my thead-clk tree or go through the main clk tree?

Thanks,
Drew

#3 lore raw

Hey Drew,

Quoted 14 lines · Drew Fustini
Quoted 5 lines · Brian Masney
Quoted 4 lines · Rosen Penev

Follow the pattern of many other directories in this Makefile (sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allows COMPILE_TEST to select the driver without having CONFIG_ARCH_THEAD enabled

Quoted 7 lines
Quoted 5 lines

Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/thead/

Assisted-by Codex:GPT-5.5
Quoted 7 lines

This doesn't apply to 7.2-rc or next for me due to the surrounding context, but I agree with the change itself.

Brian - do you think this should be routed through my thead-clk tree or go through the main clk tree?

It'd be great if you could pick this up through the thead-clk tree.

Brian

#4 lore raw
Quoted 20 lines · Brian Masney

Hey Drew,

Quoted 17 lines · Drew Fustini
Quoted 5 lines · Brian Masney
Quoted 4 lines · Rosen Penev

Follow the pattern of many other directories in this Makefile (sunxi-ng, tenstorrent, ti, etc.) by using obj-y. This allows COMPILE_TEST to select the driver without having CONFIG_ARCH_THEAD enabled

Quoted 7 lines
Quoted 5 lines

Tested with:
make LLVM=1 ARCH=loongarch drivers/clk/thead/

Assisted-by Codex:GPT-5.5

This doesn't apply to 7.2-rc or next for me due to the surrounding context, but I agree with the change itself.

Quoted 8 lines
Quoted 4 lines

Brian - do you think this should be routed through my thead-clk tree or go through the main clk tree?

It'd be great if you could pick this up through the thead-clk tree.

Brian

I have applied this thead-clk-for-next:

https://git.kernel.org/pub/scm/linux/kernel/git/fustini/linux.git/commit/?id=b2ee00d0bf4cca5dd02702fc339d2b523191966f

If not problems in next, thne I'll create a v7.3 pull request for thead-clk.

Thanks,
Drew