Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp605190rdf; Tue, 21 Nov 2023 10:57:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFy+oABf9mELqdR17wTibdyv6bPxY96N1fvMjC4db8AXBWv9tQaVUb2JQEqeHxMjmqIKHbu X-Received: by 2002:a05:6a00:391d:b0:6c3:4bf2:7486 with SMTP id fh29-20020a056a00391d00b006c34bf27486mr373955pfb.7.1700593066574; Tue, 21 Nov 2023 10:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700593066; cv=none; d=google.com; s=arc-20160816; b=rUczO0kJGE7PI/3LZqy+vaziwcmnGOxChNDA8Jtv/O2MX6EWGmRD5CcKkyH5m/e74r hVP69e39liKj2vmbgCJg5/mnfYdShv/W2UnfpFPkqYDgDcw/MWjzg56DTEYbTIzslIhN VbLTjztC4gqST/MYUd+tJYXUAIu2Kl3ThTZMHEmxkJZX3GltzP10PQx0F2UbHBLUIalp wJMPzTgUYhjv/LDvX38QR/bG1KGTdUu8dagX8gOouOg8Su1cMgatuPvJTdud0+0TR/0n sN5i6kmhO4YPzjXT7pavWchUDRK3ifgEMGOZgJWPlC/CFamENrFzef8dB93p2QHtAvxH x8LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=6NxVcF/bXVULln+/0vB/bhf3dOFyGsMAyXyxfM0cS7s=; fh=Wc2nzOmJl4Y8Xh/lABoixW1hXO7UDR7Eq2xe+uoOV6Q=; b=GhQ+wrUPFscimp8Bh7AXVo8NOcnWDMgULp0+mx6PMVzEFcw7h3RwqgjlvDh8MdOpiV 25vHmi0HOeYwlUmHoRBb9x2+AuPYibG33w40ke+jqclnu8p7hcnLk5dHqvbamkxPaIRU viCgLAbQ7s1CjaffZNblFEm87AlbwQb50wHWG/mIv2pgPAJ+HUxKANYBNLYHE94rHxO+ 0L3DVMi5BkvyWKhR0yaPf4O+bVOSGbQlfrWCoWIOcH4nslmVr1syfrbyve60UC+1eRKz vRlE7n1JAmNxK22B0T89xCJ/CX5pfto+aOsmUrVFvMUZmN9ErB72wZQS0Dn1DIHUmjZf iBUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k26-20020aa7999a000000b006cb4d22a272si7942780pfh.48.2023.11.21.10.57.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 10:57:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id BBC8C8026ABB; Tue, 21 Nov 2023 10:57:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234333AbjKUS5e convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Nov 2023 13:57:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjKUS5c (ORCPT ); Tue, 21 Nov 2023 13:57:32 -0500 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89568110; Tue, 21 Nov 2023 10:57:29 -0800 (PST) Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5bdfbd69bd5so49423a12.1; Tue, 21 Nov 2023 10:57:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700593049; x=1701197849; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J7nd5iX6ZJEmZiKwOnTC252kYXXi23G070RiX705xqE=; b=wB9/ElwECpCX7dGZJ5a2L0IXpia31OvL3/fUQ7q0Amcj6AKr445vnDG1Xg4xer0Ttb qs9zxi20l9S5prIvp1kk4gyQROn1y14du7bdfKznVVUo8bP7ptEuTNb2/oHVhqOjdw8c HgdoNOX2aTCYlfNCXTGROPTbASI/GgFVJRMipnvIFtCnkPAWV9ePVEx4E6d7b2bzlWuG tOePTQSMisWt1HaRa8b+otgJthfYmq44kMb/snHy2zvWieiQu+D3onlFwIvRt7/AjHC8 Qnz6tBI7TSo1tQRVqF1918VJ3xhkFWIBt7dYsPVUnGrXwiN6xBD8AVfYlGnQJUpLXw9i 7x2A== X-Gm-Message-State: AOJu0YyRvYSvKQ8BhsLKmz70KiMzmNFc0Sy/r7ybxSSgF9s8WpEs45fi FMNCATB5RB0HhF8Y95YJpHdGDQreoZmnC1RTFwI= X-Received: by 2002:a17:90b:4d8d:b0:27c:ecec:8854 with SMTP id oj13-20020a17090b4d8d00b0027cecec8854mr406468pjb.7.1700593048898; Tue, 21 Nov 2023 10:57:28 -0800 (PST) MIME-Version: 1.0 References: <20231118024858.1567039-1-yangjihong1@huawei.com> <20231118024858.1567039-4-yangjihong1@huawei.com> In-Reply-To: <20231118024858.1567039-4-yangjihong1@huawei.com> From: Namhyung Kim Date: Tue, 21 Nov 2023 10:57:17 -0800 Message-ID: Subject: Re: [PATCH 3/3] perf bench sched-seccomp-notify: Fix __NR_seccomp undeclared build error on i386 To: Yang Jihong Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, avagin@google.com, daniel.diaz@linaro.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 21 Nov 2023 10:57:44 -0800 (PST) Hello, On Fri, Nov 17, 2023 at 6:51 PM Yang Jihong wrote: > > 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 This is already fixed by: https://lore.kernel.org/all/20231017083019.31733-1-jirislaby@kernel.org/ Thanks, Namhyung > --- > 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 >