Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp826763rwb; Sat, 5 Aug 2023 01:41:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEz+SOeJMBj3iQ7HVBcj1UL6FEe8ckPw+rv4e47GEsOYxJHcd2DNWcJbTcsf2JbrV/dnt4u X-Received: by 2002:a17:903:32c9:b0:1b8:6952:5381 with SMTP id i9-20020a17090332c900b001b869525381mr2729630plr.9.1691224870103; Sat, 05 Aug 2023 01:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691224870; cv=none; d=google.com; s=arc-20160816; b=Hq8vClc8szkkhDPyyw5T1WVKfoFz5VD8+kqGTl+2JHB6t6hzY9JD/1qOBViYUhGD+L VjrrLgs2nNCTI6wEv/pAF6Bad2QTVqUnBF6lRKXfN3yRNE4FZGqpNAr3bCmOAjG1N13p 905vUQ6NB2/asPTvPMb8YS2WnGPouB0quAkE2amxJ0L6aX3BOuCoQreeziO7LL1t5spm JasBUKlIirEgbhGCldsEY1uZYs3CKRM7wdowU8XW4UBSyg7yMnJMz6hIxcEo815BBMM5 O/YenP2ZknnWgT5xjE8QA/ObyxvqQGLSUNa/93blP0oc8rINOiIn+DpFWlNa83wIlRhx hLlQ== 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=rhBZNg/VhWeL0hrL5H90o4ou7cqTeJEBjv0987vggFQ=; fh=uY8hejRrhXFSf9IcIc44wm06KiZAtcQXc+tMvxMYLlw=; b=toAik0MF5y3XZ+jm3uyFBnRHHTPILlUfwzFqJUEHdnwPOz3dN1m/voEHDXy/F3vmFt UbeVVR6o08cYCGJazcBMJN7ruh05VJ9cMTE/El9XKGn+66qDjWqNtpUz1RJvs3YpXfqL 3jHz5CswKDdpWcxkta+oNeqzkoQ/otpgA2jOa4AOlE010+JG8B9Y6wudHT0E1cxRWtBh cKEDrw2to8TalYl+dP58E/gGfOvwXNPBHAv4mSucHBKTB/EmKLTmhRFn1FyfK+ngRGSE WvRW/Hc8SJ1M82i0qU+DpRlAHBgx/q8LOekpInPKSlBnmvTY7rLVwBEBbXIaN7YvNCOk rOYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=k2c6VFm8; 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 e11-20020a170902b78b00b001b4f582d796si283115pls.167.2023.08.05.01.40.58; Sat, 05 Aug 2023 01:41:10 -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=k2c6VFm8; 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 S229918AbjHEHiz (ORCPT + 99 others); Sat, 5 Aug 2023 03:38:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbjHEHiq (ORCPT ); Sat, 5 Aug 2023 03:38:46 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6761F525A; Sat, 5 Aug 2023 00:38:35 -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 AE42E6607185; Sat, 5 Aug 2023 08:38:32 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1691221114; bh=In4FO/9lllojbgFO3Ya8vVojH0/z+2k6hIAGD5/ABPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k2c6VFm8vaNWpSQmI7bqgpZztKbwhXY9nF4UrQHk/Gh3g/43pXLZSj+8vrQQTqRai n9gx4IUjluBs2E2AVi9ZG/ONbhctcZbdklyugqCha3VId5pUDlmhFGCRkyKtLX5vol RKbdKVkx2KvM/ZF1ghyM690ii3P7XUP2FKn82Uo7oees7sPj3IoNSwZxUTQUO/bupS RsOxpxrQLaz6lwC7ASRHKhOMvxSe1ywyxIvwseDU2ljpZd0eNeppC0oeKRdrgh7TCF 7upUDF6+F33wt7dKdRRgLS5XEQ8auuPmULYUAbCPjGzAAmo4rNHat1M+pRNi6J1n5V QUFLbkKhZ4Jmw== From: Muhammad Usama Anjum To: Shuah Khan , Alexey Gladkov , Muhammad Usama Anjum , Christian Brauner Cc: kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] selftests: fchmodat2: remove duplicate unneeded defines Date: Sat, 5 Aug 2023 12:38:02 +0500 Message-Id: <20230805073809.1753462-4-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 These duplicate defines should automatically be picked up from kernel headers. Use KHDR_INCLUDES to add kernel header files. Signed-off-by: Muhammad Usama Anjum --- tools/testing/selftests/fchmodat2/Makefile | 2 +- .../selftests/fchmodat2/fchmodat2_test.c | 20 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/tools/testing/selftests/fchmodat2/Makefile b/tools/testing/selftests/fchmodat2/Makefile index 45b519eab8514..20839f8e43f2a 100644 --- a/tools/testing/selftests/fchmodat2/Makefile +++ b/tools/testing/selftests/fchmodat2/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later -CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined +CFLAGS += -Wall -O2 -g -fsanitize=address -fsanitize=undefined $(KHDR_INCLUDES) TEST_GEN_PROGS := fchmodat2_test include ../lib.mk diff --git a/tools/testing/selftests/fchmodat2/fchmodat2_test.c b/tools/testing/selftests/fchmodat2/fchmodat2_test.c index 2d98eb215bc6b..e0319417124d5 100644 --- a/tools/testing/selftests/fchmodat2/fchmodat2_test.c +++ b/tools/testing/selftests/fchmodat2/fchmodat2_test.c @@ -9,26 +9,6 @@ #include "../kselftest.h" -#ifndef __NR_fchmodat2 - #if defined __alpha__ - #define __NR_fchmodat2 562 - #elif defined _MIPS_SIM - #if _MIPS_SIM == _MIPS_SIM_ABI32 /* o32 */ - #define __NR_fchmodat2 (452 + 4000) - #endif - #if _MIPS_SIM == _MIPS_SIM_NABI32 /* n32 */ - #define __NR_fchmodat2 (452 + 6000) - #endif - #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ - #define __NR_fchmodat2 (452 + 5000) - #endif - #elif defined __ia64__ - #define __NR_fchmodat2 (452 + 1024) - #else - #define __NR_fchmodat2 452 - #endif -#endif - int sys_fchmodat2(int dfd, const char *filename, mode_t mode, int flags) { int ret = syscall(__NR_fchmodat2, dfd, filename, mode, flags); -- 2.39.2