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 39669C61D98 for ; Tue, 21 Nov 2023 23:57:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234938AbjKUX5T (ORCPT ); Tue, 21 Nov 2023 18:57:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234703AbjKUX5O (ORCPT ); Tue, 21 Nov 2023 18:57:14 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA9B21A2 for ; Tue, 21 Nov 2023 15:57:10 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 044C8C433CB; Tue, 21 Nov 2023 23:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700611030; bh=YIz9IynczYR7U90yH62Boq0adsyZcqNtIbOqQHRnXxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AECmMPUzvp8OXYGuSbkcsiIb34EBjISMOkmWB2e0PFYP0yRrPV111M7GOBfowZNN9 up76BEiuiYJqSAR34fIl/dpeV+M26AGqlNgIZ7weQvatRSoSNPHb3QmAgVL+NwA7V5 kbxf7LyKTuUlSZ2k1FnPL1qQlEpdpaICq0hfnIxKsk1srhCMPrZuW3Gs4wTfFhGaBk 1XdJ2mBbU8cpu56+aOe41iJTYfvsUDQQ7WyE/tpkmg0hE0B7635Pib6QFRcFp2APo6 9JLgWVBezkbY/5MKejlBvALX+U4PPadgpAjAyNoIGOLgl8yYOcCE0I2RDhYOzISAHP cBXqqqbqpFBjg== 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 1/4] x86: vdso: consolidate targets and clean-files Date: Wed, 22 Nov 2023 08:56:58 +0900 Message-Id: <20231121235701.239606-2-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" 'targets' and 'clean-files' do not need to list the same files because the files listed in 'targets' are cleaned up. Refactor the code. Signed-off-by: Masahiro Yamada --- arch/x86/entry/vdso/Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index b1b8dd1608f7..2038d9c8e527 100644 --- a/arch/x86/entry/vdso/Makefile +++ b/arch/x86/entry/vdso/Makefile @@ -55,11 +55,8 @@ targets +=3D vdso32/vdso32.lds $(vobjs32-y) =20 # Build the vDSO image C files and link them in. vdso_img_objs :=3D $(vdso_img-y:%=3Dvdso-image-%.o) -vdso_img_cfiles :=3D $(vdso_img-y:%=3Dvdso-image-%.c) -vdso_img_sodbg :=3D $(vdso_img-y:%=3Dvdso%.so.dbg) obj-y +=3D $(vdso_img_objs) -targets +=3D $(vdso_img_cfiles) -targets +=3D $(vdso_img_sodbg) $(vdso_img-y:%=3Dvdso%.so) +targets +=3D $(foreach x, 64 x32 32, vdso-image-$(x).c vdso$(x).so vdso$(x= ).so.dbg) =20 CPPFLAGS_vdso.lds +=3D -P -C =20 @@ -190,5 +187,3 @@ GCOV_PROFILE :=3D n =20 quiet_cmd_vdso_and_check =3D VDSO $@ cmd_vdso_and_check =3D $(cmd_vdso); $(cmd_vdso_check) - -clean-files :=3D vdso32.so vdso32.so.dbg vdso64* vdso-image-*.c vdsox32.so* --=20 2.40.1