Message ID | 20231006100743.1631334-3-usama.anjum@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp210364vqo; Fri, 6 Oct 2023 03:08:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcumVfTrfGYQeLy20SWVelWCujpSJVd9isKq1V7kyIwEHNH63zrvuX8XHvWY/qPj0GPgGi X-Received: by 2002:a05:6808:13ca:b0:3a6:fb16:c782 with SMTP id d10-20020a05680813ca00b003a6fb16c782mr9188520oiw.30.1696586910626; Fri, 06 Oct 2023 03:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696586910; cv=none; d=google.com; s=arc-20160816; b=VU31kbKTNwFyonh2ljq/OBhkFXJ0lvrSvc4ivuWBtQsrp19ikSIlDu10r5m7rlglAY H34xkH4K0pgp9OLP79HtCHndioZaO1yr8Vnou125TNiafX4fyNwW3u6QQqciwhedJcBF srI0x2VHDZQZLwP82pvahcxmo7+0u84APR35WubDm//9p88TupH7m2TAWCqTxX5tH98e +B8oFUm6FX5kxMAeVttSpGareyNdfzH7+wCx765VfCMhS4eH4+nnmwzQmNzHZDrWJ85k 3AYuspMhfGTzHXIk3bogpCVefS+MHa48lp3X2Q/SlhhhacMpnxa205AWm7hlM55sQvwi Ot/w== 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 :dkim-signature; bh=+dl3gBZqn183AFr2BmQt64hqEPCIN590R0UsnLWxNhk=; fh=3ITA+hG5KH7F/YE3za0C4YE3vOQC6OhXaAYfDI4ufbk=; b=Bj3I2WWLLuMTv6P5DMxyqQJHk4YlyPeDvwfrq5wwE2ICLHN/RyUV7fsddNKbpmGWqH iZ8IBFBP7+CsRk/o/qPuN+9zCstlz8YepPoavNBRthCOdWYFcXXftMH2FVL4RipYvFvV A0ML8i6dU/WFXn2YUNPIDPpknbn9E3DovYrsEj2eKSSPARfX2afDGmPX4ncs21PLSold /6UZHtgjcVy4YS41NX9obkxwnaV+0k3faSLkCuQPJY5lCsyBsSjIcz0w64unhOE17RsJ B6Vmqx2YKpmWYJvuAf3kVGeG4GAbiLdWEO2i/7NEUyAvbwW017Ase0HY7GwV0tBg+JkH 1W4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PSdpbnTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c64-20020a633543000000b0058991991a8dsi545062pga.773.2023.10.06.03.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 03:08:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PSdpbnTz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D6310805F2E3; Fri, 6 Oct 2023 03:08:28 -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 S231664AbjJFKIO (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Fri, 6 Oct 2023 06:08:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231645AbjJFKIK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 6 Oct 2023 06:08:10 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2D069F; Fri, 6 Oct 2023 03:08:08 -0700 (PDT) Received: from localhost.localdomain (unknown [39.34.184.141]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id 195576612668; Fri, 6 Oct 2023 11:08:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696586887; bh=4T9UXJjURToNqR+AwgGUF57UmbiY2XyHR2+7wjgiYfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PSdpbnTzRpB4wSE1JUUgxic4WBB0M4IDzSoUqPM1e0KtnWHcUcLoyTN1bBRqaRjEv xBCwLaXzupFElpWgiiErGmMiTEoiPGS0NRVaH2uthzINxw524gQg1NJpmA8IYurv5b eZdtw+YuF2tR44ThgTxB9d2Y2w1KLo/tFcv8g8vq7JyvwYyl4ebOB1WL7Qao/vANHq wnW7W6tM1zJMYKeBpvL7nnEmjxx6/HcxLS649Wj8ZEre7nTZP4AfXcS+OPOxHtpvpB sk1bgObTiuDxNeuhO3bPDG/yYhbmrISyimblMQkFdqz2iem4D0FYb87kmUGD19mgq4 sQqAS8/7puwZg== From: Muhammad Usama Anjum <usama.anjum@collabora.com> To: Shuah Khan <shuah@kernel.org>, Muhammad Usama Anjum <usama.anjum@collabora.com> Cc: kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/4] selftests: core: remove duplicate defines Date: Fri, 6 Oct 2023 15:07:37 +0500 Message-Id: <20231006100743.1631334-3-usama.anjum@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231006100743.1631334-1-usama.anjum@collabora.com> References: <20231006100743.1631334-1-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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: <linux-kernel.vger.kernel.org> 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]); Fri, 06 Oct 2023 03:08:28 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779000316176163335 X-GMAIL-MSGID: 1779000316176163335 |
Series |
[v2,1/4] selftests: capabilities: remove duplicate unneeded defines
|
|
Commit Message
Muhammad Usama Anjum
Oct. 6, 2023, 10:07 a.m. UTC
Remove duplicate defines which are already defined in kernel headers and
re-definition isn't required.
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
---
.../testing/selftests/core/close_range_test.c | 28 -------------------
1 file changed, 28 deletions(-)
Comments
On 06/10/2023 11:07, Muhammad Usama Anjum wrote: > Remove duplicate defines which are already defined in kernel headers and > re-definition isn't required. > > Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> > --- Hi Muhammad, Currently when building kselftest against next-master with arm64 arch and defconfig+kselftest “error: 'CLOSE_RANGE_UNSHARE' undeclared (first use in this function)” is observed. The bisect log is below and a full log from a failing test job can be seen here: https://storage.kernelci.org/next/master/next-20231023/arm64/defconfig+kselftest/gcc-10/logs/kselftest.log close_range_test.c: In function 'close_range_unshare': close_range_test.c:111:11: error: 'CLOSE_RANGE_UNSHARE' undeclared (first use in this function) 111 | CLOSE_RANGE_UNSHARE); | ^~~~~~~~~~~~~~~~~~~ close_range_test.c:111:11: note: each undeclared identifier is reported only once for each function it appears in close_range_test.c: In function 'close_range_unshare_capped': close_range_test.c:200:11: error: 'CLOSE_RANGE_UNSHARE' undeclared (first use in this function) 200 | CLOSE_RANGE_UNSHARE); | ^~~~~~~~~~~~~~~~~~~ close_range_test.c: In function 'close_range_cloexec': close_range_test.c:234:36: error: 'CLOSE_RANGE_CLOEXEC' undeclared (first use in this function) 234 | ret = sys_close_range(1000, 1000, CLOSE_RANGE_CLOEXEC); | ^~~~~~~~~~~~~~~~~~~ close_range_test.c: In function 'close_range_cloexec_unshare': close_range_test.c:302:36: error: 'CLOSE_RANGE_CLOEXEC' undeclared (first use in this function) 302 | ret = sys_close_range(1000, 1000, CLOSE_RANGE_CLOEXEC); | ^~~~~~~~~~~~~~~~~~~ close_range_test.c:317:32: error: 'CLOSE_RANGE_UNSHARE' undeclared (first use in this function) 317 | CLOSE_RANGE_CLOEXEC | CLOSE_RANGE_UNSHARE); | ^~~~~~~~~~~~~~~~~~~ close_range_test.c: In function 'close_range_cloexec_syzbot': close_range_test.c:378:33: error: 'CLOSE_RANGE_CLOEXEC' undeclared (first use in this function) 378 | ret = sys_close_range(3, ~0U, CLOSE_RANGE_CLOEXEC); | ^~~~~~~~~~~~~~~~~~~ close_range_test.c: In function 'close_range_cloexec_unshare_syzbot': close_range_test.c:472:34: error: 'CLOSE_RANGE_UNSHARE' undeclared (first use in this function) 472 | ret = sys_close_range(3, ~0U, CLOSE_RANGE_UNSHARE | | ^~~~~~~~~~~~~~~~~~~ close_range_test.c:473:13: error: 'CLOSE_RANGE_CLOEXEC' undeclared (first use in this function) 473 | CLOSE_RANGE_CLOEXEC); | ^~~~~~~~~~~~~~~~~~~ make[4]: *** [../lib.mk:181: /tmp/kci/linux/build/kselftest/core/close_range_test] Error 1 git bisect log git bisect start # good: [58720809f52779dc0f08e53e54b014209d13eebb] Linux 6.6-rc6 git bisect good 58720809f52779dc0f08e53e54b014209d13eebb # bad: [2030579113a1b1b5bfd7ff24c0852847836d8fd1] Add linux-next specific files for 20231020 git bisect bad 2030579113a1b1b5bfd7ff24c0852847836d8fd1 # good: [aa531ca5bb35637b6d235df5feba57ed94d3a462] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git git bisect good aa531ca5bb35637b6d235df5feba57ed94d3a462 # good: [37a9b505514f0ed4447757452f1e39d3a373df59] Merge branch 'for-next' of https://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git git bisect good 37a9b505514f0ed4447757452f1e39d3a373df59 # good: [695ee55348f6c3c7ec5f953ab297b4db9501962b] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git git bisect good 695ee55348f6c3c7ec5f953ab297b4db9501962b # skip: [150dc54505f3395010784d2a5c8b2e0e9b2b2f37] Merge branch 'counter-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter.git git bisect skip 150dc54505f3395010784d2a5c8b2e0e9b2b2f37 # good: [bae023765199bef243b49c0f8860a3290a5c9f6d] staging: iio: resolver: ad2s1210: implement hysteresis as channel attr git bisect good bae023765199bef243b49c0f8860a3290a5c9f6d # good: [337c88ee5fb65f9c34ca7bb129915cb59de687b3] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git git bisect good 337c88ee5fb65f9c34ca7bb129915cb59de687b3 # good: [248f0927e11e09e6285383938b5c4b87079ee5a7] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git git bisect good 248f0927e11e09e6285383938b5c4b87079ee5a7 # bad: [3e2f5dfe32e1a8fbd034b1060bd30b9b1179b4c7] Merge branch 'rtc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git git bisect bad 3e2f5dfe32e1a8fbd034b1060bd30b9b1179b4c7 # bad: [1f6421f11948d0de9216b8f1c439c21dbc90da91] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git git bisect bad 1f6421f11948d0de9216b8f1c439c21dbc90da91 # bad: [34dce23f7e405ffb4eca04e83ee10c03a4cffb9b] selftests/clone3: Report descriptive test names git bisect bad 34dce23f7e405ffb4eca04e83ee10c03a4cffb9b # bad: [d3772e7badd2cd3813e2efba0034f6e39aecc97f] selftests/mm: Substitute attribute with a macro git bisect bad d3772e7badd2cd3813e2efba0034f6e39aecc97f # good: [071af0c9e582bc47e379e39490a2bc1adfe4ec68] selftests: timers: Convert posix_timers test to generate KTAP output git bisect good 071af0c9e582bc47e379e39490a2bc1adfe4ec68 # bad: [2531f374f922e77ba51f24d1aa6fa11c7f4c36b8] Documentation: kselftests: Remove references to bpf tests git bisect bad 2531f374f922e77ba51f24d1aa6fa11c7f4c36b8 # good: [44eebacd6b8f633eb3a38a6db093658636b844e8] selftests: clone3: remove duplicate defines git bisect good 44eebacd6b8f633eb3a38a6db093658636b844e8 # bad: [ec54424923cf943b51dd5bf75fcbe27b0ca2c6ef] selftests: core: remove duplicate defines git bisect bad ec54424923cf943b51dd5bf75fcbe27b0ca2c6ef # first bad commit: [ec54424923cf943b51dd5bf75fcbe27b0ca2c6ef] selftests: core: remove duplicate defines Thanks, Aishwarya
Hi Aishwarya, On 10/24/23 5:43 PM, Aishwarya TCV wrote: > > > On 06/10/2023 11:07, Muhammad Usama Anjum wrote: >> Remove duplicate defines which are already defined in kernel headers and >> re-definition isn't required. >> >> Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> >> --- > > Hi Muhammad, > > Currently when building kselftest against next-master with arm64 arch > and defconfig+kselftest “error: 'CLOSE_RANGE_UNSHARE' undeclared (first > use in this function)” is observed. Thanks for reporting. I've sent the fix: https://lore.kernel.org/all/20231024155137.219700-1-usama.anjum@collabora.com > > The bisect log is below and a full log from a failing test job can be > seen here: > > https://storage.kernelci.org/next/master/next-20231023/arm64/defconfig+kselftest/gcc-10/logs/kselftest.log > > close_range_test.c: In function 'close_range_unshare': > close_range_test.c:111:11: error: 'CLOSE_RANGE_UNSHARE' undeclared > (first use in this function) > 111 | CLOSE_RANGE_UNSHARE); > | ^~~~~~~~~~~~~~~~~~~ > close_range_test.c:111:11: note: each undeclared identifier is reported > only once for each function it appears in > close_range_test.c: In function 'close_range_unshare_capped': > close_range_test.c:200:11: error: 'CLOSE_RANGE_UNSHARE' undeclared > (first use in this function) > 200 | CLOSE_RANGE_UNSHARE); > | ^~~~~~~~~~~~~~~~~~~ > close_range_test.c: In function 'close_range_cloexec': > close_range_test.c:234:36: error: 'CLOSE_RANGE_CLOEXEC' undeclared > (first use in this function) > 234 | ret = sys_close_range(1000, 1000, CLOSE_RANGE_CLOEXEC); > | ^~~~~~~~~~~~~~~~~~~ > close_range_test.c: In function 'close_range_cloexec_unshare': > close_range_test.c:302:36: error: 'CLOSE_RANGE_CLOEXEC' undeclared > (first use in this function) > 302 | ret = sys_close_range(1000, 1000, CLOSE_RANGE_CLOEXEC); > | ^~~~~~~~~~~~~~~~~~~ > close_range_test.c:317:32: error: 'CLOSE_RANGE_UNSHARE' undeclared > (first use in this function) > 317 | CLOSE_RANGE_CLOEXEC | CLOSE_RANGE_UNSHARE); > | ^~~~~~~~~~~~~~~~~~~ > close_range_test.c: In function 'close_range_cloexec_syzbot': > close_range_test.c:378:33: error: 'CLOSE_RANGE_CLOEXEC' undeclared > (first use in this function) > 378 | ret = sys_close_range(3, ~0U, CLOSE_RANGE_CLOEXEC); > | ^~~~~~~~~~~~~~~~~~~ > close_range_test.c: In function 'close_range_cloexec_unshare_syzbot': > close_range_test.c:472:34: error: 'CLOSE_RANGE_UNSHARE' undeclared > (first use in this function) > 472 | ret = sys_close_range(3, ~0U, CLOSE_RANGE_UNSHARE | > | ^~~~~~~~~~~~~~~~~~~ > close_range_test.c:473:13: error: 'CLOSE_RANGE_CLOEXEC' undeclared > (first use in this function) > 473 | CLOSE_RANGE_CLOEXEC); > | ^~~~~~~~~~~~~~~~~~~ > make[4]: *** [../lib.mk:181: > /tmp/kci/linux/build/kselftest/core/close_range_test] Error 1 > > > git bisect log > git bisect start > # good: [58720809f52779dc0f08e53e54b014209d13eebb] Linux 6.6-rc6 > git bisect good 58720809f52779dc0f08e53e54b014209d13eebb > # bad: [2030579113a1b1b5bfd7ff24c0852847836d8fd1] Add linux-next > specific files for 20231020 > git bisect bad 2030579113a1b1b5bfd7ff24c0852847836d8fd1 > # good: [aa531ca5bb35637b6d235df5feba57ed94d3a462] Merge branch > 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git > git bisect good aa531ca5bb35637b6d235df5feba57ed94d3a462 > # good: [37a9b505514f0ed4447757452f1e39d3a373df59] Merge branch > 'for-next' of > https://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394.git > git bisect good 37a9b505514f0ed4447757452f1e39d3a373df59 > # good: [695ee55348f6c3c7ec5f953ab297b4db9501962b] Merge branch > 'for-next' of > git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git > git bisect good 695ee55348f6c3c7ec5f953ab297b4db9501962b > # skip: [150dc54505f3395010784d2a5c8b2e0e9b2b2f37] Merge branch > 'counter-next' of > git://git.kernel.org/pub/scm/linux/kernel/git/wbg/counter.git > git bisect skip 150dc54505f3395010784d2a5c8b2e0e9b2b2f37 > # good: [bae023765199bef243b49c0f8860a3290a5c9f6d] staging: iio: > resolver: ad2s1210: implement hysteresis as channel attr > git bisect good bae023765199bef243b49c0f8860a3290a5c9f6d > # good: [337c88ee5fb65f9c34ca7bb129915cb59de687b3] Merge branch 'next' > of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git > git bisect good 337c88ee5fb65f9c34ca7bb129915cb59de687b3 > # good: [248f0927e11e09e6285383938b5c4b87079ee5a7] Merge branch > 'for-next' of > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git > git bisect good 248f0927e11e09e6285383938b5c4b87079ee5a7 > # bad: [3e2f5dfe32e1a8fbd034b1060bd30b9b1179b4c7] Merge branch > 'rtc-next' of > git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git > git bisect bad 3e2f5dfe32e1a8fbd034b1060bd30b9b1179b4c7 > # bad: [1f6421f11948d0de9216b8f1c439c21dbc90da91] Merge branch 'next' of > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git > git bisect bad 1f6421f11948d0de9216b8f1c439c21dbc90da91 > # bad: [34dce23f7e405ffb4eca04e83ee10c03a4cffb9b] selftests/clone3: > Report descriptive test names > git bisect bad 34dce23f7e405ffb4eca04e83ee10c03a4cffb9b > # bad: [d3772e7badd2cd3813e2efba0034f6e39aecc97f] selftests/mm: > Substitute attribute with a macro > git bisect bad d3772e7badd2cd3813e2efba0034f6e39aecc97f > # good: [071af0c9e582bc47e379e39490a2bc1adfe4ec68] selftests: timers: > Convert posix_timers test to generate KTAP output > git bisect good 071af0c9e582bc47e379e39490a2bc1adfe4ec68 > # bad: [2531f374f922e77ba51f24d1aa6fa11c7f4c36b8] Documentation: > kselftests: Remove references to bpf tests > git bisect bad 2531f374f922e77ba51f24d1aa6fa11c7f4c36b8 > # good: [44eebacd6b8f633eb3a38a6db093658636b844e8] selftests: clone3: > remove duplicate defines > git bisect good 44eebacd6b8f633eb3a38a6db093658636b844e8 > # bad: [ec54424923cf943b51dd5bf75fcbe27b0ca2c6ef] selftests: core: > remove duplicate defines > git bisect bad ec54424923cf943b51dd5bf75fcbe27b0ca2c6ef > # first bad commit: [ec54424923cf943b51dd5bf75fcbe27b0ca2c6ef] > selftests: core: remove duplicate defines > > Thanks, > Aishwarya
diff --git a/tools/testing/selftests/core/close_range_test.c b/tools/testing/selftests/core/close_range_test.c index 749239930ca83..534576f06df1c 100644 --- a/tools/testing/selftests/core/close_range_test.c +++ b/tools/testing/selftests/core/close_range_test.c @@ -16,34 +16,6 @@ #include "../kselftest_harness.h" #include "../clone3/clone3_selftests.h" -#ifndef __NR_close_range - #if defined __alpha__ - #define __NR_close_range 546 - #elif defined _MIPS_SIM - #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ - #define __NR_close_range (436 + 4000) - #endif - #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */ - #define __NR_close_range (436 + 6000) - #endif - #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ - #define __NR_close_range (436 + 5000) - #endif - #elif defined __ia64__ - #define __NR_close_range (436 + 1024) - #else - #define __NR_close_range 436 - #endif -#endif - -#ifndef CLOSE_RANGE_UNSHARE -#define CLOSE_RANGE_UNSHARE (1U << 1) -#endif - -#ifndef CLOSE_RANGE_CLOEXEC -#define CLOSE_RANGE_CLOEXEC (1U << 2) -#endif - static inline int sys_close_range(unsigned int fd, unsigned int max_fd, unsigned int flags) {