Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp609657rdb; Thu, 30 Nov 2023 13:16:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMZqIy1x0W71pf55ebfYz1Li2EBeiLAyqdgZqYryLTZp3QJkliyYougjC6C6gNtvpMQbVD X-Received: by 2002:a05:6a20:ba99:b0:18b:30e2:7e55 with SMTP id fb25-20020a056a20ba9900b0018b30e27e55mr23770485pzb.46.1701379017144; Thu, 30 Nov 2023 13:16:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701379017; cv=none; d=google.com; s=arc-20160816; b=Om5XWVbBKh647jYhS674lGMla6VRZE6WR709r5JBorWMorKXS1W5OpYNKFBXYv9VE7 t0Q/3CA17Sg0uxD8tGWZZSsXZ6lCeJkZJUIlyPQQv+Ro34mzEy057GJuYnr6oGU0FcVD c9yol/16w4zBuZyTyMIGAxF2ctnohIabDFZsYEDhLwmw1cuBZM73NfXGTjNRxtLvfK1s ag95C1LC1yQyynSmCVnTun5lU52PmfcdFMgMWEyRQgZrrE9fD9DXqguTIWtHdxfE0SOF nd42ln9Mnxy6spmWgizk14AwIMJlQ2Gr2sOIH++UBoMG6wWfvKZ6+2VCnR3dVlrTw3ve Z/rg== 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=vavI3RxrLtloE3LjQEUBpt9Crabz1GqFixWES3vlEKk=; fh=9OA7zYIMwPyRGKpzJW87UpRXyIldaUc9DBUFB35efC8=; b=IoLTWmS5cJwLSwGgqSeo834e5TYhtoad/8Ayb9Md+3ofSKULaXIwEh60Tk91vQoU+H oxt/WK36F0iTMH3sgqot+mzcWmkyi1Hn2gixFI1pon+MZLOIMih6aRQA/BH/RYT3NVIA gsQ+QzdQvk0/IfzoN+9sbtfqB7iTrtCrGRp9JjqaNozmeCWbVTrVsy0rSaVC8I8eSaM/ uW5HuuRcetk4WsrnqwuV5aRp1r/Wy88VxaD0aRSDGed6nUBf71MWk/4/Gtlf7KVUQIyf sHF4zzmCLVZ5I5O7En759kkEqShID2eLjgi2CMeq2iuJFdXoPSsHFBcdpKpKywSkV9I2 JOEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aVl4TBu1; dkim=neutral (no key) header.i=@linutronix.de header.b=+oP2G7fy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z17-20020a62d111000000b006cb2dd42908si1963726pfg.360.2023.11.30.13.16.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 13:16:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=aVl4TBu1; dkim=neutral (no key) header.i=@linutronix.de header.b=+oP2G7fy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 2F5F68026AB2; Thu, 30 Nov 2023 13:16:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376876AbjK3VQa (ORCPT + 99 others); Thu, 30 Nov 2023 16:16:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376841AbjK3VQ0 (ORCPT ); Thu, 30 Nov 2023 16:16:26 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88E0910E5; Thu, 30 Nov 2023 13:16:32 -0800 (PST) Date: Thu, 30 Nov 2023 21:16:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701378991; 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=vavI3RxrLtloE3LjQEUBpt9Crabz1GqFixWES3vlEKk=; b=aVl4TBu1rzjQtgN1aiSMeuM5vbF9jPKmRH6nCb2HdvGPlcbeKQCu9XBgwxeUJIUjPp+I0j WcB+NV3w017sT0TMIjBvpc3z3HWcFobD0ftQT3/j689jZO/FSQ6QfVRRCIclWm8xgESTWS AwokAP74+E3Wc7b/60Wwc8T4i2UDNy2Yhn0atv6wGFVtJbW/DcDW4iSCdRS5/AmkuBXeNL qosoNJPvYVU/eYlIRDWP3lFMdz8/9ToeUcMgbKbrhHvLPHoeXpPXn+5A+rZUIAU7KACR/+ MdClDYbKUdxLsLg78jBOFEVlxWApPwKGvHoZXpUUJ4VtmZJrC09SkurKwSEOHw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701378991; 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=vavI3RxrLtloE3LjQEUBpt9Crabz1GqFixWES3vlEKk=; b=+oP2G7fyRT8waiZaoPuWiUTAGQ3kR68HD9o6om0xRgr30jlaLuOVFjfICBw6l/UDmd8MyP s6MFnPWLJECOXvAQ== 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: Declare const_pcpu_hot as extern const variable Cc: kernel test robot , Uros Bizjak , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231130162949.83518-1-ubizjak@gmail.com> References: <20231130162949.83518-1-ubizjak@gmail.com> MIME-Version: 1.0 Message-ID: <170137899052.398.2740335306554226817.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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 13:16:51 -0800 (PST) The following commit has been merged into the x86/percpu branch of tip: Commit-ID: 4604c052b84d66407f5e68045a1939685eac401e Gitweb: https://git.kernel.org/tip/4604c052b84d66407f5e68045a1939685eac401e Author: Uros Bizjak AuthorDate: Thu, 30 Nov 2023 17:27:35 +01:00 Committer: Ingo Molnar CommitterDate: Thu, 30 Nov 2023 20:19:33 +01:00 x86/percpu: Declare const_pcpu_hot as extern const variable const_pcpu_hot is aliased by linker to pcpu_hot, so there is no need to use the DECLARE_PER_CPU_ALIGNED() macro. Also, declare const_pcpu_hot as extern to avoid allocating storage space for the aliased structure. Fixes: ed2f752e0e0a ("x86/percpu: Introduce const-qualified const_pcpu_hot to micro-optimize code generation") Reported-by: kernel test robot Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20231130162949.83518-1-ubizjak@gmail.com Closes: https://lore.kernel.org/oe-kbuild-all/202311302257.tSFtZnly-lkp@intel.com/ --- arch/x86/include/asm/current.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/current.h b/arch/x86/include/asm/current.h index 0538d24..9fbd7cb 100644 --- a/arch/x86/include/asm/current.h +++ b/arch/x86/include/asm/current.h @@ -37,8 +37,7 @@ static_assert(sizeof(struct pcpu_hot) == 64); DECLARE_PER_CPU_ALIGNED(struct pcpu_hot, pcpu_hot); /* const-qualified alias to pcpu_hot, aliased by linker. */ -DECLARE_PER_CPU_ALIGNED(const struct pcpu_hot __percpu_seg_override, - const_pcpu_hot); +extern const struct pcpu_hot __percpu_seg_override const_pcpu_hot; static __always_inline struct task_struct *get_current(void) {