From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D929631B838 for ; Fri, 17 Jul 2026 08:06:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784275613; cv=none; b=bMnCuhXXis2Wb/BH4DEXgqP2yK3GAH4ckEkjD/SiSchy/vYeJg9YejiWqrutgr8pwGuB0vttpE5yLjybIbrHfaVbh4UABnfo1O+sDnlEN/yOSsu3kS4sz7hG8wvNZkVOWwEsYiPicRqNgsH7hG+qFk26YAd1Vn/po1dfwiiyVKs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784275613; c=relaxed/simple; bh=Xbx0Xa6exR2m+uqfgf5wH7ZWdOL1Zxul2HP+LIFXESk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ztsr8fCJABsGDz9YCi1b2kbsMATm2LAD1ltGTaxrBelD9LHX7xF72gjlcVPTvo7WAIgzEW3rWk8/zvkwlVYdsN3gULvFbqlxg/UxRV2djuQ6q5G8Gk+uadr+nfY0d8CbQ9yQl8nzry8mDlelf7WLmGjyEFy1zMm2VwNF3ivR5i8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=et8fywNo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/vrAmpzJ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="et8fywNo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/vrAmpzJ" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784275610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dH1Ph/iNnvbnyeD8/iV1ti1OQkX07oDM9rVdvOySvPk=; b=et8fywNoRqrFW6gEfyis5kmBILAozgP9q/8H+2cBn/3Q8/4hTTjShSIdNIP+LFXG/rSSIH HIBPOUenk20MvFDB5PoC54I6Uyt206LIpVhnyKyoQZhUFjuIPa4Qu0amdSk9wq/yF1lEE+ gw35WmibJpVL6ixd68Fwad+aq8pavOncA+u5rivnLhsqURRPpAINWEpoefK3l0uBz03I7N cMXzr09QebLr8EW6aYkXNgVdZGigDZAOxDwL8Z0YUPVoqLWhZ102nBui8o8sGn8j0XdU0i QKV76H0VzCZGLqxYMf4OBfPxzcI5w9x3cF/K/lrLjaYBkeexsqKJqbqPk5QILQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784275610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dH1Ph/iNnvbnyeD8/iV1ti1OQkX07oDM9rVdvOySvPk=; b=/vrAmpzJV2z90yH6e59XzVW6FUAo8a4CQUv4LdbnHXfHefQ/NZxANCOteUeo/ztSTFzUyM 6d2BjLjC+lE6GECQ== To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Mathieu Desnoyers , Thomas Gleixner , Peter Zijlstra , Sebastian Andrzej Siewior Cc: Nam Cao Subject: [PATCH v3 1/5] riscv: compat_vdso: switch to standard kbuild rule Date: Fri, 17 Jul 2026 10:06:34 +0200 Message-ID: <0bf254c6a3a6070938d78bebddd67b3093ac811b.1784274927.git.namcao@linutronix.de> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The compat_vdso Makefile has a custom build rule for *.S files. This is unnecessary, and makes it hard to extend this Makefile to support building *.c files. Switch to standard kbuild rule instead. Signed-off-by: Nam Cao --- arch/riscv/kernel/compat_vdso/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/riscv/kernel/compat_vdso/Makefile b/arch/riscv/kernel/com= pat_vdso/Makefile index 24e37d1ef7ec..8a395b5dd037 100644 --- a/arch/riscv/kernel/compat_vdso/Makefile +++ b/arch/riscv/kernel/compat_vdso/Makefile @@ -8,7 +8,6 @@ compat_vdso-syms =3D rt_sigreturn compat_vdso-syms +=3D getcpu compat_vdso-syms +=3D flush_icache =20 -COMPAT_CC :=3D $(CC) COMPAT_LD :=3D $(LD) =20 # binutils 2.35 does not support the zifencei extension, but in the ISA @@ -43,8 +42,7 @@ $(obj)/compat_vdso.so.dbg: $(obj)/compat_vdso.lds $(obj-c= ompat_vdso) FORCE LDFLAGS_compat_vdso.so.dbg =3D -shared -S -soname=3Dlinux-compat_vdso.so.1= \ --build-id=3Dsha1 --hash-style=3Dboth --eh-frame-hdr =20 -$(obj-compat_vdso): %.o: %.S FORCE - $(call if_changed_dep,compat_vdsoas) +$(obj-compat_vdso) : KBUILD_AFLAGS +=3D $(COMPAT_CC_FLAGS) =20 # strip rule for the .so file $(obj)/%.so: OBJCOPYFLAGS :=3D -S @@ -66,7 +64,3 @@ quiet_cmd_compat_vdsold =3D VDSOLD $@ cmd_compat_vdsold =3D $(COMPAT_LD) $(ld_flags) $(COMPAT_LD_FLAGS) -T= $(filter-out FORCE,$^) -o $@.tmp && \ $(OBJCOPY) $(patsubst %, -G __compat_vdso_%, $(compat_v= dso-syms)) $@.tmp $@ && \ rm $@.tmp - -# actual build commands -quiet_cmd_compat_vdsoas =3D VDSOAS $@ - cmd_compat_vdsoas =3D $(COMPAT_CC) $(a_flags) $(COMPAT_CC_FLAGS) -c = -o $@ $< --=20 2.47.3