Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3918017rdb; Mon, 11 Dec 2023 04:06:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHG3gPJFeH+96v629jj4PMGkR+GjPqiXj8js/qOrnwF19CTGVfj6n380XcU6CsOd+xHaGvW X-Received: by 2002:a05:6a20:7908:b0:187:6cc4:5aea with SMTP id b8-20020a056a20790800b001876cc45aeamr1611760pzg.59.1702296400506; Mon, 11 Dec 2023 04:06:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702296400; cv=none; d=google.com; s=arc-20160816; b=FgUZEJyB8h5WXyM/B6HORhlNq0yd5UxJNnJ8EYU183kdYGFapAYtHxb7dqghrkcYO+ bPmyArABQxQZGoh1OiWnYTz5jJsd4PUwjgpsLo7PoGjaBsz/9z4RNx6jcDpKlIyFtoIh iCCYbf6KGYk618Zsvn5KCHbHyCloFgsd0/hBrL2TIeBdt+zf1wdEgcd73Abku94PsOHu fTAqxzucsr8kirFM+RPyrtpxuytq0xAYEayzR6HrsC5a124vZfS0e0p5KPxuoa/6S/tl UPYH5JjwqyqA/U/Nrn896YdehGffxZ4Hgpp7kaOO0jGOC8Ho4yHpjB3MusTQ/E96zQ46 xe3w== 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 header.s=2020e header.b=19+g0zAr; 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 Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id j26-20020aa78dda000000b006ce420e612bsi439110pfr.127.2023.12.11.04.06.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 04:06:40 -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 header.s=2020e header.b=19+g0zAr; 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 152AA8043AC1; Mon, 11 Dec 2023 04:06:33 -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 + 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 ); 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: 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: 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:33 -0800 (PST) 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 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@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