From nobody Mon Apr 6 09:08:52 2026 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: quoted-printable Content-Type: text/plain; charset="utf-8" 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_c= fi/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 so= urces # The VDSO_CFI_BUILD variable will be passed to it to enable CFI compilati= on include $(src)/Makefile + +# Clean rules - remove the copied source files +clean-files +=3D $(notdir $(vdso_c_sources)) $(notdir $(vdso_S_sources)) --=20 2.50.1 From nobody Mon Apr 6 09:08:52 2026 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) (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 151803161A4 for ; Fri, 20 Mar 2026 02:19:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.119 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773973155; cv=none; b=TA/DTpVJc557Zki3su9EfU2nvOiNEwLnBLKNFjXvoMjBKRwV1cVf+qXgO40AMSDlRmn9EfHxCKlDkSCSb+e07frTZOd06lCueSUMmjWz9v9AcmAgOqRoWzLnDU3t8LPN4opet/3PjITk0Xj9xz6W2hNr04exl08/+37Tl8petLE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773973155; c=relaxed/simple; bh=V5Rrz+EMgP6qYz1UBA6VgYEq1ghWHxDirHWLfz/tFgI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YA/xEh3aiKGZF3BY+y+d0vfOaj+9B+oGx9aQKL5Jv+ld0JpspgDb1eU8KRQtki8hQ2mIKGPIkYY7hr08x/AmAkDX2eU/8Mjr+AKeZmPmxjGYwJIcm38BRuKpRtSsb4PENvBPIgqdgwOWN2R975fqvE7mWMTmh33KVAxAFQsRZA0= 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=QhlCZpZT; arc=none smtp.client-ip=115.124.30.119 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="QhlCZpZT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1773973145; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=27FZNlSrp1L9MDL1syetD/oEdjuKAA4Hp+762ac1MUE=; b=QhlCZpZT+gkM7AcZlasME2LdcXNrqUsLkRwxRG5RQnAP87wUlADwFpc5Z5zbP0r9hlkWXO9q9Z3uzss+g0GL0W7zB31Qh4d+SNsfF1zFDB8HMNvLWDUyYIEaiGfrGYLjo4yNcKu5of0Vf/TPbyW2VyZQvSp4MmDyTy2pU1ODF70= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033032089153;MF=cp0613@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0X.JxWE3_1773973144; Received: from DESKTOP-S9E58SO.localdomain(mailfrom:cp0613@linux.alibaba.com fp:SMTPD_---0X.JxWE3_1773973144 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 2/2] riscv: vdso_cfi: Add .gitignore for build artifacts Date: Fri, 20 Mar 2026 10:18:50 +0800 Message-ID: <20260320021850.1877-3-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: quoted-printable Content-Type: text/plain; charset="utf-8" From: Chen Pei The vdso_cfi build process copies source files (*.c, *.S) from the main vdso directory to the build directory. Without a .gitignore file, these copied files appear as untracked files in git status, cluttering the working directory. Add a .gitignore file to exclude: - Copied source files (*.c, *.S) - Temporary build files (vdso.lds, *.tmp, vdso-syms.S) - While preserving vdso-cfi.S which is the original entry point This follows the same pattern used in the main vdso directory and keeps the working directory clean. Signed-off-by: Chen Pei --- arch/riscv/kernel/vdso_cfi/.gitignore | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 arch/riscv/kernel/vdso_cfi/.gitignore diff --git a/arch/riscv/kernel/vdso_cfi/.gitignore b/arch/riscv/kernel/vdso= _cfi/.gitignore new file mode 100644 index 000000000000..220b6ebece4f --- /dev/null +++ b/arch/riscv/kernel/vdso_cfi/.gitignore @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copied source files from the main vdso directory +*.c +*.S +!vdso-cfi.S +vdso.lds +*.tmp +vdso-syms.S --=20 2.50.1