From nobody Sat Feb 7 12:29:45 2026 Received: from out0-200.mail.aliyun.com (out0-200.mail.aliyun.com [140.205.0.200]) (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 38DB21DFCB for ; Fri, 16 Aug 2024 02:00:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723773617; cv=none; b=kL1e6d0Dw1I/8SV3p6HH30W8WJI7CyILDBDB2OzwpQP2YoTwvo12q45S2vfTlkXouNcMiNYHbFLiGcHbK0FsyLdNq1IF/ek8dv0twKxjK0/LZJ/+BnAhQB1/b+3BgHf3XbenV0N1xtUZi4d0CIV4eGmTwQN0iXg1muuvJKtfBac= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723773617; c=relaxed/simple; bh=xUHAMMt5CPV43RQEHQURLk5SuPKB5Ii2393sz9l5A1s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tvZrSH8h16HFsAEzQLCfpREqX3ERBwvB6bqzdJYQEIMrzMFMWMbqthyY0BoM9ME+SUFmdaocrRPBYRlza02fd9cEVviZ6/HhmRvlpc/rHbi7pqYHUrwNUHDM+k2Ewd8N5kA0bVF8jIDWSFnIg4G2CVU5QLPiem/WgaS4c8KfJNo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=ObVO3nUu; arc=none smtp.client-ip=140.205.0.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="ObVO3nUu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1723773612; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Z/OyflIhDj1OPlK2j8cfY/ptojYdSEITrCVMmB0cw4o=; b=ObVO3nUu68ulowo3D/xh/idBQyGjaad9zDoW6j4L9dQJ8g6RD7hgdGugLVa2DNA2Zhtp7wIyGao6OIPjBrllMKwbuwCWhsfZD78uC7GEh81jnmo4H+hznvno88uZtMqaUZMvhyDGmygXOI+yYrdRbRTwwRmeM+c2a7BJYqnzPOQ= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.YtEBoj._1723773295) by smtp.aliyun-inc.com; Fri, 16 Aug 2024 09:54:55 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 1/6] um: Remove unused kpte_clear_flush macro Date: Fri, 16 Aug 2024 09:54:42 +0800 Message-Id: <20240816015447.320394-2-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015447.320394-1-tiwei.btw@antgroup.com> References: <20240816015447.320394-1-tiwei.btw@antgroup.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" This macro has no users, and __flush_tlb_one doesn't exist either. Signed-off-by: Tiwei Bie --- arch/um/include/asm/pgtable.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h index 5bb397b65efb..83373c9963e7 100644 --- a/arch/um/include/asm/pgtable.h +++ b/arch/um/include/asm/pgtable.h @@ -359,11 +359,4 @@ static inline pte_t pte_swp_clear_exclusive(pte_t pte) return pte; } =20 -/* Clear a kernel PTE and flush it from the TLB */ -#define kpte_clear_flush(ptep, vaddr) \ -do { \ - pte_clear(&init_mm, (vaddr), (ptep)); \ - __flush_tlb_one((vaddr)); \ -} while (0) - #endif --=20 2.34.1 From nobody Sat Feb 7 12:29:45 2026 Received: from out0-206.mail.aliyun.com (out0-206.mail.aliyun.com [140.205.0.206]) (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 41CA11EA91 for ; Fri, 16 Aug 2024 02:00:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.206 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723773617; cv=none; b=KwqHetxPcY5nENTjJz3zhAknUBqjMYco5AbN1K5M8TDox+kd45TvjAs4S9wvJo87vnfQpViLWWpfkpWdQ6mPYSeQFZVSuSrxpRIZcl/w/dUKvljmwu78IiN4sxY+zn5A6NQCRxhMoMXcjwJGDye1qBEe7GW+BT70t7NBKoYaDG8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723773617; c=relaxed/simple; bh=cDbUxhLghKRwQjhhyye/0uvMgHqwGM+UZdmfKqCKMII=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M+U6KrVMyQlYVTeDDwY3SfcQ0n8lsEllu0Gm01MsPjd3rq6AxKAPa9bhPrTQXsfbmbFrQr47H5Phcq0t8jrOzqFDehQZ2+OBd/AWT4v67Gu1UEoDRlOo4PLieRQomSHJhqJcRSad3kpCtaTi5JgSxddx+q+cpeErISAuBTJBtWg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=ENufe4NX; arc=none smtp.client-ip=140.205.0.206 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="ENufe4NX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1723773612; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=LWI9UQJ/pky4HAg7t6kPtQh05UbFRBIY+bNweOhhjQc=; b=ENufe4NX0ajkWpUG2Y1SQAvCSSRaDw8iku+l1k+scMv8lySKlz4HCwyHJjW83woKHNNn6in1yr7W56GauJbD/tnAMhjxI06dI/YOWFHb7W3GxwA23tMUHJv4iIv1SUOByY8QLJ7cFe+ZueEKIdFVq2Tm23uQNWJmVNlyxC2yzak= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.YtEBojH_1723773296) by smtp.aliyun-inc.com; Fri, 16 Aug 2024 09:54:56 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 2/6] um: Remove the redundant newpage check in update_pte_range Date: Fri, 16 Aug 2024 09:54:43 +0800 Message-Id: <20240816015447.320394-3-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015447.320394-1-tiwei.btw@antgroup.com> References: <20240816015447.320394-1-tiwei.btw@antgroup.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" The two checks have been identical since commit ef714f15027c ("um: remove force_flush_all from fork_handler"). And the inner one isn't necessary anymore. Signed-off-by: Tiwei Bie --- arch/um/kernel/tlb.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c index 44c6fc697f3a..dddbc473baa7 100644 --- a/arch/um/kernel/tlb.c +++ b/arch/um/kernel/tlb.c @@ -82,16 +82,13 @@ static inline int update_pte_range(pmd_t *pmd, unsigned= long addr, (x ? UM_PROT_EXEC : 0)); if (pte_newpage(*pte)) { if (pte_present(*pte)) { - if (pte_newpage(*pte)) { - __u64 offset; - unsigned long phys =3D - pte_val(*pte) & PAGE_MASK; - int fd =3D phys_mapping(phys, &offset); - - ret =3D ops->mmap(ops->mm_idp, addr, - PAGE_SIZE, prot, fd, - offset); - } + __u64 offset; + unsigned long phys =3D pte_val(*pte) & PAGE_MASK; + int fd =3D phys_mapping(phys, &offset); + + ret =3D ops->mmap(ops->mm_idp, addr, + PAGE_SIZE, prot, fd, + offset); } else ret =3D ops->unmap(ops->mm_idp, addr, PAGE_SIZE); } else if (pte_newprot(*pte)) --=20 2.34.1 From nobody Sat Feb 7 12:29:45 2026 Received: from out0-216.mail.aliyun.com (out0-216.mail.aliyun.com [140.205.0.216]) (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 7C5032BB0D for ; Fri, 16 Aug 2024 02:10:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.216 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723774236; cv=none; b=oeX3P4oDYi6i+9fa+oVhg+tHDvsHZin4pojbgjDlcK1rJRxq2KzJKZPNWA9dojvjg+FVlvgy/sG8TAavDy/1hYxX7G8T2HA7wV9ZBt8zJuhzqZACjRHx2XV36ihlKbYuvjWkGVWX5YuUgx73vrmh/WeBCk4mGnG9JpqeX52IwxU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723774236; c=relaxed/simple; bh=SWpKeh7MbepZmFz4/Z15Hq6trYkAJkpcDXccW0JFLqQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uqN/X3Nuid0kP3Z/zk3p1jOtt88VDFgCzd6LID6C0X0P5GJ8cQD/Q+fkALrgH3UtZ+TO6xN9juDv6x4sApoJ3vRDLxBZkDxw6QY7hGOxW+x+vQF7Gb5G9nrZRof41AfvQWGk9ayWIVDcxF8VUImfCTuyf8Kk4nQ+NH5rjx3ywto= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=acSMy4ki; arc=none smtp.client-ip=140.205.0.216 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="acSMy4ki" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1723774229; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=Nrudy3y11XA7JWBXeZ+LwBKZ+ByI+KD/BZ+2ukqvBAE=; b=acSMy4kis823snoVp19muFTx0jjxbv6ZgsWgqTnAhgrG6G31ahmQUalWvxH7IPKzLRij41f3nQ8m5bw5sPKpWF3a5S0EcExqRV/RIjYLNG2rSulRPrFaXwxyWBFxZocRaLzD4AcC3xZ5zrkqyaKfwzhTQNwfhAzkPTjHumwkPQ4= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.YtEBojj_1723773296) by smtp.aliyun-inc.com; Fri, 16 Aug 2024 09:54:56 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 3/6] um: Remove unused fields from thread_struct Date: Fri, 16 Aug 2024 09:54:44 +0800 Message-Id: <20240816015447.320394-4-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015447.320394-1-tiwei.btw@antgroup.com> References: <20240816015447.320394-1-tiwei.btw@antgroup.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" These fields are no longer used since the removal of tt mode. Signed-off-by: Tiwei Bie --- arch/um/include/asm/processor-generic.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/um/include/asm/processor-generic.h b/arch/um/include/asm/= processor-generic.h index 5a7c05275aa7..864389ee29f6 100644 --- a/arch/um/include/asm/processor-generic.h +++ b/arch/um/include/asm/processor-generic.h @@ -28,19 +28,11 @@ struct thread_struct { struct arch_thread arch; jmp_buf switch_buf; struct { - int op; union { - struct { - int pid; - } fork, exec; struct { int (*proc)(void *); void *arg; } thread; - struct { - void (*proc)(void *); - void *arg; - } cb; } u; } request; }; @@ -51,7 +43,7 @@ struct thread_struct { .fault_addr =3D NULL, \ .prev_sched =3D NULL, \ .arch =3D INIT_ARCH_THREAD, \ - .request =3D { 0 } \ + .request =3D { } \ } =20 /* --=20 2.34.1 From nobody Sat Feb 7 12:29:45 2026 Received: from out0-199.mail.aliyun.com (out0-199.mail.aliyun.com [140.205.0.199]) (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 476357F9 for ; Fri, 16 Aug 2024 02:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.199 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723775151; cv=none; b=LfL1E7Hq6RoewzffBebaJpIE1yeullbzqNnIIfMqSOa42YJxy0ff+O6dspOQJ8W//InbzAAhkkdIFD4iBoawPACWi9eUFP42TsObx9E8MybXN5nSUFF4SrqqmiiuQifkWGviYwXtTgtb7e55qEkHmbcKj9zFlZOK0RPg+j7NXPM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723775151; c=relaxed/simple; bh=hwIxujJVTJ2TIFlwoL2yBzxaVoHwkKMMlQZLaJFTYVs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KVxGpsEAAWNSKJGazr4OWwsTGuHkugxLJIG1gtXsn98w/STlI+Vxaw+boQ+G6/reP269ozpZ1JNfzSkz4eFj76q7qd/tPW+pAwvgeeW7TyME40z+Yc8gCWUUSoLKsZTuluENkxAxQG++PqKmjicQ4amiL205pYI0c/Tn+4cYhN0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=Q0KZTjce; arc=none smtp.client-ip=140.205.0.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="Q0KZTjce" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1723775145; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=djYu62jVoool1PS6r9/4jk3+WjmBSJsC3CBExq2h60g=; b=Q0KZTjcecuySBRM3bdGBlCw5gcejivYj4In8HIyHvtt4SWB5I/qWaDY689Nl2RFlvj90hIHhfRXA5MJKpLOaD1LW2o1V91L42t7lmw421Mc+BzcWjQWWn7BwrR9ZoaFEVRVoHAgeJILVqOSK1CRALoraOgk0kX1Hzypfrk3P+e0= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.YtEBok._1723773296) by smtp.aliyun-inc.com; Fri, 16 Aug 2024 09:54:56 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 4/6] um: Remove unused mm_fd field from mm_id Date: Fri, 16 Aug 2024 09:54:45 +0800 Message-Id: <20240816015447.320394-5-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015447.320394-1-tiwei.btw@antgroup.com> References: <20240816015447.320394-1-tiwei.btw@antgroup.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" It's no longer used since the removal of the SKAS3/4 support. Signed-off-by: Tiwei Bie --- arch/um/include/shared/skas/mm_id.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/um/include/shared/skas/mm_id.h b/arch/um/include/shared/s= kas/mm_id.h index 1e76ba40feba..b3571a8afec9 100644 --- a/arch/um/include/shared/skas/mm_id.h +++ b/arch/um/include/shared/skas/mm_id.h @@ -8,7 +8,6 @@ =20 struct mm_id { union { - int mm_fd; int pid; } u; unsigned long stack; --=20 2.34.1 From nobody Sat Feb 7 12:29:45 2026 Received: from out187-19.us.a.mail.aliyun.com (out187-19.us.a.mail.aliyun.com [47.90.187.19]) (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 9CAAB6A8C1 for ; Fri, 16 Aug 2024 03:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723780597; cv=none; b=RQjtL6tYGx5vCuI6R8PQML8ecUo363LCLBRXV3T+FWi4AR2fyXCRfPl5mlbRODAlwRBqVqFQxyaZWRrxjQd2SDQKclFTney0v8TR6h/TMB5vGM965sUi/MG7ZUyI93zlvaF79EnVuaogE4qfSKe7DsMBhIfnbIX1uhr8CHT++vs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723780597; c=relaxed/simple; bh=spZ3LOvkvA7HC0vXfPQJtr2q7pS40m/umBN5GazXmmo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bFC6JU8YDrymzpL13+HcZnNZeAqnlEfdAFALXoUX82v/lxNJhH0okh1zMeGULqv3JJKTBM+rniExEygE+SuYyik/9Bc8LoRMs9UStGP87vfetbLr3R6+IN/a+pL8g7V/XlpFXpDQ5pfHXgH+6OI3jymj29lMYwQThue8rgVEHLg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=2RT0/eFe; arc=none smtp.client-ip=47.90.187.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="2RT0/eFe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1723780580; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=xaPbnHCYbWmnOQhAEH3tFBvJcl0Mc7zmh0X86Vcw7mg=; b=2RT0/eFeroIeZqaNKZ+U8MeM36T4N9hB8emOJ4P5Xvq9Da+JHNVJrzO3cfCyh4PxFpJrWeRKgc/5nfNzj9onzSsM1RBgUqAwHrTWLXLzm5VzWiY4na7y8Y3BV0rhTja6Vy+hGWJBXk1pePv6B7okq69S7i11KlHa4wS6yCs5Vrk= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.YtEBokH_1723773296) by smtp.aliyun-inc.com; Fri, 16 Aug 2024 09:54:57 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 5/6] um: Remove the call to SUBARCH_EXECVE1 macro Date: Fri, 16 Aug 2024 09:54:46 +0800 Message-Id: <20240816015447.320394-6-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015447.320394-1-tiwei.btw@antgroup.com> References: <20240816015447.320394-1-tiwei.btw@antgroup.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" This macro isn't defined by any supported sub-architectures in tree since it was introduced by commit 1d3468a6643a ("[PATCH uml: move _kern.c files"). Signed-off-by: Tiwei Bie --- arch/um/kernel/exec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index 2c15bb2c104c..cb8b5cd9285c 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c @@ -35,8 +35,5 @@ void start_thread(struct pt_regs *regs, unsigned long eip= , unsigned long esp) PT_REGS_IP(regs) =3D eip; PT_REGS_SP(regs) =3D esp; clear_thread_flag(TIF_SINGLESTEP); -#ifdef SUBARCH_EXECVE1 - SUBARCH_EXECVE1(regs->regs); -#endif } EXPORT_SYMBOL(start_thread); --=20 2.34.1 From nobody Sat Feb 7 12:29:45 2026 Received: from out187-13.us.a.mail.aliyun.com (out187-13.us.a.mail.aliyun.com [47.90.187.13]) (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 22506BE4E for ; Fri, 16 Aug 2024 02:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723773628; cv=none; b=M543auuj6Dt3aznrr2/n4oNlvLsavdnVf5JS57ZgtvR/z3Axe4eURR9a6GsdujDVefmkYLjhdS666FXzAUQIU7+jx6iBQqmQodPy5dyJ/fPUXBlgtDgklMQeQPfPs3MwPFtPU1wTorpmH2EuG5W+qunnjDBh+A3Do12Qw+zIiak= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723773628; c=relaxed/simple; bh=h3ektH89VgKUm1hFQf4tNGITO8lwB8WYpEAS6FRb3Pk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OJa50NdWkc8RNmDtTRMqvjpQiCdGN7zGU4YI0ppNoA06qZxEv9sGo/EJu45jmW7nmSX5RpmdtcHBbmUya3eUZ3tdgQuJgV31YXRt4ByEgs4Kdj63BVBxBRl1x753X2mIAPZcN7KGEn2TUzsKnYDZ48HhzkGzLEnWYtwkh32/pKM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=nzTK8B9y; arc=none smtp.client-ip=47.90.187.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="nzTK8B9y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1723773614; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=LTmj84zcrMSG/7oxdcFgD9iQDmdedlra1IBnqpPooqs=; b=nzTK8B9yz9GZXmJ6gCBhMUeO2GYm2/obI399ESkjXuq24ZCOTfnXfQVqL/im9XzlVEzr3Y/J2eiaIWob3nP/BvY1ZI/LtO856bBYsXRZiU4B5xCFVPEXrIZC00IwCUKCMJsbmTqy5ZI1W+tVRwfpc+EvCv9dbOTDrHpjBTEeIRw= Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.YtEBokR_1723773297) by smtp.aliyun-inc.com; Fri, 16 Aug 2024 09:54:57 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 6/6] um: Remove declarations of undefined functions Date: Fri, 16 Aug 2024 09:54:47 +0800 Message-Id: <20240816015447.320394-7-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240816015447.320394-1-tiwei.btw@antgroup.com> References: <20240816015447.320394-1-tiwei.btw@antgroup.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" The definitions of these functions do not exist anymore. Signed-off-by: Tiwei Bie --- arch/um/include/shared/skas/skas.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/um/include/shared/skas/skas.h b/arch/um/include/shared/sk= as/skas.h index ebaa116de30b..85c50122ab98 100644 --- a/arch/um/include/shared/skas/skas.h +++ b/arch/um/include/shared/skas/skas.h @@ -10,10 +10,8 @@ =20 extern int userspace_pid[]; =20 -extern int user_thread(unsigned long stack, int flags); extern void new_thread_handler(void); extern void handle_syscall(struct uml_pt_regs *regs); -extern long execute_syscall_skas(void *r); extern unsigned long current_stub_stack(void); extern struct mm_id *current_mm_id(void); extern void current_mm_sync(void); --=20 2.34.1