Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1132519rdb; Fri, 1 Dec 2023 07:51:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhy6ObOFhhoGudTqtDrpKHf/HabJ63qWE9qEH3lochmq+J4TP50KDb4X//7v/pe2B6Bsin X-Received: by 2002:a05:6358:27aa:b0:16d:bbb3:69c6 with SMTP id l42-20020a05635827aa00b0016dbbb369c6mr23883666rwb.13.1701445870516; Fri, 01 Dec 2023 07:51:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701445870; cv=none; d=google.com; s=arc-20160816; b=EsuAsIPRiI5KjaHRvRN5tNNESJB5yHr/libJWNMP64Ha2daQ/JGEbkj1AlKF6sD3n7 Hq0xSiBnp5lXyQId8pokXEXnkg1Gz9oIU6UrLiwsFKCqlAmCqAs5P5i+xDcmmx1CtkIh u5/vjG7hK82KAaxZomw63UCdezbw6HoBtgGv9e6aQkppxju9Uo/3/GsDtU7t3pQWPP4x D8Q6nM5e5ywuU5pUc5sv+w+Gw/4gIAwpB2w5kEzRiOKcDJTuctGMJMiK0oNtnPJ3wVs1 rYE6piVV6+1NE3flAd85mK7eklG4wnPJx2QWLO+RUUuIJf5FVcqayLDYVhVrSrG2igD2 dE8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pbOmWyqxBie0Njw2wSmdFAw8jS4XcfLAnReSNgbm5N4=; fh=EHEygKF0xFXhAvtYF3D5HOwTPRUf0FFODCVsMvoEM+U=; b=FbJZzYN7JKQejqQWycQG27zcVdBBCOkvRan4XAbRTPiwFSoK4w5o7+AXL7wHLpDCxO 00YArJTan/scmLg6PIat1jQ2rSsTDFz6rWx7KdDG7ieDVOnnHiAtjqUazyIG5JVfRNtO oFhAnUcy5Bm6jJEqq9QSNhnh+E2XOfo+nsUyA2R2s+DDmPon+ll+5jBbH+utTZP7gz0R dPXCakfnZSXQw4AdgfvNMaaYRmK2gLpOeD995tRyopmQfMinxeeP/RS0NtOvU5Mj7ZAo 6q6jImwrcn4A6gvdoElIxk3vOx5iw1p/oAl/ehK1nQclOnHbBTcqF8qVOtqP6J9ZRuqB JfkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=cikcUjj3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 1-20020a631041000000b005bdbcdc9e3dsi3681320pgq.142.2023.12.01.07.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:51:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=cikcUjj3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8AE3682A7E12; Fri, 1 Dec 2023 04:46:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378896AbjLAMqW (ORCPT + 99 others); Fri, 1 Dec 2023 07:46:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378844AbjLAMqV (ORCPT ); Fri, 1 Dec 2023 07:46:21 -0500 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8A0DC4; Fri, 1 Dec 2023 04:46:26 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 8312940E025A; Fri, 1 Dec 2023 12:46:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zksQR-TEcRDn; Fri, 1 Dec 2023 12:46:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1701434781; bh=pbOmWyqxBie0Njw2wSmdFAw8jS4XcfLAnReSNgbm5N4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cikcUjj3wn5FcMNDJ9pDSFB2W/DIsPnBMHvnnP21AFB4DPkXlvSKKuu2pYzG0J8eV nTcdrak2MIdX5mpV4aSbVmYoTIBkxWn3hCImUb9IwB/RG2YKbNyPbshU6mEGphWDnY sMB+mWeQ42lovnBPBZMosfFZK3KsxlTkJxl4EftCg6XhIQm8fhcthEI5sJFA2blLAS GgKxw97uDgM5YWZWQihQ3yqSlYR9LDnQr6gonbcv04FJC6Yf8dTgFkGQKxKiniTqgi J7lhBnzGMG75rK+7Ryy6DqT9gHgMj6N12obQV/oK+EYSfk4AJDkYzBJggZdQaDJA8S D3GAYiwAv9cP3Q/Tj5uhiu3vIiAUobVhq+ocOJB0mAi5XQLTgCmshT593FeLnTWUWQ AFmNn8qrM14mj2XQhuSWc2w7zbd8aEF66FO8bWqOaugt7WxArWlg/l+m8nUmYXepSg n35ra4FrrFq3/YSEiymG1iSVajxXafVltKtOxb9AK/W5lKKTlwiZMy0/GN/st8RuuE Az5I0pHof0QedCD/WrBn3oEnhHseghmTRcDhmK2CEWFcQyFODmegWcZV7eKkuvoxQn Zwct95qfRzjn9I1aGfYZ+MFUAMP7GAh3RdijGrcY8J5WPPF6hnUTHsvXwQy53toEHA y0ejk2I1gYmakdiuq9IYPdxw= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E0C6140E0030; Fri, 1 Dec 2023 12:46:14 +0000 (UTC) Date: Fri, 1 Dec 2023 13:46:08 +0100 From: Borislav Petkov To: linux-kernel@vger.kernel.org Cc: linux-tip-commits@vger.kernel.org, kernel test robot , Uros Bizjak , Ingo Molnar , x86@kernel.org Subject: Re: [tip: x86/percpu] x86/percpu: Declare const_pcpu_hot as extern const variable Message-ID: <20231201124608.GAZWnVkA03ZrnMJgVs@fat_crate.local> References: <20231130162949.83518-1-ubizjak@gmail.com> <170137899052.398.2740335306554226817.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <170137899052.398.2740335306554226817.tip-bot2@tip-bot2> 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 pete.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 (pete.vger.email [0.0.0.0]); Fri, 01 Dec 2023 04:46:47 -0800 (PST) On Thu, Nov 30, 2023 at 09:16:30PM -0000, tip-bot2 for Uros Bizjak wrote: > 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) > { WARNING: modpost: EXPORT symbol "const_pcpu_hot" [vmlinux] version generation failed, symbol will not be versioned. Is "const_pcpu_hot" prototyped in ? WARNING: modpost: "const_pcpu_hot" [arch/x86/kvm/kvm.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [arch/x86/kvm/kvm-intel.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [kernel/trace/preemptirq_delay_test.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [fs/exfat/exfat.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [fs/ntfs/ntfs.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [fs/xfs/xfs.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [fs/btrfs/btrfs.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/acpi/acpi_pad.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/gpu/drm/display/drm_display_helper.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/gpu/drm/drm.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/gpu/drm/ttm/ttm.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/gpu/drm/i915/i915.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/misc/mei/mei.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/usb/core/usbcore.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/usb/class/cdc-acm.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/usb/class/usblp.ko] has no CRC! WARNING: modpost: "const_pcpu_hot" [drivers/usb/storage/usb-storage.ko] has no CRC! And the usual fix for those things: diff --git a/arch/x86/include/asm/asm-prototypes.h b/arch/x86/include/asm/asm-prototypes.h index b1a98fa38828..7e6440bae63d 100644 --- a/arch/x86/include/asm/asm-prototypes.h +++ b/arch/x86/include/asm/asm-prototypes.h @@ -13,6 +13,7 @@ #include #include #include +#include #ifndef CONFIG_X86_CMPXCHG64 extern void cmpxchg8b_emu(void); does NOT fix it. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette