From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796477619; b=i3rFiaJsJEX2hoFV6otpBvG0f3no+5sVv2+TeLzBOwQL8+vFJjDokmqg0z49oIG6HYXf YdsRI4rtD+P5EunpYGrt7NRa0tiqtHV4r/ijkSGDaC/wehI61780UO+DX9B0H0mmslF6s H3fc/0ZlBeGIuTBpzBn7lUx17NdiA1OwJ/nBv4a28faeQdJDVPHQl6OrARHhkIGdLznSV 7gYdxhi+SQcUigkcHWiwID2PByPoEeZ6RSgPRxyZDSZ2d59BoNa0V0h/YVXKWltF/E3pb 6pOxOS/9CXZqklz+2FslNUHe7zlAWMm7zi7U1cbqwN9H8mu8ZLzTZ2KV2SgpE7FjcoQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796477619; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=MvpXD2FwxcWMeOuibd0Xm4Ci05kk5Ol8A4Ti7bf77FE=; b=eD/YkMOo8OaBT3NmqHzsRgylU/rLe3SuiZ+Fs8bHZiVZBuJhkrmUuqLkZSamTGvZs7km sghFi0IVYFkeCYmruvxVWaTjehBch9XlS8BBZ3b8ay6JX1vweoy6hTEz/FldunUtLjQpq /HoTNNbDtB04Xsgbo34bwYQ2CaTV0tomVqh6Bkcy/I8JMxPCWYqfG2LGimgelKd0xpNe0 G5eVC7j/ukiJpRg1PjkF56MvoVdXo1473pRybZWQmi5t2K0Mob7tlqPpxj3+DCERzcx+6 AoA5K4jlHUnsB0H88nCGEQBJjr0hVO2x1h/kzAqt5B1DrS+qO7p1f9L9WGyLVMf6yvg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2518660A2603; Sat, 5 Dec 2026 13:33:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2518660A2603 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: by elvis.franken.de (Postfix, from userid 10) id E39BB100498; Sat, 5 Dec 2026 14:33:33 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id 9A7E5C0B3A; Sat, 5 Dec 2026 14:30:27 +0100 (CET) Date: Sat, 5 Dec 2026 14:30:27 +0100 From: Thomas Bogendoerfer To: Imre Kaloz Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones Subject: Re: [PATCH v2 06/53] MIPS: Xtalk: guard the widget identification table from assembly Message-ID: References: X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 > --- > 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 ]