Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1294806lqp; Mon, 15 Apr 2024 01:47:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVK6eHdlY9n0L6IkW1fK8m8bvt5oqxfqH6xEjvGfa2h/NgrpIwrpIj0yAFg7FHPkyoVPhDKabM+Er7ALXNp97R39RZatUZGZ6TXJBr8g== X-Google-Smtp-Source: AGHT+IHJpCLlvHqkNPP9HcHLI66JvctrAYEYl53wQuVYhfIbwQ9QlwuhkD7dHkOzGR1IWdd3P/3M X-Received: by 2002:a05:6359:7906:b0:186:2b2b:c91e with SMTP id xc6-20020a056359790600b001862b2bc91emr5298903rwb.19.1713170862659; Mon, 15 Apr 2024 01:47:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713170862; cv=pass; d=google.com; s=arc-20160816; b=MaSGYC0AyFF7a7VmhlEnUa1z4B9Hr3ydUBuZgJXmpaXtJic60agh187Ljm7+t7Ovuf NrPH8IOsmL+eRBhjammRa0jpOQOjMvhnhAZvg/0a/F6qp5x9AzwOw4szTSTdFkCB2Mtj tz10SLvLVrVkWHZvsPEuDdkbIG7PZRexs8WrOKfVHqwHbPj6d2ICiyZ1B4CEJCKypNrR EKbdlIkHJ1iYVZ2+jxXPfhWO8Pop5oqbzvcKB2TKkHIvv4IV4W2TB9LnvZMGdsuKYqqv 2dJGB/fqIBxmiibxLuBjJCzgJsil3AyodW5ICTWW4giK3nWpefm/TVXSudzpE69MzddV U6ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=5eLgXXSOpmWdGaX+n73vB9RuW3ACa7n3Opa/6W1wbTs=; fh=O7l4w/MdH0II4LAb1DBujkBVASg6q5LuG9DXacbASek=; b=QA2BCC/Cbf1xhKsE+kfqmN9j+8KnwSqvsfnz5PVo0tFPEa15cXKTr0iwSCoQ+DjVTM V4vdJTgl7gEjaT0lGQw14LE8optHMPVE70pQD8ClDqGROhan7z3LJNeKUQo/d3eCgpNW vKpz5rlF26V8viVkD4iZOJBEwATbu8y7JIHsSRX0zF4clbyNbI8jPEeZz27UCZS4kMHF z+UjcqnNdrXVTzJkcV2RdkU/E3JY4IIVV7jslzzMUeQtH0SA8F+zSR0fy4ox03SvmGmu Y5JrBQj59jkeR9lNZg+/xEUvdxj1SVFzqKbtdIlVw6QB4iTosZ9qFZaIWAoIhvRmz8n9 P4Cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-144767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144767-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m4-20020a632604000000b005f401ca2a72si7413027pgm.242.2024.04.15.01.47.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 01:47:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-144767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144767-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7D071B24B09 for ; Mon, 15 Apr 2024 08:36:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E4073C092; Mon, 15 Apr 2024 08:36:09 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41AEF3BBED; Mon, 15 Apr 2024 08:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170168; cv=none; b=hrrB3Dh06WrJ2k/u77kpBM7KiV/zADY5SeXdhAPWcd6XM+VpopBfcYQa5CC1gxKu1hUV9AdAPxfRQj0Qb2D8DLlejx/r2BS5KP8B9TNRA/BTZuKaXhkf/lT7Rvjy9HFJEIX11CADLa7w0APF5gE4fzrLl8LTq0YHd8ij5nSuqjA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713170168; c=relaxed/simple; bh=3pn1236NH8HERFeQ80zUKBBGeBNC3NuW3A04K3Vi/pY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=h9eWsKF4Jhzrgd+SGA9TD1+x2htjUjQ66Ir46QumPOReA+8ZS0MWxOIM0tN0W7Oc+Fgyw5FMv7+RyHR14JMTRI4caPu5nsOs39e6w0gzQnN27rhLRSvkVOEbhJOtp0u+fagwr9GWORAFUvVz9OaO/+JsdAEm/Asw7Sxs8ydsJ4s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 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: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1rwHob-0004hw-00; Mon, 15 Apr 2024 10:35:49 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 7D228C05B3; Mon, 15 Apr 2024 10:34:56 +0200 (CEST) Date: Mon, 15 Apr 2024 10:34:56 +0200 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH] MIPS: Guard some macros with __ASSEMBLY__ in asm.h Message-ID: References: <20240326-asm-guard-v1-1-fe0c140a5aea@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240326-asm-guard-v1-1-fe0c140a5aea@flygoat.com> On Tue, Mar 26, 2024 at 11:41:45AM +0000, Jiaxun Yang wrote: > There are some assembly macros with very generic naming > being defined asm.h. They are clashing with other macros > from C code. > > Guard them with __ASSEMBLY__ to prevent futher clashes. > > Reported-by: Geert Uytterhoeven > Link: https://lore.kernel.org/linux-mips/8d78894-dd89-9f4d-52bb-1b873c50be9c@linux-m68k.org/ > Signed-off-by: Jiaxun Yang > --- > arch/mips/include/asm/asm.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/mips/include/asm/asm.h b/arch/mips/include/asm/asm.h > index 2e99450f4228..87ff609b53fe 100644 > --- a/arch/mips/include/asm/asm.h > +++ b/arch/mips/include/asm/asm.h > @@ -37,6 +37,7 @@ > #define CFI_SECTIONS > #endif > > +#ifdef __ASSEMBLY__ > /* > * LEAF - declare leaf routine > */ > @@ -122,6 +123,8 @@ symbol = value > #define ASM_PRINT(string) > #endif > > +#endif /* __ASSEMBLY__ */ > + > /* > * Stack alignment > */ > > --- > base-commit: 084c8e315db34b59d38d06e684b1a0dd07d30287 > change-id: 20240326-asm-guard-dddeb2321d69 > > Best regards, > -- > Jiaxun Yang 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 ]