Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2422928lqo; Mon, 20 May 2024 05:42:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVWdkEEm3tiRCf1XI+H41PO6SzPpckDqjgeC4KrKvgPXsyPL4qu2G6oGtbKadrUBQFfFb/v1i7aCvgpxto2OgHG9+c1CHH2VPsHz9/Skg== X-Google-Smtp-Source: AGHT+IGQBf+5BoDKYm/rAA298p1keaEpnSSaUEgEMsdyg0p0KpO56Xlgu2A+fOzeqhyvNg3H47Oa X-Received: by 2002:a17:907:76d4:b0:a61:38cd:545 with SMTP id a640c23a62f3a-a6138cd05e5mr184198466b.55.1716208957353; Mon, 20 May 2024 05:42:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716208957; cv=pass; d=google.com; s=arc-20160816; b=ToDp+cxoFAVozgOrTbrtJCP+HLECecrlfq7YOGPUcmmUmnWt2sZ2+ErY8mj5nvDiYI 10ZU2aqSw0g9KtOndSG6+Jvq8U/l/bIdXwyg9BrOlwRowqWuDkp26X7BOTSQwMd6lud+ 7ZrX+No+O7v2cesXx634UWPhQuxXLLK2kTi0FU2HnEknFN3JwxWwlEPsv3yrEKBAPXJd p9DRhsJLkOgKY2Z4YDrLmxygwVZXhNOvd1saVPac0VwFPM9lzGuiH8B+Es/WBXYR/RX/ y3yNEILZgQcR4LtbvDos6HDacwPRvVe1On45j+DG77yECVK68dFfdbCa0jtuBo84MULY uiPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=4cOFeA6qhsdZm5LW+GfwKtvmiCvKYOU+ubU2bSqq+R8=; fh=xHPdo5JYSPMs+bpr03L8RxxkF6KsvthrRUK544HyWMA=; b=eCMOSJve2DvWRLataDU+k9JaYgv/zxwyuqyDdESB83mE1jdIihaB6gRAS99uHddevD T9GUiRbt4bAcy9CQfPp3gG/enBe4uZCDc53RXKg0L9ZldU1CyewstqBh6u+nh73doaJ6 0TDtuU1BQtRBPVpvV0fSDvtBYD5Ld+4ZdrzHRHH+HyiAJ4HmCt03Fwn1ObnjGdkLzj89 W5Y7mFc1KAWWot9OBtWMcOPo/xUX5VPTCGzEYQCYLVzUla08CW8lU3pr2LxU0QpW5fCj TIpZIdDrgRFMjtC9+Py/749qZv7G2J83o15ta3tHP0OHMZD3rqfQYTh4tOqYQt/ftRBP ER6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NqdltHSL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be64casi1348914766b.746.2024.05.20.05.42.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 05:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NqdltHSL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183755-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183755-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8AE341F23087 for ; Mon, 20 May 2024 12:42:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0986F56440; Mon, 20 May 2024 12:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="NqdltHSL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1E6AF50275; Mon, 20 May 2024 12:42:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716208943; cv=none; b=MZ2u8HK3+UneT1sOzNE+QcyxtvM6f1rSnedFGzWRGMQNKwtNXD6OY57Yhyc+ybuh4T+vniJiRdbI5/R2bTgKFmaG99HAAoL0F0DLbSh+5mHVC+Ft44bEb2P2h+lLI9erOxU9h+h/WL8fyT2ASFonDwZu44KrMkhUjRfQQc5IQaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716208943; c=relaxed/simple; bh=M2LPrcBN4NRW7Bx1q8rRWAVSx74u4Qc/i9qC/K/q/5c=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=DF+utaLFUtV6l/N94aQ0TvVlEBWF2/C21FgsrSxt49aUQs0nJwD5tUDkB/JpmaL+XHytUh1sDAr7rgeEvqTgsSifvDBtDT2Jazbq93JSKz5mCU8gw3u2DsbORMCY8aKll3G74RJhGyft280zIkxe4/CrxmRviOjyZwt1qHvHtdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NqdltHSL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 468F5C2BD10; Mon, 20 May 2024 12:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716208942; bh=M2LPrcBN4NRW7Bx1q8rRWAVSx74u4Qc/i9qC/K/q/5c=; h=From:To:Cc:Subject:Date:From; b=NqdltHSLo7ZT69cnfHuZC6cInm8E/0Jd7BSNm+b9t8FGt/c8SXyYhaBn97jAOevDZ n1xVRBhovATeBA3Lac0JTcoP84ymeSNpJBQQtigRsBF5+i5Ar/ZNzhvfrOGG9+p7+d K+9Ba9tmHezqhXMB9Ko2T4rSfEFu9Zpmf/bVPupKwX3uKb62sgcBRTXJ+xAko0gOdR cnl1Zfy2MLKRYDg1LieR4g+2VGSjCMivkxdGpYbVemytJUXS4/HDsXGcXGk7lvdRXm 24l1Pw5Pu7RbeTbkywS/j+gPQvv6TzVjFRuHAJNnp29hRxZmdZzgiYvPwB0Qz/24cc R6iUtg/W3CTQQ== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, Masahiro Yamada , Arnd Bergmann , Kees Cook , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-arch@vger.kernel.org Subject: [PATCH 0/4] kbuild: fix and clean-up after avoiding kallsyms weak reference Date: Mon, 20 May 2024 21:42:08 +0900 Message-Id: <20240520124212.2351033-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit I noticed a compile-time regression after commit 951bcae6c5a0 ("kallsyms: Avoid weak references for kallsyms symbols"). 1/4 fixes the unneeded kallsyms step 3. 2/4, 3/4, and 4/4 are follow-up cleanups. Masahiro Yamada (4): kbuild: avoid unneeded kallsyms step 3 kbuild: change scripts/mksysmap into sed script kbuild: fix shortlog for AS in link-vmlinux.sh kbuild: remove PROVIDE() for kallsyms symbols include/asm-generic/vmlinux.lds.h | 19 ------------ kernel/kallsyms_internal.h | 5 ---- scripts/kallsyms.c | 6 ---- scripts/link-vmlinux.sh | 49 ++++++++++++++++--------------- scripts/mksysmap | 28 ++++-------------- 5 files changed, 32 insertions(+), 75 deletions(-) -- 2.40.1