Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp818183rwb; Sat, 5 Aug 2023 01:27:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdVGDeL2ttuaPgKC3Vpt0lSmakvzNFI5alAfnRwurEBNRJHCF+fB+H8z05T1A5iKYaLrRg X-Received: by 2002:a05:6808:1489:b0:3a7:542f:40ac with SMTP id e9-20020a056808148900b003a7542f40acmr5851263oiw.10.1691224060170; Sat, 05 Aug 2023 01:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691224060; cv=none; d=google.com; s=arc-20160816; b=QI5vwACI9v0wEMQKxTYU3SyLfxXqYF8Q2Vw3tJe8EyIGaQRL+rHjktWTDJXLY3jnqL YRi/PoY8UAEGi7+cmGgERyIaTDi2mLV2GvGUmtI1Fcz360OepiHHLfeD5BIqjFAFQNcN 6GclIofxeZKjAvMVGyqjpvMP2suTRUrPeoLUAxsKOP+wJQwCPeSRWjIJZw/TFyH8ZRrQ 6V+yKPZ5cs6wQyUGSCrW6Y0ykv/gUFc+THNDCpB+lUXwUuMbQe2npuHkAOjbdD67gOi5 vrJjA6WR2voO6Dep4biYI++7prDKGXT7Mmo7uVqK19GfFvatzb5oY8EaTQL3EdkRTvAW dJ0g== 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=16hTsKLx9/xrkHxne1eDEQrv/qBVv2xcbGSjf0tFroo=; fh=75wuEtBkDdM9hKI3tsPHADTGAXOyE0eLpihrSICuDV8=; b=wbzA67InfHvbKK5pM/31rjfUVim5uH0U2gEJ5m0DaHf1Gykw7XdBwfBtTQJ3yOBl2U sd4QK0bNI4XnMRTJ7/A45KLmGNdjck5SwaXGNYhXRfprd8fpjN1d9Ey5u07eFHFLA/FV pvlGvGcrGMquaoeVdABUsgu2vZlQgUk2uMTmVSpZmOl9mYkifw6DzKbr5YYWp5bZJawV pPNgAIlndNUV7aoTVIDEZtq19ds9bNFiuU4ANAbOaFDI/0M3Fu/u7CDJjzCMI08iBT+l 91QlkY64yBlHpZIVh1TzAgTULPsZyQIRG9zwQ8nRgI6siW0CI2fbh5u92rbsprh5e6vX 6Y8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=atrGqXMk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm13-20020a056a00338d00b00686ea63779bsi1281880pfb.397.2023.08.05.01.27.20; Sat, 05 Aug 2023 01:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=atrGqXMk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229905AbjHEHib (ORCPT + 99 others); Sat, 5 Aug 2023 03:38:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229872AbjHEHiY (ORCPT ); Sat, 5 Aug 2023 03:38:24 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ADFB4ECF; Sat, 5 Aug 2023 00:38:23 -0700 (PDT) Received: from localhost.localdomain (unknown [59.103.216.172]) (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 3EB806607185; Sat, 5 Aug 2023 08:38:21 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1691221102; bh=UmWF0qHTyv99gRWrKc/RIKIQrxbiZuVbIzpCSN6FSQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=atrGqXMkN+AtgaNplVz8DosvXtTQLxvnPv6S7gEywfe7Yl9DxAHK3eJleCEBTrpxQ WcPmdngzo86rHUEOBQDv6pvp10teM/l7wAR/W96KJig68hE+48MdmHmuPzvEWiQ9zd QcQUtGMyO4UAX4QKD9mFfXkcaAg5EdTty90hexbeMpO6abnqn1W5xIc4ID5s5ql7xo LmFDdOthx5fcw05nnpejQS/WDIqy7/giDdj0cdmypYXLt8Vt0wLNez5ZB1dlZwlq9g vAav1GB1G0jiYOgRx9vJ9+UD0f6+F+czLS9P8ao/dXBHmpPa4UYQ7/4DqHrekTmgjM 7P/tYUZhoUqBg== 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 3/6] selftests: core: remove duplicate defines Date: Sat, 5 Aug 2023 12:38:01 +0500 Message-Id: <20230805073809.1753462-3-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230805073809.1753462-1-usama.anjum@collabora.com> References: <20230805073809.1753462-1-usama.anjum@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 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.39.2