[tip:,x86/percpu] x86/percpu: Avoid sparse warning with cast to named address space
Message ID | 170229637722.398.17541780401553649834.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp6993828vqy; Mon, 11 Dec 2023 04:06:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGC8HlcEXmX3ggf833jqNk8igphB9EW5fLTd6TqWCRt95aE0PTShItNtUYwAoBVorwRtAwA X-Received: by 2002:a05:6a00:4993:b0:6ce:327b:75b9 with SMTP id dn19-20020a056a00499300b006ce327b75b9mr1641368pfb.55.1702296389294; Mon, 11 Dec 2023 04:06:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702296389; cv=none; d=google.com; s=arc-20160816; b=gTpMEkEnRteMCMXX2XqqWRl0WilEsSLcOk7HlgxR0UO2spoWuqPTM5vvn1VIZORdZ5 AR+bH6Nm7S4L62Sq6lN7OxgNBBmCh5ePDMHlD46I+fFR3yeKa2tQyIm09xT2hcp0EVji rNmzPj+18Xq7EwP4+mA2p6CJDLmv7a5+gghOpKSDgkPooX2O8bVSMYDJebqyZxy+pFCN Rw9NFkrMHFwFCca7xR5YQsLOt8LnnH6XTQjF53EoOAuK9pA4132BmiToSFIykzImyXlH D7Wk30EbV5CQIqiA4vpGFFgzzW0zubI78CPARZ9cigtKY/wVwKLZXBwXyuFxZTmpQbT2 uQNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=Bl2tlV75de7fhE43nzDquqVGhEpeyvXDyhkJdtCkFhg=; fh=277WfZp7mYsjs4iXG8dih8oqbWT5IpQlj1Za6iCdjgI=; b=df1AhGEIO2VUN5+3BrdvHenenIrVcRwcJXwRsc90WDnJkrsLQlK5NPhQAlygNXljhE k5FzPbf+Ea1iPl2mczVNK7PYn7DX9cG25+qSmiay4ioQGGvI2FHaF5STd78himdXa8Mr 8Lqho11swSyz7By4I8N65c4U/sHEuhxXB9ObSHd3kIcPSu3Kng/Zx9moHJQIN9W/Aq5C 4dwfOD1GOQGPVD44iC5DHM7eazEv2FUyCC4McmNLbL8Kr2EJrqziUsFOdcG1toMu5YSi e1O9CWyR7pIm7is4xlfFwoJknZr8/z74s00wY5Ac9qCO2Nc81Bbw0Ws6uLPyxdRQniI8 3a2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CSV5GCrj; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z11-20020aa7888b000000b006ceb1a0fa60si6009573pfe.8.2023.12.11.04.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 04:06:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=CSV5GCrj; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E6A698043D01; Mon, 11 Dec 2023 04:06:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234453AbjLKMGQ (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Mon, 11 Dec 2023 07:06:16 -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 <rfc822;linux-kernel@vger.kernel.org>); 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" <tip-bot2@linutronix.de> 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 <lkp@intel.com>, Luc Van Oostenryck <luc.vanoostenryck@gmail.com>, Uros Bizjak <ubizjak@gmail.com>, Ingo Molnar <mingo@kernel.org>, 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: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 04:06:26 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784386777401032586 X-GMAIL-MSGID: 1784987138678815416 |
Series |
[tip:,x86/percpu] x86/percpu: Avoid sparse warning with cast to named address space
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Dec. 11, 2023, 12:06 p.m. UTC
The following commit has been merged into the x86/percpu branch of tip: Commit-ID: 3a1d3829e193c091475ceab481c5f8deab385023 Gitweb: https://git.kernel.org/tip/3a1d3829e193c091475ceab481c5f8deab385023 Author: Uros Bizjak <ubizjak@gmail.com> AuthorDate: Mon, 04 Dec 2023 22:02:31 +01:00 Committer: Ingo Molnar <mingo@kernel.org> 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 <lkp@intel.com> Acked-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20231204210320.114429-3-ubizjak@gmail.com Closes: https://lore.kernel.org/oe-kbuild-all/202310080853.UhMe5iWa-lkp@intel.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 @@ #ifdef CONFIG_CC_HAS_NAMED_AS +#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