From nobody Wed Dec 17 23:07:02 2025 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 7A2E8C61D99 for ; Tue, 21 Nov 2023 23:57:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234977AbjKUX51 (ORCPT ); Tue, 21 Nov 2023 18:57:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234939AbjKUX5R (ORCPT ); Tue, 21 Nov 2023 18:57:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F2D71A2 for ; Tue, 21 Nov 2023 15:57:14 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA97DC433C7; Tue, 21 Nov 2023 23:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700611034; bh=Fkwx/7dQoGPA1O843IBgRSOzjaXZ20gyiZMK5qWVDQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c01rYmA+0CI4XR/8U9hC++WrFzlDXyIYnsbGSyyfW036RN4nYUTUeme3vmska38aM wIWQ8k6/WfO+bitXUsyNMcN6vIGTHhpH/YOgqwx6LlQmo5RhvngfYtwMdv2Kd46Inb NCutzrvuFJoGA9kEGcWNj3T8PtFBh+LYPanD1qpaeKfuM31HKDDP5NFf0jpyyMbgAy +kYx4U9W1mge/911DdSElhawseIECJNwwTuW4/8U9yjkiF3IfJ1T3nsRj5oW2IKBWE B5ijq2DeQWWR3wrIgO3uHAYBaXZGhX5aZWMlgd38aM6TTlECz+onG4YbqCPJHaIIMN 6Brw+jm64NG4A== From: Masahiro Yamada To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: Masahiro Yamada , Andy Lutomirski , "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: [PATCH 3/4] x86: vdso: use $(addprefix ) instead of $(foreach ) Date: Wed, 22 Nov 2023 08:57:00 +0900 Message-Id: <20231121235701.239606-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231121235701.239606-1-masahiroy@kernel.org> References: <20231121235701.239606-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" $(addprefix ) is slightly shorter and more intuitive. Signed-off-by: Masahiro Yamada --- arch/x86/entry/vdso/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index cbfb5aab5e9c..439b52772e69 100644 --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile @@ -40,8 +40,8 @@ obj-$(CONFIG_IA32_EMULATION) +=3D vdso-image-32.o vdso32-= setup.o =20 OBJECT_FILES_NON_STANDARD_vdso32-setup.o :=3D n =20 -vobjs :=3D $(foreach F,$(vobjs-y),$(obj)/$F) -vobjs32 :=3D $(foreach F,$(vobjs32-y),$(obj)/$F) +vobjs :=3D $(addprefix $(obj)/, $(vobjs-y)) +vobjs32 :=3D $(addprefix $(obj)/, $(vobjs32-y)) =20 $(obj)/vdso.o: $(obj)/vdso.so =20 @@ -112,7 +112,7 @@ VDSO_LDFLAGS_vdsox32.lds =3D -m elf32_x86_64 -soname li= nux-vdso.so.1 \ vobjx32s-y :=3D $(vobjs-y:.o=3D-x32.o) =20 # same thing, but in the output directory -vobjx32s :=3D $(foreach F,$(vobjx32s-y),$(obj)/$F) +vobjx32s :=3D $(addprefix $(obj)/, $(vobjx32s-y)) =20 # Convert 64bit object file to x32 for x32 vDSO. quiet_cmd_x32 =3D X32 $@ --=20 2.40.1