From patchwork Mon Jan 9 13:40:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13093601 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 866B8C5479D for ; Mon, 9 Jan 2023 13:42:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234870AbjAINmE (ORCPT ); Mon, 9 Jan 2023 08:42:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237179AbjAINlU (ORCPT ); Mon, 9 Jan 2023 08:41:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B95111C; Mon, 9 Jan 2023 05:40:48 -0800 (PST) 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 76EC6B80DE2; Mon, 9 Jan 2023 13:40:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1778C433F0; Mon, 9 Jan 2023 13:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673271646; bh=9EuVXjz2UbAmjPovKyC95UPc5WfADTmiN/ZzTiBVjz4=; h=From:To:Cc:Subject:Date:From; b=hVVP+FSOg1gJIOT65Dz4kcG/y72uM36JlWYMDZv14sAB5m/u/5rln+pnt2av4ATxG +NlEjDVzOQLcKd3iadCtF0OA1TwktZnEUjYfavepl4KVxc3JKRdRAdFON3sfy3pwrK HFnnCsQM5kyw7KjLNa4QZLMbOhdVvdtjq9KxD+xBO3jHeDbCAk0A4nC4few+hRDDdK jIMcW4bpU41C8oH5SmC0CvaKXeKttQyoPAmMhYrny3DJ8oqDVDT2H7q06ywCTWRlDq rGqtKflb0UKiKUASsUqDuZLAPcFNCN4weg43fHZGZoHspi17Jhw7nG/gswgBbfWtYi j0O+4BvDIVAcA== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Subject: [PATCH] kbuild: replace $(dot-target).tmp in filechk with $(tmp-target) Date: Mon, 9 Jan 2023 22:40:40 +0900 Message-Id: <20230109134040.3191458-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org $(tmp-target) is a better fit for local use like this. Signed-off-by: Masahiro Yamada Reviewed-by: Nicolas Schier --- scripts/Kbuild.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 4648ab8f11d4..7778cc97a4e0 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -99,11 +99,11 @@ define filechk $(check-FORCE) $(Q)set -e; \ mkdir -p $(dir $@); \ - trap "rm -f $(dot-target).tmp" EXIT; \ - { $(filechk_$(1)); } > $(dot-target).tmp; \ - if [ ! -r $@ ] || ! cmp -s $@ $(dot-target).tmp; then \ + trap "rm -f $(tmp-target)" EXIT; \ + { $(filechk_$(1)); } > $(tmp-target); \ + if [ ! -r $@ ] || ! cmp -s $@ $(tmp-target); then \ $(kecho) ' UPD $@'; \ - mv -f $(dot-target).tmp $@; \ + mv -f $(tmp-target) $@; \ fi endef