Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp609650rdb; Thu, 30 Nov 2023 13:16:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHvdhKDKd9ye8BL9EYL8ntwOcuz99+rCTGECO9ehKL2r0BQO+bu3NSfbwJJdykYwvucnfYm X-Received: by 2002:a17:903:234c:b0:1cf:f624:a659 with SMTP id c12-20020a170903234c00b001cff624a659mr11888510plh.22.1701379016332; Thu, 30 Nov 2023 13:16:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701379016; cv=none; d=google.com; s=arc-20160816; b=MZRwqjGCHYSyvdNyHZ5MTI3puxK791VAm3yCiiE0M8dOoB+uZWmwlAbaue0WYCbBRP h2Ey0K674Cqm2dtkagm8nxU7e6uSATg0P8md34a7bNM11p+jReVhIOzLBkODCQpaCbiv yHezyTJRVrG0nRrxsIuIMeKKRGAgJD1kz5hgkQm1AHi+dcFt3S1eSS6XS3nRNePvFo5t CP8q1I7QxNwbSEj3k6XPQwj7bGdjjfqPun6nPu3k2lStvvztb8twLP2xagy5h+ttdwam aPqfcvOc3Yy3SJQGG4sWmaI7Sfeay4DqOyvWngkagRploLRJnez+bg3BEcSSXy61QBmF 9G3g== 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=bZp+GrgQueujGyYhkSpSToDn+O/RdIcR3u3XHoaYEGU=; fh=lC3L+tLu9jMrTwLXdci/D+zTDmYl6oRylGrfIkeVy60=; b=jRY1CE+KkUn/piXMG7/D32YLxmEQGUUiSMdEDiKUcwQDF7qeH7KABr68EEP6SFLZuo rtLuNi/eP7OlGVe0PMz5802pkQuikfDy60kW8rq5oVV0eHRPpqR/6NiBGcyX5D7LvEPe XvlYLv7tfvrXCD+XlJVIIUOqoyUGvG/XSx6QAFnefAFSZUxOIpg6RoI9AUOK0Xwpt/vs TbfYSxAaDZtUzAYJEsPrPDyqOEudgvUJHX35o1AaaK1MJjEH8fDWpyRAYNeXrVGW4o/h FPWDsO8+zIQOgGLZxBWBd6FLUn+NI446q3Q9RWppqe9RPo2zUznkwFzGpBCJcNovUciM ukBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="wuwv1UV/"; dkim=neutral (no key) header.i=@linutronix.de header.b=u0xTzHs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d7-20020a170902728700b001cc3397aa27si285146pll.62.2023.11.30.13.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 13:16:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="wuwv1UV/"; dkim=neutral (no key) header.i=@linutronix.de header.b=u0xTzHs6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 77A7A80D6E53; Thu, 30 Nov 2023 13:16:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376946AbjK3VQj (ORCPT + 99 others); Thu, 30 Nov 2023 16:16:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376868AbjK3VQ3 (ORCPT ); Thu, 30 Nov 2023 16:16:29 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FB6210E5; Thu, 30 Nov 2023 13:16:35 -0800 (PST) Date: Thu, 30 Nov 2023 21:16:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701378994; 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=bZp+GrgQueujGyYhkSpSToDn+O/RdIcR3u3XHoaYEGU=; b=wuwv1UV/7FMEk63ekl2NYG08zVvGA/b2g70mT2TLDlgjmOPsnOYXQub2sTi1f2tDFtyDG3 0DcDT3Id4hn5YLeVMrqSyfC8JrswmkFF2AGGDCf8IRHUxbVwQXQOllyYFP62WTW1SDw21v rzPJawYeDSPt8qh//94mcRTE0p880FYGMbANztggI4EhX5UkBIIA5DtIzKhq2TvWDq4Azl ksshedtfD2SCpTG2r7MDW7MkK42V6YAujmd9Y/9pHmKnsNXU89ZLSia1gVjoG82Q9HZyMX LoUbqTp0nFw9yGb1xDZuuga1IBwrI6ccjR7EulmuA7r6us/Uo88G3+9JzSn7aQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701378994; 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=bZp+GrgQueujGyYhkSpSToDn+O/RdIcR3u3XHoaYEGU=; b=u0xTzHs6S7hMjlBZjsXkB9GWYorhPWtwl5BM5hjKWSiyrFpUUIJKqhmXXcR3uT9wnGGEKn 8byY07RhK9ktpqAA== 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: Define PER_CPU_VAR macro also for !__ASSEMBLY__ Cc: Uros Bizjak , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231105213731.1878100-2-ubizjak@gmail.com> References: <20231105213731.1878100-2-ubizjak@gmail.com> MIME-Version: 1.0 Message-ID: <170137899333.398.9789817783303895226.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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 13:16:55 -0800 (PST) The following commit has been merged into the x86/percpu branch of tip: Commit-ID: 43bda69ed9e3b86d0ba5ff9256e437d50074d7d5 Gitweb: https://git.kernel.org/tip/43bda69ed9e3b86d0ba5ff9256e437d50074d7d5 Author: Uros Bizjak AuthorDate: Sun, 05 Nov 2023 22:34:35 +01:00 Committer: Ingo Molnar CommitterDate: Thu, 30 Nov 2023 20:06:16 +01:00 x86/percpu: Define PER_CPU_VAR macro also for !__ASSEMBLY__ Some C source files define 'asm' statements that use PER_CPU_VAR, so make PER_CPU_VAR macro available also without __ASSEMBLY__. Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20231105213731.1878100-2-ubizjak@gmail.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 b86b27d..0f12b20 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -84,10 +84,15 @@ }) #endif /* CONFIG_USE_X86_SEG_SUPPORT */ +#define PER_CPU_VAR(var) %__percpu_seg:(var)__percpu_rel + #else /* CONFIG_SMP */ #define __percpu_seg_override #define __percpu_prefix "" #define __force_percpu_prefix "" + +#define PER_CPU_VAR(var) (var)__percpu_rel + #endif /* CONFIG_SMP */ #define __my_cpu_type(var) typeof(var) __percpu_seg_override