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: 69352 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1624513wrd; Tue, 14 Mar 2023 01:05:49 -0700 (PDT) X-Google-Smtp-Source: AK7set843wCu/uJu95gHoo5x9WD16MaKtu3OZD7LNnABQW3stEU0kjFAoR6gdyi11GytgUdmgbVa X-Received: by 2002:a05:6a20:4409:b0:d0:3eb7:4189 with SMTP id ce9-20020a056a20440900b000d03eb74189mr15378366pzb.3.1678781148761; Tue, 14 Mar 2023 01:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678781148; cv=none; d=google.com; s=arc-20160816; b=qH+FnG4MFKwjXAIYizphG459CBKWzHY4nyq3q7DJQZL8HbFER0kBu6FosTSSy+B3dO pMG4oBjdHBAUI/oeeMjGCg6Rgmwz9f/XBDCqFvzZndfLpGifE33Pbp2OoNvEJ7qe6IMB pY8jnbZ/nlTxpsxYdDw/cSkmv1qtPdBatDQFohtI1hto41eOQkx1yAd+t5k8R9tiWOyl ao/82g8K7idO9WKXNTD1BR5m6cfkhOgf6qHrcy3kMHJje4A0Qu6iO4aJHnc3tOtwaNI6 MukiXfnmkeH28X44P9VXQBFUnSVXn2KuUPm6dNQgwv1KKPP/zLvrlto1EyoKbX7ivNdY on3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SM5vJnTP1scmWCyyZRSHpI9CIT0Bf9PeHkc8TEA3jTU=; b=UvFoGlP+PuPk7/7v5GrSR5uwJAfsiyzUbSreNjf4f66EiqEllC+RJ2auCbRRpNjegz UCgfsisyoAhD+lGFR9S9SdnJ4UTnSPq/oLNdP7TJ9JaDr41QIa0Z6XoMybSx1rbfS2eV 3Yk1U2JkSkGhBhGQMHDwTXmmm+D5zBdfuvZ3RCBMVyHKgqlUlOxa/laBS0AlNDek0K+R zQSJ0zNg2xdQHHbdd0U/wzapOE8PWD0XB1Rt9Gn4AmD6CqeGnVYCEFrBHUzqDnUEsgpD JdVsEvKHBc6u8D+FZj1DvVQjo5MNoYfNCWN9dCy7q8g8/Mu0uUGstSSLCM9VhsYCs+4V k4Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s2vPz83Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a630c42000000b00502ed95c56csi1741666pgm.60.2023.03.14.01.05.28; Tue, 14 Mar 2023 01:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s2vPz83Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbjCNHoE (ORCPT + 99 others); Tue, 14 Mar 2023 03:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjCNHoC (ORCPT ); Tue, 14 Mar 2023 03:44:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4427DF96B for ; Tue, 14 Mar 2023 00:44:01 -0700 (PDT) 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 EB26DB81887 for ; 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-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760329622195509170?= X-GMAIL-MSGID: =?utf-8?q?1760329622195509170?= 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)