Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3010317rdg; Tue, 17 Oct 2023 01:30:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGe4qRlQQcEXRoETBVjnZgpwexmg3NVoI1gls95BXvK1f6mNCaSrqhD49uvMDdjiDmkiNRG X-Received: by 2002:a17:902:ce8e:b0:1c3:868f:5958 with SMTP id f14-20020a170902ce8e00b001c3868f5958mr1443329plg.20.1697531442471; Tue, 17 Oct 2023 01:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697531442; cv=none; d=google.com; s=arc-20160816; b=eS6ynuO1bFNK8vd6j4B5snyu6PVCxZcYpHki7Mo5OweuhFjG3F5WlgI47uLWE4wwvf XjUUXsZrZXFK7kn7HbThVkzBxXyzdKxODkrmS+dRcZOARolVPI300JchUTmXN2AOeDiW gbf/N4IKzPdBqth63ivqRMayCiZNTvBVAsNDCnAVT3F4SgFMgRSSZh/tqq2M1/iUbdD6 u56PsT0b8zXr2b/qCdwtuVARAT6PkqeEymI45JxdPPmfLPTR0fY81NZcjsQvX1xYq2xi 0RhMGUHf57HNy+OXYp9VshVUYyNpLMaqaRH+PeDSp8+hcdppLGhDo4FaJRO5jnrPEHdP 7umw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HqYj7y79sWvZQFC+Ebdqrl6Er56BmgGu62bIjOgQWx8=; fh=6hAi0Lc4PiL5PXMGWvgcMOqwu6sB84zGwtK/2EG/Nqo=; b=gb68ySwvSgcFVKvAm7rL2VIxg0mmrKehuP5b7sJIRk/vlUaaTXSkv6rlyuAHJ1UdSE gwY6dgsIPqbNIzCoxAmG5g172g09GJwVeWEyySRBHBB60xbGm58HGRgwYqfPhkgUT6f8 7ZqeFkdmfHU5SQz5TgiDyffp42SqZzUn65q19nJ7k7E5SKl/2+nSznzsXamUyXgak2Gh h5MdUgip4g37RKVu6pK8wgiyT2zueJ+svDotxxmZn8KWJouC7Tx3Nx/LIWj6JFvzH7sC iIoZ3A4rImyW0yLATSLfwNbFDz77QmT+214rgiVLMmN8u0UQXFLejhCwlT+Tk3bQfMXq 6QIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tf//FAUe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id o23-20020aa79797000000b006be246c6decsi1103314pfp.351.2023.10.17.01.30.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 01:30:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tf//FAUe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8B034807C6F7; Tue, 17 Oct 2023 01:30:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234608AbjJQI36 (ORCPT + 99 others); Tue, 17 Oct 2023 04:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234627AbjJQI35 (ORCPT ); Tue, 17 Oct 2023 04:29:57 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81A4393 for ; Tue, 17 Oct 2023 01:29:56 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCE46C433C8; Tue, 17 Oct 2023 08:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697531396; bh=zenHPyeKceFZFgEV+uWEq8+8PBkYyEyPfOUeL8osqrQ=; h=From:To:Cc:Subject:Date:From; b=tf//FAUeFQheaHmWrLkoJ86tEiiDy0CYDoSqtRLPj4EO5RDVapbXV6sb6Yh24FnCj irWbXxZiWw0qnc4EFQalQhRF/kJfjHpZ2eXnuliUsyJf3bTMBHltGSfi6/jg18/u9N vjMX/DlsgafM0KjKzEq0sc2puRv7uFzoy8w2VXlA+gxVAzT1WG4A9ik8BpOGp/zmmp OkL8Ut6N3RXUYkONPHqLUQVkJFzPnX81VJCzkHDz30pMY/5yw2SRWHCuFPcJVLXr2g z835BgF7HA2MOEhvDoEEtoLUc9MiRRYsGkn3Zse2eFw8qag/kRFa9z3bSFqdh47MiF CzxzwfBGzzluA== From: "Jiri Slaby (SUSE)" To: keescook@chromium.org Cc: linux-kernel@vger.kernel.org, Andrei Vagin , "Peter Zijlstra (Intel)" , Jiri Slaby Subject: [PATCH] perf/benchmark: fix seccom_unotify benchmark for 32-bit Date: Tue, 17 Oct 2023 10:29:52 +0200 Message-ID: <20231017082952.31510-1-jirislaby@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 17 Oct 2023 01:30:06 -0700 (PDT) From: Andrei Vagin 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/include/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 -- 2.42.0