Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3026594lqo; Tue, 21 May 2024 04:58:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9OCdfH37Yaalc65XPqnqZ2nrNVN9Rl/9utkV9hrAVERdRpKrFelIuFopFfsGndyUAHAa2qXE8UWgXooVnP1TaWGam6jy87Xx01mSBGQ== X-Google-Smtp-Source: AGHT+IHQKOUgl8he5ss3IvKb47iXCA7aYEf02u0v6vXfzEEeYkfGuY6ZXOxeRSGadVuHGk9+9xEs X-Received: by 2002:a05:622a:152:b0:43b:6fb:8bfd with SMTP id d75a77b69052e-43dfdb22a75mr314522751cf.20.1716292689414; Tue, 21 May 2024 04:58:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716292689; cv=pass; d=google.com; s=arc-20160816; b=K96HzoDr8uQUJDE1VxpdbUKtHXeQKbINuRBtb9D9bV95aI5qtXZbw+VSK26BbVV4vN sImllqPqsKSRyibQzX03H2iQ+VKk8dNIZSPIlAgV5n5fzYWJ42PuEwL2zbSau0m8mGBF 9y+s7/GnoeKNkQ/HqfuW4Tox+gIU8DtMupyD/rb5b25SLGZJajD/FzFjg/me9jXF6GIP sLOp3kPm5aqSPirQZVG2fdp4i6kFRJlcVnSyx+uEFgxkGGbuBtyogKTOLyMa0aaIBzCm 0eXCEoFfxwvbgTB+V8F4yE5k6BdjGaXqpiu0/7x9t1VSix6LmBuDG4TUyxYyOZl7wY+I uxuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=14wHwzFqDT+9RoiO88MxSEocndH60yvM2h5J4PUUcVQ=; fh=S6k3+lVldkbckkR/SHXkmcASEL56YUb7Ym7vgE0Idak=; b=CVcTj9xHqBUIc1PhDX+m6oj3/AM+LUbwoOAEtg2MDoxsZl5g3xF9edt9W6PVMDcEoI IzJzVMCBsJnkGLx6u6f7gp5F2dhjwkjUJXv+y2uBEbqHi0Umkf+mcWBDWep5BHOMHDiK OUzAZem+XfdC+zO82eXMbAu2VV9NA9sJoXRIMR/If58DQu8HfcxnkK22jvvVwLBwfchG 1xucO3cpsbccxJXtDVogAUFMxxqgZlYnvKnyRh/A7b8RHZuqyxbO8+JSK7QTkmksGofF H+pgCAbR+TSif0SZyG/QfBW6pWjv6mxs4nrqIGlVmsadM6UwqhDJ1WklJYnHssG0K+l0 z+IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RJDr7M0W; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-184917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df56dbf50si277172111cf.739.2024.05.21.04.58.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 04:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RJDr7M0W; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-184917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2523F1C2128C for ; Tue, 21 May 2024 11:58:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3527B757FC; Tue, 21 May 2024 11:57:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RJDr7M0W"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kmPIISog" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10D5274BE0; Tue, 21 May 2024 11:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716292660; cv=none; b=WgLUCLJKu5R/m2M97zlX0u/2d5Da2hdbpc+sxlsfMikshYaKLrMO8oDNsu0MgY8Dy76T0c2K9mEEA5+Z1KSm1tDLYN4PTIwL8YIIwQU5PByqhwCoFuvYGtzspfBMELeMSEonN8FaRKFnUMMXtlu97neBYkvMUm/OMpGCV8gN1QQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716292660; c=relaxed/simple; bh=nnhFb/wvx2PR3+m0Ty495PAA6vitkX3EzNOBblvMy6I=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ga332hxQILro2o9FaKpzOKmlhBE2UeQdxiYeXgGyN7SRhPStjPNNIqYa4XJC/fZOEx8PJKvyS1BeLfg7I24s5tiE/E5y8y7ai6HHN1oWxKRZFOYK0l/6NLkzQMYUwe/ITMosJzRN1F2uKz0vqEVcpi7L3Qo7+u5I40Vabt87bwQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RJDr7M0W; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kmPIISog; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 21 May 2024 11:57:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716292657; 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=14wHwzFqDT+9RoiO88MxSEocndH60yvM2h5J4PUUcVQ=; b=RJDr7M0W7zfb9rZCQ7SsqFc7EXA0AC9n5TrKOvWLfpU2NBjrodEgwg2dD0RrPrjenS4+yI allC7LFlWyWfe5ni8KmnyMJZmne38FnLNpBY8UIqDgTeWUuQuENYrhsSoKklvWQaK35/lE oCCCGRLmWPYSScR//jrutvbGmahB9utnxV6gP8kU2y9Po9I04UeIlVEiAroJYddzhNCkTf v/Ey4XwZmHLI92XIabtXkPsXN/4jRwKsnADPSJjDtjWXOoGt71+Nbc9g/UxqwUp/W/7Zle EgU+CE4G2btd44mh3Jd/4MWR3lTDSt9cr5Xn3/OA+8vPGyVSnkiM/eXtRZRyaA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716292657; 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=14wHwzFqDT+9RoiO88MxSEocndH60yvM2h5J4PUUcVQ=; b=kmPIISog6spUSjcb+9NaYK5uGNbG/18Go4LLbn2+PYnveUq73IpqDuCp5VJHMKj+FhE6/x mdlDzG6Vc0iOovBw== 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: Enable named address spaces for all capable GCC versions Cc: Uros Bizjak , Ingo Molnar , Andy Lutomirski , Josh Poimboeuf , Linus Torvalds , Ard Biesheuvel , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240520082134.121320-1-ubizjak@gmail.com> References: <20240520082134.121320-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171629265714.10875.4435975753899869099.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/percpu branch of tip: Commit-ID: 47ff30cc1be7bf426c03ecc84371452109b416e4 Gitweb: https://git.kernel.org/tip/47ff30cc1be7bf426c03ecc84371452109b416e4 Author: Uros Bizjak AuthorDate: Mon, 20 May 2024 10:21:14 +02:00 Committer: Ingo Molnar CommitterDate: Tue, 21 May 2024 10:17:01 +02:00 x86/percpu: Enable named address spaces for all capable GCC versions Enable named address spaces also for GCC 6, GCC 7 and GCC 8 releases. These compilers all produce kernel images that boot without problems. Use compile-time test to detect compiler support for named address spaces. The test passes with GCC 6 as the earliest compiler version where the support for named address spaces was introduced. Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Cc: Andy Lutomirski Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Ard Biesheuvel Link: https://lore.kernel.org/r/20240520082134.121320-1-ubizjak@gmail.com --- arch/x86/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 9d16fee..c9e0a54 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -2430,7 +2430,8 @@ source "kernel/livepatch/Kconfig" endmenu config CC_HAS_NAMED_AS - def_bool CC_IS_GCC && GCC_VERSION >= 90100 + def_bool $(success,echo 'int __seg_fs fs; int __seg_gs gs;' | $(CC) -x c - -S -o /dev/null) + depends on CC_IS_GCC config CC_HAS_NAMED_AS_FIXED_SANITIZERS def_bool CC_IS_GCC && GCC_VERSION >= 130300