Re: [PATCHv2] clk: thead: allow COMPILE_TEST builds

From: Drew Fustini

Date: Wed Jul 15 2026 - 03:19:18 EST


On Thu, Jul 09, 2026 at 08:05:40AM -0400, Brian Masney wrote:
> Hey Drew,
>
> On Thu, Jul 9, 2026 at 2:30 AM Drew Fustini <fustini@xxxxxxxxxx> wrote:
> > On Tue, Jul 07, 2026 at 10:57:51AM -0400, Brian Masney wrote:
> > > On Mon, Jul 06, 2026 at 05:56:19PM -0700, Rosen Penev wrote:
> > > > 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
> > > > Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> > >
> > > Reviewed-by: Brian Masney <bmasney@xxxxxxxxxx>
> >
> > This doesn't apply to 7.2-rc or next for me due to the surrounding
> > context, but I agree with the change itself.
> >
> > Acked-by: Drew Fustini <fustini@xxxxxxxxxx>
> >
> > 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