From nobody Fri Dec 19 13:09:44 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D22EC4167B for ; Mon, 11 Dec 2023 12:06:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234482AbjLKMGS (ORCPT ); Mon, 11 Dec 2023 07:06:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234414AbjLKMGP (ORCPT ); Mon, 11 Dec 2023 07:06:15 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69AE0101; Mon, 11 Dec 2023 04:06:20 -0800 (PST) Date: Mon, 11 Dec 2023 12:06:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702296378; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bl2tlV75de7fhE43nzDquqVGhEpeyvXDyhkJdtCkFhg=; b=CSV5GCrjnhWOyeRyiG1gd1lW3n5w1K4rShwujEAYWRFM1i+Uq2VpmK4x3ugYSGaH+IRO42 /NMyjBfCyN0+Zb7Z8brAUB4KN5oLq60+wgxEvXEjeUrISzSEs/xI74es0anz3vSaVsrfw5 WiaQ0Bvr9sLlNjHVMPs+JjpOopVN5o5XyoEplaHIPrQJSAgQbO1VGaZMw0dpbsP4xTm3cX jmOBk4tlobgoj78Av99W4Nawz18jlfk4kgf0HkovoCpioFsHpgFIsazX1nq7NIOSLzHqcN XiI5WjLGhtIc+9gpBhSQB9j9wBftcOLo5cLd1LpudlKmdAC9k1pRVmdDaE71Eg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702296378; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bl2tlV75de7fhE43nzDquqVGhEpeyvXDyhkJdtCkFhg=; b=19+g0zAr8ZoeYSOT6DMBoQjarEol7zGO7mJ4nj1SIzdRJW2VBc3MeJIFrcFrOJLpvfhsn9 YPSNbAc2yqAK5+Cw== From: "tip-bot2 for Uros Bizjak" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/percpu] x86/percpu: Avoid sparse warning with cast to named address space Cc: kernel test robot , Luc Van Oostenryck , Uros Bizjak , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231204210320.114429-3-ubizjak@gmail.com> References: <20231204210320.114429-3-ubizjak@gmail.com> MIME-Version: 1.0 Message-ID: <170229637722.398.17541780401553649834.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/percpu branch of tip: Commit-ID: 3a1d3829e193c091475ceab481c5f8deab385023 Gitweb: https://git.kernel.org/tip/3a1d3829e193c091475ceab481c5f8dea= b385023 Author: Uros Bizjak AuthorDate: Mon, 04 Dec 2023 22:02:31 +01:00 Committer: Ingo Molnar CommitterDate: Mon, 11 Dec 2023 11:47:15 +01:00 x86/percpu: Avoid sparse warning with cast to named address space Teach sparse about __seg_fs and __seg_gs named address space qualifiers to to avoid warnings about unexpected keyword at the end of cast operator. Reported-by: kernel test robot Acked-by: Luc Van Oostenryck Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20231204210320.114429-3-ubizjak@gmail.com Closes: https://lore.kernel.org/oe-kbuild-all/202310080853.UhMe5iWa-lkp@int= el.com/ --- arch/x86/include/asm/percpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index 3859aba..e56a378 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -36,6 +36,11 @@ =20 #ifdef CONFIG_CC_HAS_NAMED_AS =20 +#ifdef __CHECKER__ +#define __seg_gs __attribute__((address_space(__seg_gs))) +#define __seg_fs __attribute__((address_space(__seg_fs))) +#endif + #ifdef CONFIG_X86_64 #define __percpu_seg_override __seg_gs #else