From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CDE46C433EF for ; Wed, 29 Jun 2022 09:35:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hXY+WxUhYnLNbNjHbab/JwXfYoNEPcl+mLUO94UHbXA=; b=naeQqtm0adYlzJ pSfMG8x4e9s/O4edtDuYPZ60jVRjtAn8WZf3QUBs9pwbTzF96DXM26RPtpNrkPc/+ZSIwE9mi3cTh PFMCUWVGQsnkKQSirdZUgFwPKd6hnf05od67pTI5Q9RHSYuMZNBiLeMsbtseh8zVJ0hFXvVrMzCmu 5WAXUp/5qhO7JE5PsrFOMTVVLisW0UpY2O8yz9IibAqCyS1khPjD2HQ76ORcpneOQ+XBvc0W3Kkmp IVerRrfQZsR9P01iGBgEX/yGRv/K8a7kVb3D0jmkD7ly+HNhXZSgGCDi08t/QnvnR9aKzok83ZBfO zUqlB3PwMOxr94vZuRKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6U5c-00AhZ5-Kj; Wed, 29 Jun 2022 09:34:28 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o6U5B-00AhPS-W7 for linux-arm-kernel@lists.infradead.org; Wed, 29 Jun 2022 09:34:03 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 77C61B8219E; Wed, 29 Jun 2022 09:34:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD551C341CA; Wed, 29 Jun 2022 09:33:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656495239; bh=NIoKfuYunRJ6dYDXsNLi2ghFYGvu5GnINdPvrSP46X8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SDot/qPK4q5u7C63ooF5cZwQ2Rzo71BUKBV3HE2Rr0rCMBT9y6FRLRTTHt/f1Z6xu 2XYBnZWq/8hlZ4D/cD1v4Au+3A7se9fM89/L01JdB15hNWPG8PFS8llc/iQ/k6Ry7J 3ToX1+q0caDhgdYhghozQGJ2wL7ky4YveSjr8P16sjcJvGBR/0rov8t66G4cqBTxDA AWoplsDs/cSjUqymxv6D1lSLahr1twSHstmNEeIPGnFxnX90DXiSZ3V584huhAObmi wVbCYygJHHaA2O01qkK15DAVNGIK6EvT/qPKbVNdC6MwbYk664FmOFMN6CPzWWkU96 R3aRIIHt3qUGQ== From: Will Deacon To: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , kernel test robot Subject: Re: [PATCH] arm64: lds: use PROVIDE instead of conditional definitions Date: Wed, 29 Jun 2022 10:33:50 +0100 Message-Id: <165649448483.3057465.18219848797375063552.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220629083246.3729177-1-ardb@kernel.org> References: <20220629083246.3729177-1-ardb@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220629_023402_234662_7E732D12 X-CRM114-Status: GOOD ( 15.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 29 Jun 2022 10:32:46 +0200, Ard Biesheuvel wrote: > Currently, a build with CONFIG_EFI=n and CONFIG_KASAN=y will not > complete successfully because of missing symbols. This is due to the > fact that the __pi_ prefixed aliases for __memcpy/__memmove were put > inside a #ifdef CONFIG_EFI block inadvertently, and are therefore > missing from the build in question. > > These definitions should only be provided when needed, as they will > otherwise clutter up the symbol table, kallsyms etc for no reason. > Fortunately, instead of using CPP conditionals, we can achieve the same > result by using the linker's PROVIDE() directive, which only defines a > symbol if it is required to complete the link. So let's use that for all > symbols alias definitions. > > [...] Applied to arm64 (for-next/boot), thanks! [1/1] arm64: lds: use PROVIDE instead of conditional definitions https://git.kernel.org/arm64/c/fbf6ad5efe95 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel