From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from canpmsgout06.his.huawei.com (canpmsgout06.his.huawei.com [113.46.200.221]) (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 765D627470 for ; Mon, 13 Apr 2026 01:47:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.221 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776044868; cv=none; b=eKGNHIEoZrPgGbPPPavcX54xBsNBTdXSnpDhBzTH3HyHREO/5DOfRLcrMW/ear6tQYPbEn6IN2TQfo36pmNRdHI//dmEYOG9I/xzm3kLsYzaCCLA74nGbPill9vXwIPPZttvO5WWsjouJVW+or/kOz+VtyP9/ftJ6xAUfoX9kC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776044868; c=relaxed/simple; bh=WiB120Ahl/14q344/TbuU69B9FYSqiUqaRSHsO4cev4=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Cg4K8hcxlHDUXFaxwwJsEz1Stutk855U173s9udQQ9T8WDZqS0AkgMc6tGXADFRti9cbq6vn7mHsoeP1t5jBPcNceeWxZO+gjR/BLL8ONPlk+hJqKKkwwg1JLNF1Cm/fafZjElcTpsxYGWU0cphgwJS6VPwfRVSZnU0hNtaAVlU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=M9s+OVy6; arc=none smtp.client-ip=113.46.200.221 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="M9s+OVy6" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=V7MjrlQteTq9vy118EpgdaYNJJQAxh0+NSIdX2hYFQA=; b=M9s+OVy6LvcIjkTTJi2j7XuuXzSEOMl33hVk1JoKf6qhulzwJrmTklt3/tdbOKClU/0B/4c0a HyD4rnkAjNYus65OlsRfBlhmPPtaRPD8R8A04bz+otzn7KXqqRZDtrE9c/UnPXJ8lCdA0c5kCC/ LWj4yFAgrK4PDA1JvwWtbtM= Received: from mail.maildlp.com (unknown [172.19.162.197]) by canpmsgout06.his.huawei.com (SkyGuard) with ESMTPS id 4fv99X20T1zRhQx; Mon, 13 Apr 2026 09:41:20 +0800 (CST) Received: from dggpemf500011.china.huawei.com (unknown [7.185.36.131]) by mail.maildlp.com (Postfix) with ESMTPS id 371FF40569; Mon, 13 Apr 2026 09:47:37 +0800 (CST) Received: from [10.67.109.254] (10.67.109.254) by dggpemf500011.china.huawei.com (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 13 Apr 2026 09:47:36 +0800 Message-ID: Date: Mon, 13 Apr 2026 09:47:33 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH] entry: kill ARCH_SYSCALL_WORK_{ENTER,EXIT} Content-Language: en-US To: Oleg Nesterov , Thomas Gleixner CC: References: From: Jinjie Ruan In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: kwepems500001.china.huawei.com (7.221.188.70) To dggpemf500011.china.huawei.com (7.185.36.131) On 2026/4/13 2:07, Oleg Nesterov wrote: > Nowadays nobody redefine these flags. > > Signed-off-by: Oleg Nesterov > --- > include/linux/entry-common.h | 20 +++++--------------- > 1 file changed, 5 insertions(+), 15 deletions(-) > > diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h > index f83ca0abf2cd..535da46c3ee9 100644 > --- a/include/linux/entry-common.h > +++ b/include/linux/entry-common.h > @@ -20,31 +20,21 @@ > /* > * SYSCALL_WORK flags handled in syscall_enter_from_user_mode() > */ > -#ifndef ARCH_SYSCALL_WORK_ENTER > -# define ARCH_SYSCALL_WORK_ENTER (0) > -#endif > - > -/* > - * SYSCALL_WORK flags handled in syscall_exit_to_user_mode() > - */ > -#ifndef ARCH_SYSCALL_WORK_EXIT > -# define ARCH_SYSCALL_WORK_EXIT (0) > -#endif > - > #define SYSCALL_WORK_ENTER (SYSCALL_WORK_SECCOMP | \ > SYSCALL_WORK_SYSCALL_TRACEPOINT | \ > SYSCALL_WORK_SYSCALL_TRACE | \ > SYSCALL_WORK_SYSCALL_EMU | \ > SYSCALL_WORK_SYSCALL_AUDIT | \ > SYSCALL_WORK_SYSCALL_USER_DISPATCH | \ > - SYSCALL_WORK_SYSCALL_RSEQ_SLICE | \ > - ARCH_SYSCALL_WORK_ENTER) > + SYSCALL_WORK_SYSCALL_RSEQ_SLICE) > +/* > + * SYSCALL_WORK flags handled in syscall_exit_to_user_mode() > + */ > #define SYSCALL_WORK_EXIT (SYSCALL_WORK_SYSCALL_TRACEPOINT | \ > SYSCALL_WORK_SYSCALL_TRACE | \ > SYSCALL_WORK_SYSCALL_AUDIT | \ > SYSCALL_WORK_SYSCALL_USER_DISPATCH | \ > - SYSCALL_WORK_SYSCALL_EXIT_TRAP | \ > - ARCH_SYSCALL_WORK_EXIT) > + SYSCALL_WORK_SYSCALL_EXIT_TRAP) Reviewed-by: Jinjie Ruan > > /** > * arch_ptrace_report_syscall_entry - Architecture specific ptrace_report_syscall_entry() wrapper