From nobody Tue Dec 16 02:33:56 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE9A4CDB474 for ; Tue, 17 Oct 2023 08:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234744AbjJQIa0 (ORCPT ); Tue, 17 Oct 2023 04:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234716AbjJQIaY (ORCPT ); Tue, 17 Oct 2023 04:30:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9BD493 for ; Tue, 17 Oct 2023 01:30:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AD91C433C8; Tue, 17 Oct 2023 08:30:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697531422; bh=9ktAqVlmbafz0wQ9ubwTr514SJENDXnxCa/ADFYm4MQ=; h=From:To:Cc:Subject:Date:From; b=FqZhU9tlWIAD+5sU4IZsY1kPtNN9lCHKDEFSJukBn6SLwbxlgnRh0kzunRt6mVla3 n/KAl5TfaeuLsw5Bl3ahnu/1+s4Dvq42aER+HMtjCw0bKYrVl1RI125zKHWm64ZL27 djuM9bpgyFdmvTst7KbQuzLYu9QEsox4rBlSckDk/eXJManK1y5LHdlab5g9BYnDMu guwVlYmDF2+a/1hoDzJh4uKlIblNaobDCogJ4wUXFkKEfAQV5/YcYfMpQUy+Gm14G1 zAks2xpCPZB7vtii2QYVwljIF5YDp8AoLKioQiN8pgnk/HAqEAAWoRI84v1iYIG1DN COds2bButdI7Q== From: "Jiri Slaby (SUSE)" To: keescook@chromium.org Cc: linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" , Andrei Vagin , "Peter Zijlstra (Intel)" Subject: [PATCH] perf/benchmark: fix seccom_unotify benchmark for 32-bit Date: Tue, 17 Oct 2023 10:30:19 +0200 Message-ID: <20231017083019.31733-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Commit 7d5cb68af638 (perf/benchmark: add a new benchmark for seccom_unotify) added a reference to __NR_seccomp into perf. This is fine as it added also a definition of __NR_seccomp for 64-bit. But it failed to do so for 32-bit as instead of ifndef, ifdef was used. Fix this typo (so fix the build of perf on 32-bit). Fixes: 7d5cb68af638 (perf/benchmark: add a new benchmark for seccom_unotify) Cc: Andrei Vagin Cc: "Peter Zijlstra (Intel)" Cc: Kees Cook Signed-off-by: Jiri Slaby (SUSE) --- tools/arch/x86/include/uapi/asm/unistd_32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/arch/x86/include/uapi/asm/unistd_32.h b/tools/arch/x86/i= nclude/uapi/asm/unistd_32.h index 4798f9d18fe8..9de35df1afc3 100644 --- a/tools/arch/x86/include/uapi/asm/unistd_32.h +++ b/tools/arch/x86/include/uapi/asm/unistd_32.h @@ -26,6 +26,6 @@ #ifndef __NR_setns #define __NR_setns 346 #endif -#ifdef __NR_seccomp +#ifndef __NR_seccomp #define __NR_seccomp 354 #endif --=20 2.42.0