Re: [PATCH v2 06/53] MIPS: Xtalk: guard the widget identification table from assembly
From: Thomas Bogendoerfer
Date: Sat Dec 05 2026 - 08:34:00 EST
On Tue, Oct 13, 2026 at 03:16:26PM +0200, Imre Kaloz wrote:
> Only the constant definitions in this header are usable from assembly;
> the widget identification table and the struct it is built from are not.
> Put those behind __ASSEMBLER__ so the header can be included from an
> assembly file.
>
> Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
> ---
> arch/mips/include/asm/xtalk/xwidget.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/mips/include/asm/xtalk/xwidget.h b/arch/mips/include/asm/xtalk/xwidget.h
> index efcfe4494576..6dae5d9628f7 100644
> --- a/arch/mips/include/asm/xtalk/xwidget.h
> +++ b/arch/mips/include/asm/xtalk/xwidget.h
> @@ -112,6 +112,7 @@
> #define WIDGET_XBRDG_PART_NUM 0xd002
> #define WIDGET_NULL_PART_NUM -1
>
> +#ifndef __ASSEMBLER__
> /* For Xtalk Widget identification */
> struct widget_ident {
> u32 mfgr;
> @@ -195,6 +196,7 @@ static const struct widget_ident __initconst widget_idents[] = {
> {NULL},
> }
> };
> +#endif /* !__ASSEMBLER__ */
>
> /*
> * according to the crosstalk spec, only 32-bits access to the widget
> --
> 2.47.3
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]