Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp266364rdb; Fri, 6 Oct 2023 02:56:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEz7yPPuQ83ypVYnwRf0dyIN0I0Vgk6ItLy9+gWP4KOiH2Ndr6In9g0H6CYS4Eq2ItHmgEt X-Received: by 2002:a17:90a:9dc2:b0:268:ef84:b0cd with SMTP id x2-20020a17090a9dc200b00268ef84b0cdmr7115104pjv.18.1696586205172; Fri, 06 Oct 2023 02:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696586205; cv=none; d=google.com; s=arc-20160816; b=aBI+Gt89Om+bATvpxSZ76Hpvlca8KkMJk4DiJ8D2rrNdbtRiBye9/c/40H9dTiIS9H WT8aj3lnGDcUdmfmrjOW/IrXnr4pUi50U99Qll1Y6zh8tR2QBhaldV2ANaCBMqCQxI5j bhMDDosKOJm0Q6gNwZkyKJUD9/Qv/NopF/FvcO4927hkWy4XgG5ibPgr2A7PlcXlUOXX IDIw1LKf7YpZQcJ491jR7PVCMeC156wtfkWG0KpSIg1Cqz3QSGl5m7SIrHmVoZavjloP zFNeA01ahJ5MYlZN/qd2wjptyl0wip1SI9wp/9c+a23h+O5NpR+8e1AR9bnLwEdbchGS INCw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=eV5IrmfPr1Jg8GcEyFsrjE3Zu7Te+yq1etG+jmd1g+E=; fh=14vmd36YWMSAO/SAc+Km+106UrUcBCuEY3C+I/6Fbo4=; b=texdtvyBcgF6v8xZNmLA8lcdHoDBS38lk5JhUdFhgCMfcM2a/IN3+KoCRwIFCg3aHO BBOgLDRK2rUTXeYOSA4UeM5oEY96PdG0VvvK91eZ+SRUcPnseM4nuQrjooizF9uWMqGe UEMH2PTFezw7vX2zkbZiq0ebFcttK5So6y1mrmVRLwWvuWd8E4SQn1CRUMuprka3MqmA b/XWCS6AFI0PPNpqNsbrc+9TMgr0C6TB59Pb25MErTWUU3H3fnNX3V2mkN8lpmVAGtNx /wT1UZnXfHf8q2O1NT4gmN3YLaYHNp6ZZyOKtjGvNDgXY9o0WclDIbWXhMPDsCpIdS5u WQVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=id+xbwaR; 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 Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z7-20020a170903018700b001bde8c9800esi3552629plg.459.2023.10.06.02.56.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 02:56:45 -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=id+xbwaR; 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 A6BA08099380; Fri, 6 Oct 2023 02:56:42 -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 S231570AbjJFJ4c (ORCPT + 99 others); Fri, 6 Oct 2023 05:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231535AbjJFJ4a (ORCPT ); Fri, 6 Oct 2023 05:56:30 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF19AD; Fri, 6 Oct 2023 02:56:27 -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 C78E76612212; Fri, 6 Oct 2023 10:56:22 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696586185; bh=cAPdTDO9l0OljwiXmnH2mEX0mLjZo06Oo9SZMhEPWy8=; h=From:To:Cc:Subject:Date:From; b=id+xbwaR+mi0oM79N7gUk028gNKm6zbI0LnzEC9D9a9zZrVQKy60rY+qf7YhoVVtp s5IHS2XvlKSRVaYZCwrqzBnSVCoYgO9aFzN9wadyCL52UXbRol1qRboKogx4OL7LuQ fTw2cfFtt1Lw3oERf8lA+P3yesqd5Qf2NAfqBFzJvgdOR9dVUBBd1XthOSoohMCAME Xf7bdUN6+ltsEqxNsH6RNEcm4GCMOSxBmY+SY7DFeGCQN1wWmsy3fYECOzu3Eqacof II0X9TRVUXpptg3P3cIFSOyQ8O1e1MMMsr60tht9JLRmqKBjhR3os3HphZ3KXqa8Fp f+SNBlEPXiyAQ== From: Muhammad Usama Anjum To: Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Davidlohr Bueso , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Shuah Khan , Muhammad Usama Anjum Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2] selftests: futex: remove duplicate unneeded defines Date: Fri, 6 Oct 2023 14:55:37 +0500 Message-Id: <20231006095539.1601385-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.40.1 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 02:56:42 -0700 (PDT) X-Spam-Level: ** Kselftests are kernel tests and must be build with kernel headers from same source version. The kernel headers are already being included correctly in futex selftest Makefile with the help of KHDR_INCLUDE. In this patch, only the dead code is being removed. No functional change is intended. Signed-off-by: Muhammad Usama Anjum --- Changes since v1: - Make the explanation correct --- .../selftests/futex/include/futextest.h | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/tools/testing/selftests/futex/include/futextest.h b/tools/testing/selftests/futex/include/futextest.h index ddbcfc9b7bac4..59f66af3a6d10 100644 --- a/tools/testing/selftests/futex/include/futextest.h +++ b/tools/testing/selftests/futex/include/futextest.h @@ -25,28 +25,6 @@ typedef volatile u_int32_t futex_t; #define FUTEX_INITIALIZER 0 -/* Define the newer op codes if the system header file is not up to date. */ -#ifndef FUTEX_WAIT_BITSET -#define FUTEX_WAIT_BITSET 9 -#endif -#ifndef FUTEX_WAKE_BITSET -#define FUTEX_WAKE_BITSET 10 -#endif -#ifndef FUTEX_WAIT_REQUEUE_PI -#define FUTEX_WAIT_REQUEUE_PI 11 -#endif -#ifndef FUTEX_CMP_REQUEUE_PI -#define FUTEX_CMP_REQUEUE_PI 12 -#endif -#ifndef FUTEX_WAIT_REQUEUE_PI_PRIVATE -#define FUTEX_WAIT_REQUEUE_PI_PRIVATE (FUTEX_WAIT_REQUEUE_PI | \ - FUTEX_PRIVATE_FLAG) -#endif -#ifndef FUTEX_REQUEUE_PI_PRIVATE -#define FUTEX_CMP_REQUEUE_PI_PRIVATE (FUTEX_CMP_REQUEUE_PI | \ - FUTEX_PRIVATE_FLAG) -#endif - /** * futex() - SYS_futex syscall wrapper * @uaddr: address of first futex -- 2.40.1