From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 64118306D3F for ; Sun, 12 Apr 2026 18:07:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776017252; cv=none; b=gvfWkoz9UgGqTubybMlA53h4p647ThZlfdi0jmXpsf9Q/Zzr2PUESRNevCnuqU2J6MgJ8Yw1A/4CRhXOzGhDIuwN8wQDWdK+4GIU7zZm+TqT4cmmnR1t/7Y1wF6fgT/PdTjgz1AxuigOvg/wb50+G1QZOlXgl/zxKyq7jtoJow4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776017252; c=relaxed/simple; bh=Vw3xo82mIkwfnqcOo7OMvAEgJaIIt/CFSXLH4mjA3nk=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=sgs8lqfx+Sv8aPJ2gxyfjaOHo+OM3eXnlVt5h/rbarFPGlnnQaCDFaW3UnZ430PWpiu5PE64Od7r84P/yyl8HX6KO3UlX3vRfpyq7wyi+F6rR9Z0FsZE37cLcJk0Xk50iDoYNvHmWpItFVjYxFQkdiFQ7OoKKMF9LM2twFkgKJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Wz0JQSk4; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Wz0JQSk4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776017249; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=RwoKBr2rOb7CLinD6APBlOA4VgN8kYKSDjypyIuCt2E=; b=Wz0JQSk4VwHefaX2H4WnIugDGSd3qJ/rC7J68NH9nkO4BmIrI5zeJQUL/FwDmcTqti1HN7 SCM8RewgqlQ1bbJiCeZNhyOBdTOvo0tooPlBspXJEgbcOqQkw6aZd+zXLdzdXF5TKYXfnR JZAD4MG+uf2w9ayB5ZjoNd9/lavfJWY= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-332-RaRLTzTgOUKL-uNhnxS2cQ-1; Sun, 12 Apr 2026 14:07:26 -0400 X-MC-Unique: RaRLTzTgOUKL-uNhnxS2cQ-1 X-Mimecast-MFC-AGG-ID: RaRLTzTgOUKL-uNhnxS2cQ_1776017245 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C7DD2180035C; Sun, 12 Apr 2026 18:07:24 +0000 (UTC) Received: from fedora (unknown [10.44.48.62]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id D1204180035F; Sun, 12 Apr 2026 18:07:22 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sun, 12 Apr 2026 20:07:24 +0200 (CEST) Date: Sun, 12 Apr 2026 20:07:21 +0200 From: Oleg Nesterov To: Thomas Gleixner Cc: Jinjie Ruan , linux-kernel@vger.kernel.org Subject: [PATCH] entry: kill ARCH_SYSCALL_WORK_{ENTER,EXIT} Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 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) /** * arch_ptrace_report_syscall_entry - Architecture specific ptrace_report_syscall_entry() wrapper -- 2.52.0