Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp272550rdb; Fri, 6 Oct 2023 03:08:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPKJaXpegXjk87W6RCJS/alhJT8+uV3hu2YHkiZkkT1mwnPByWCJJXD51150YNzW9dW2KT X-Received: by 2002:a17:90b:3e8b:b0:279:e5e:ea1e with SMTP id rj11-20020a17090b3e8b00b002790e5eea1emr7336509pjb.9.1696586920655; Fri, 06 Oct 2023 03:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696586920; cv=none; d=google.com; s=arc-20160816; b=ugTw245Ko9pOVjg30ZnAiCEBzHlTFl2A8mh+kr4kNBIbu3nRlkV0vl5WlafrkvC0D6 jeawYNiSw1hdSTPPqiXUCcsW05roDarJ/LWhZJumXShpxd/Z2vSAK6G9i0aQvBchajsf V2ZrhHknn3DHWDfngu2AA+ZurzIAerfyMwpx9d1j2J/xGLO61zhn3Ji7IU8hj0/uJ4XI DBtAe7MAfh97e7zx/VxHmXf+z/SWR+zOI178klameJ1Ya1kTOoCK4eYm/uZxVBJNuJLh 29v1LC8yc2cuN33wYbhEXVK782PvyNBvswj2dyjkQVgdr5esByOpgpNN3QscV7P3lFPf 5InA== 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 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id ip5-20020a17090b314500b002776d9770d6si5855147pjb.69.2023.10.06.03.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 03:08:40 -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=@collabora.com header.s=mail header.b=PSdpbnTz; 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=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 7E11F805F2E2; Fri, 6 Oct 2023 03:08:38 -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 S231663AbjJFKIN (ORCPT + 99 others); Fri, 6 Oct 2023 06:08:13 -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 ); 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 To: Shuah Khan , Muhammad Usama Anjum 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: 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:38 -0700 (PDT) X-Spam-Level: ** Remove duplicate defines which are already defined in kernel headers and re-definition isn't required. Signed-off-by: Muhammad Usama Anjum --- .../testing/selftests/core/close_range_test.c | 28 ------------------- 1 file changed, 28 deletions(-) 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) { -- 2.40.1