From patchwork Tue Mar 14 07:43:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13173818 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 CA843C6FD1F for ; Tue, 14 Mar 2023 07:45:10 +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: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:In-Reply-To:References: List-Owner; bh=ZvFsgrOfzHW3Me4PD53KC3ZLI8Qj9PSGhKJt9+Tn7NY=; b=kk2rj3Z6tjjfjM ySTZummgnZB5NtvafK36ncUM7rSGbsBWWDeb9M+z56BsalWpVlRYEqU1M9tXvLlMaJ8TitPmayU1b 98Lx7tZm9ZIwlMhyyeIlGX7RQYWIr1ROZBJSc+0nH2KnwAbIsG42LFLy9bxWxjOB2Ela8ISutipiX BylwZBgQsrhQ9TYF+uMnW41WAb+qFXOIdrO/rT4FHFKnomAiqBETbTaAWUwk9tCxCf7xxxa7CBgQc 1KzI1bIIFPcJ7SPeZB3npwe9NNp2vHHzWw/sCtAKit5p6HVgTaGG3iAVQqw2jlXEQlpSdyOvR7D56 FrzsyiFOJpIDy8fHUp4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbzKT-009OOI-Sh; Tue, 14 Mar 2023 07:44:17 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbzKC-009OMY-In for linux-arm-kernel@lists.infradead.org; Tue, 14 Mar 2023 07:44:16 +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 dfw.source.kernel.org (Postfix) with ESMTPS id 31D3B615F6; Tue, 14 Mar 2023 07:43:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50748C433EF; Tue, 14 Mar 2023 07:43:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678779838; bh=dOECTpwTzkX6vMrRENSU3oFMVXyJLNoi6M7bhCTSr7Q=; h=From:To:Cc:Subject:Date:From; b=s2vPz83Q2f6bH4X3RkJvqnDUhk9ewaSU0P/NNXnqDPyuD7rIlsX4rEtlgWKTZVRSr 5ZnPz8rHJWsKeyNaQHcA9AGfE+33m3SeFLDueX2jrbT4IiPXr9BSXedUz/Ras5yEUR Im/uyFz1nCDFOlnKYL/992W+Ogf/EldPmzezP+6pXkP0rmOBvhKwrZQJKDyc+npbs6 4A6x2mbQmmoDVLWUC9gHAek3TPhnvh5VHcY9iqQTvkytap8b4gnfXMRRNM9xYLUXLX GXHevhSaIC7btEvUNKUHAAj8bl3auwVo3qRF/dtDZguC9Y9nmJdNIdygT7buIWk3ED qhlsEYVcE1u0Q== From: Masahiro Yamada To: patches@armlinux.org.uk Cc: Masahiro Yamada , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: decompressor: simplify the path to the top vmlinux Date: Tue, 14 Mar 2023 16:43:51 +0900 Message-Id: <20230314074351.1181502-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230314_004403_744829_0E26109C X-CRM114-Status: GOOD ( 12.98 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With commit 8debed3efe3a ("kbuild: export top-level LDFLAGS_vmlinux only to scripts/Makefile.vmlinux") applied, we no longer see the error message while building the ARM zImage, but we do not have a good reason to complicate the file path either. '$(obj)/../../../../vmlinux' is canonicalized to 'vmlinux'. Signed-off-by: Masahiro Yamada --- KernelVersion: v6.3-rc1 arch/arm/boot/compressed/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 2ef651a78fa2..726ecabcef09 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -107,7 +107,7 @@ ccflags-remove-$(CONFIG_FUNCTION_TRACER) += -pg asflags-y := -DZIMAGE # Supply kernel BSS size to the decompressor via a linker symbol. -KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \ +KBSS_SZ = $(shell echo $$(($$($(NM) vmlinux | \ sed -n -e 's/^\([^ ]*\) [ABD] __bss_start$$/-0x\1/p' \ -e 's/^\([^ ]*\) [ABD] __bss_stop$$/+0x\1/p') )) ) LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ)