From nobody Sat Oct 4 22:37:49 2025 Received: from cmccmta3.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 89EF12E3709; Tue, 12 Aug 2025 08:33:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754987629; cv=none; b=pM19rzVCnOTjyW6935IY0TyKfVDbaosQFlBc0av7HwXVEKFwPJnSaK3q5z17qqS0JgEo7nLAlMOwxa7fiuuwFuXcPhlflHgHRB0US6R31Dw9BK2jzC80WY571CPB3Z5Ec5sFV4IWN3nS12SUrtvoablqVMeHwH3H5lPKA9NqICs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754987629; c=relaxed/simple; bh=Sy8/6TluoP6qOLLWpVMHTV68NyWMKz1bCWJXxKwq1aw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U7YQ8OaiiWhbTvUopPj0McOaBRlzStvAvgxZyhWx2jxRrhBQ+bbLveA1YY8UT2GfAcpRBYt1o2nL4W4cr0knVaMdnZoyOG8aSu5rn4+Sk3zmuheMFPOkyas7wJJi0UZ2+UqfxJMcldbKfJTUZqEyAMEtdUW9iJGuqCjIiAvQWcY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app09-12009 (RichMail) with SMTP id 2ee9689afb9e24f-ce2e8; Tue, 12 Aug 2025 16:30:22 +0800 (CST) X-RM-TRANSID: 2ee9689afb9e24f-ce2e8 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from FHA-W4100033 (unknown[10.55.1.70]) by rmsmtp-syy-appsvr01-12001 (RichMail) with SMTP id 2ee1689afb97bfe-f081d; Tue, 12 Aug 2025 16:30:22 +0800 (CST) X-RM-TRANSID: 2ee1689afb97bfe-f081d From: bajing To: kees@kernel.org Cc: luto@amacapital.net, wad@chromium.org, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, bajing Subject: [PATCH] seccomp:seccomp_bpf: remove unused macros Date: Tue, 12 Aug 2025 16:30:10 +0800 Message-ID: <20250812083011.992-1-bajing@cmss.chinamobile.com> X-Mailer: git-send-email 2.50.1.windows.1 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" After reviewing the code, it was found that these macros are never referenced in the code. Just remove them. Signed-off-by: bajing --- tools/testing/selftests/seccomp/seccomp_bpf.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/= selftests/seccomp/seccomp_bpf.c index 61acbd45ffaa..a80bcc5149bf 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -78,18 +78,6 @@ #define PR_GET_NO_NEW_PRIVS 39 #endif =20 -#ifndef PR_SECCOMP_EXT -#define PR_SECCOMP_EXT 43 -#endif - -#ifndef SECCOMP_EXT_ACT -#define SECCOMP_EXT_ACT 1 -#endif - -#ifndef SECCOMP_EXT_ACT_TSYNC -#define SECCOMP_EXT_ACT_TSYNC 1 -#endif - #ifndef SECCOMP_MODE_STRICT #define SECCOMP_MODE_STRICT 1 #endif --=20 2.33.0