From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) (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 2F3702D2385 for ; Fri, 20 Mar 2026 02:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773973151; cv=none; b=m6INHzR06ThaSU03OAPdt2aFyVATghE//GHFvsEgy1FpsokcZCeFAkkT8ak7YYanwsBB0FpXImunGot08vE3gJcyb/ZyqmKcQsfVe7Fc9gXQczkxs9vfk3E572oCAO5JPFkhSRJRF7xhHDYI4aW6AZHM1KffHCstp++/0hHwhCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773973151; c=relaxed/simple; bh=+zHURmCFzN5gpSAkHi4U0m/KnkaAOqpJtbI67oo/wGc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rv2CvP6sXNYjjH/iD5ZFPZsBp/6rMzlg1ugzzJkVTGlSjkNrViy8SSwQRLOPwOpj9cULW9Ofli9I4p1E+dy8r+EdXwBxcakC7HW7ThGGAitEfhp2re8mum+qYPGu8aCc1j0Qsg62iaTUwWgz0nuyGOz5pfK2EKornrB3qwxnwuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=NQ59hbIf; arc=none smtp.client-ip=115.124.30.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="NQ59hbIf" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1773973144; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=EAzJzufneBlcPoGjpazLCaVobJJTAb5aIWwFY3yZDWc=; b=NQ59hbIfc5j+26+gg+6qtHLZ5x9p7Dr6HUm45rzG+qKzYrmZ1T9Q3Wc37nzM6enKmbc6L9eo0dAjPVvoxWa+dEsYA5DQ1l2jZukd1Hgx5ooCyeruW8PQD8OpNBfY+/fHWQPiGjW+mNKP2Qz4AVH1bQV3JKk/KuiGT2fwcLlERjQ= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037009110;MF=cp0613@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0X.JxWDv_1773973143; Received: from DESKTOP-S9E58SO.localdomain(mailfrom:cp0613@linux.alibaba.com fp:SMTPD_---0X.JxWDv_1773973143 cluster:ay36) by smtp.aliyun-inc.com; Fri, 20 Mar 2026 10:19:04 +0800 From: cp0613@linux.alibaba.com To: pjw@kernel.org, alex@ghiti.fr, debug@rivosinc.com, guoren@kernel.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Chen Pei Subject: [PATCH 1/2] riscv: vdso_cfi: Add clean rule for copied sources Date: Fri, 20 Mar 2026 10:18:49 +0800 Message-ID: <20260320021850.1877-2-cp0613@linux.alibaba.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260320021850.1877-1-cp0613@linux.alibaba.com> References: <20260320021850.1877-1-cp0613@linux.alibaba.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chen Pei When building VDSO with CFI support, source files are copied from the main VDSO directory to the CFI build directory as part of the build process. However, these copied source files were not removed during 'make clean', leaving temporary files in the build directory. Add the clean-files variable to ensure that these copied .c and .S files are properly cleaned up. The notdir() function is used to strip the path prefix, as clean-files expects relative file names without directory components. This ensures the build directory is left in a clean state after make clean. Signed-off-by: Chen Pei --- arch/riscv/kernel/vdso_cfi/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/kernel/vdso_cfi/Makefile b/arch/riscv/kernel/vdso_cfi/Makefile index 8ebd190782b0..10292498b765 100644 --- a/arch/riscv/kernel/vdso_cfi/Makefile +++ b/arch/riscv/kernel/vdso_cfi/Makefile @@ -23,3 +23,6 @@ $(vdso_c_objects): $(obj)/%.c: $(src)/%.c # Include the main VDSO Makefile which contains all the build rules and sources # The VDSO_CFI_BUILD variable will be passed to it to enable CFI compilation include $(src)/Makefile + +# Clean rules - remove the copied source files +clean-files += $(notdir $(vdso_c_sources)) $(notdir $(vdso_S_sources)) -- 2.50.1