Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp944335rdb; Fri, 17 Nov 2023 18:52:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbUdO8ttxtiRWJ3bigAgsgd8rR6a2eFx+/ixrAakzuCBBhf0Rlvl+3fPq+dy7P6OAwvoP9 X-Received: by 2002:a25:8d85:0:b0:daf:7718:62b8 with SMTP id o5-20020a258d85000000b00daf771862b8mr1363040ybl.65.1700275947339; Fri, 17 Nov 2023 18:52:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700275947; cv=none; d=google.com; s=arc-20160816; b=o9cEHdI7Ow7vqvRhSw+OYj+1nGMN4cvOD63yB7F2GnzQNgtTdF3pSEhaRCcqopJYLe yTd8nZgwbPNs5yuWdUfX/5OpoiL8J/yM59Cy2YuIJXDkjQTbLik33lKkZKk1dilRzrbx Cfulod7XdZUKNu596zvz0SOkP4jPtKciLmC9XVhIcTGi+sz3fbfUUciBHQi5y5UiGVSt fijZQQKH5Vef3tbzi0W4gAeLEQncKbWmSP4Cb5RaBQl69crIAj5TZZBpfMf/30wp7BtD LT6rS2YaLo1Y7CBtnJl2VjYpp10RCuEbVefp13a24JshCePLoMoAw40RTYbBr7uwYcbL OsGg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=i/TRbWzglj4D/sxM+c40UW8ppDFnrM+xTpv13HZgKtU=; fh=DIzfUWfj21RIAI8ibHhNFjdiKeApGT6CviQ22JnUOaM=; b=l27GDphDQU/AZd2tD/8ioPcbQBgPo68p3noAkS17LyMhEoyCnAZiNwz/CzWh01rypI PSKogGtz0coq4lY8a5z4tOAgk4qikdWNamltATEthousGEmzg/5UT93lLdgNZVNYvRq6 YMaGVLSKuB/5a5IcOUDXCtnJZ0LwBoRK8uj+veDpwsn3/IEeD4+zpmDUo1BvVT2fXvMZ BxqmWE5wAY1OSxAK6ghUP/oTvhH5AQ9K3t8vfrPeBF9t9tuvXOy5Toz3ubcajRy/Xp0b inUajxYeAnLHftAOyhxh0IA7X5TgjL6/waM5SBlKuFM2hmytNXsRuYOCJWfG3ljB9fWx cAhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o188-20020a6341c5000000b005bdfda8e04esi3295861pga.800.2023.11.17.18.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 18:52:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5AE4A8040EF2; Fri, 17 Nov 2023 18:52:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232850AbjKRCvw (ORCPT + 99 others); Fri, 17 Nov 2023 21:51:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232849AbjKRCvv (ORCPT ); Fri, 17 Nov 2023 21:51:51 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBD08D7A; Fri, 17 Nov 2023 18:51:43 -0800 (PST) Received: from kwepemm000003.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4SXJ8b66tjzNm6f; Sat, 18 Nov 2023 10:47:27 +0800 (CST) Received: from ubuntu2204.huawei.com (10.67.174.22) by kwepemm000003.china.huawei.com (7.193.23.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Sat, 18 Nov 2023 10:51:41 +0800 From: Yang Jihong To: , , , , , , , , , , , , CC: Subject: [PATCH 3/3] perf bench sched-seccomp-notify: Fix __NR_seccomp undeclared build error on i386 Date: Sat, 18 Nov 2023 02:48:58 +0000 Message-ID: <20231118024858.1567039-4-yangjihong1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231118024858.1567039-1-yangjihong1@huawei.com> References: <20231118024858.1567039-1-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.22] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm000003.china.huawei.com (7.193.23.66) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 18:52:07 -0800 (PST) Fix a build error on i386 system: bench/sched-seccomp-notify.c: In function 'seccomp': bench/sched-seccomp-notify.c:46:17: error: '__NR_seccomp' undeclared (first use in this function); did you mean 'seccomp'? return syscall(__NR_seccomp, op, flags, args); ^~~~~~~~~~~~ seccomp bench/sched-seccomp-notify.c:46:17: note: each undeclared identifier is reported only once for each function it appears in bench/sched-seccomp-notify.c:47:1: error: control reaches end of non-void function [-Werror=return-type] } ^ cc1: all warnings being treated as errors Fixes: 7d5cb68af638 ("perf/benchmark: add a new benchmark for seccom_unotify") Signed-off-by: Yang Jihong --- 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.34.1