Re: [PATCH] clk: hisilicon: allow COMPILE_TEST builds

From: Brian Masney

Date: Mon May 11 2026 - 11:11:34 EST


On Fri, May 08, 2026 at 10:11:10PM -0700, Rosen Penev wrote:
> The HiSilicon clock symbols already depend on ARCH_HISI or COMPILE_TEST,
> but the parent clock Makefile only descends into the hisilicon directory
> when ARCH_HISI is enabled.
>
> Add a hidden family gate selected by the HiSilicon clock and reset symbols,
> default it for ARCH_HISI, and use it for the parent Makefile descent. This
> keeps existing platform builds unchanged while allowing compile-test
> coverage.
>
> Tested with:
> make LLVM=1 ARCH=loongarch drivers/clk/hisilicon/
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>