Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4803624rdb; Tue, 12 Dec 2023 09:41:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUQ/yu3fCwZdycT87ILa2Hc1fHcTydIA4+B8pKiJM9Ijo2eybrDuCCMddTFjpku7NL4NTy X-Received: by 2002:a17:90a:9741:b0:28a:c38b:40f2 with SMTP id i1-20020a17090a974100b0028ac38b40f2mr896000pjw.72.1702402877003; Tue, 12 Dec 2023 09:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702402876; cv=none; d=google.com; s=arc-20160816; b=En50QNylgRiGG5qbFDPabMco5oezEDRwwFPEhOTVQzi4sJEuwR9BzxsiGPPwU9awko AEXRMnz9/akczw94vp6dho8iufvHCC8+1iSMBj2pwvj0tj+KQNGdwwdlAKnZMNnDHdjJ GEUAX3hrbekKTnxwXO8PQ4lwWds2J16Ex4bxekjtk5bktTRr0UHCTzmzRmewv1zUsXZv AcBWO+Bcnqc/dwahx4iV+C3+UYMYple2eeDfrza/24Q6O9/hd7UN13xeiKhQcZQKiCQV HZGG3Xee+c/A29ZSRhSXo0wae1Fj8EpvGAZ4/Dh1UdkUSbzr8r2cnRQ/50kS9xR5FNB9 jVJw== 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=nPISlKbrUG0tK8lJYNvUNWP7nyNY1BbwflsKiLuTFi0=; fh=4MJamVKUbosmvsY70url48PQjuEbufUEw3f4eCK2ZHc=; b=fQ9tPYTy0y+NmjrJST9l9UhGZwgAt5Z4iePUhbIucVvFRcXQpkUjhgmaSTAQWuBR5V FdRVF2ZzlipcwRQ0Kr3wY3Jh+sqgy92c/XOIGRn74A3La63OcWv3KSW6tDVZKNW3excA o8DrVqnN8aryNsfhOrhfglhnWJE4RedtS1/FGB1oezOuB+2YvOVMHiErxVpiZLOQSFCz 2OgCRaw2uXjcX0jJ04Fll+t5z0wrf2BD5MXhMiPukYe3TUdluzIa0L49Rahtrc8+k8cs +J/laz3W77DvwePBPlZEvheoxnITGc1XVFIVQGq51BYvikyZ6Q1XeIFM//y7behLsghS ZOFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eZPlRk2i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p11-20020a17090a348b00b0028a28ea031asi7808583pjb.156.2023.12.12.09.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eZPlRk2i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 31260805D3B5; Tue, 12 Dec 2023 09:41:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376900AbjLLRke (ORCPT + 99 others); Tue, 12 Dec 2023 12:40:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376853AbjLLRkc (ORCPT ); Tue, 12 Dec 2023 12:40:32 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD2DD91; Tue, 12 Dec 2023 09:40:38 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1d098b87eeeso52055005ad.0; Tue, 12 Dec 2023 09:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702402837; x=1703007637; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nPISlKbrUG0tK8lJYNvUNWP7nyNY1BbwflsKiLuTFi0=; b=eZPlRk2iIfqZrnHaPFJ9Bf1vEpZG3EJ+6rO6/frCRthqggEMAUG5l5HdNNWvO5c3Y4 Q1fPPpF4Eu0yMdytpWV9f+bgBZe/HjRH4IaJwjG2ibIeuYW4XAiq7kTbknWxCnTbh0ZD 8jRIvRUeXxOkd7lHV1sdbfKJOSe/1oAQdDt6fMSzsNL2UHKNDhjxZRlcu5sJW8Gab1wO CJVOgTPb1QawPaYvKvbmDUVswnmsKUj6bPXf5CcJwvDQ0YFrR3ZXn5YhQ9WIyziCObk9 Z+yJCFgg5da304vfM78uEw0isY2hQkb4bmscUHhxWWVNhp5k3e0VOUEHZ+iJVIJeV10p J+lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702402837; x=1703007637; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nPISlKbrUG0tK8lJYNvUNWP7nyNY1BbwflsKiLuTFi0=; b=bFaD4H6Tu9iMC1843nXClbA+LLm7Z/OmhKZa4YxFwH6/Lu6/w2alvYVmfZWX8R3do3 6lkvqIo8vHvkNnyS+y1D7c7D0qrF/9zZ4Jam/2u23/QGP/kpM0jMXdstFFBkEE0lPank 7HEmK54DqSZXTjkgPaUm1CZyBhTmZzY55ulBfmL2ilkpirYV3mt+3P0usZ0nXLdlZwLH PGPuDntSQhfuPFeicCnVnnY8XfH4Am+ZSYorOL+dGczOM21N9/HyX1I4tScHg32fYipl W8Mpj3tmLV753lkG+ubU5sbwSPkP24Zgf2s5ZfdRrT1Ev8lMEyiR0qS64gAECNbdS6cB dnCQ== X-Gm-Message-State: AOJu0Yxe8eCyAwQXgXKXcpvfNO41OufHpfsK1yN1faIIUmGoZlA3i+Vx /2HH2qk1/hoeYhSjD5TsXZaBHIq/PTa3yMv7 X-Received: by 2002:a17:903:1cc:b0:1d0:ba41:1ec with SMTP id e12-20020a17090301cc00b001d0ba4101ecmr7966274plh.49.1702402837234; Tue, 12 Dec 2023 09:40:37 -0800 (PST) Received: from localhost.localdomain ([101.0.63.152]) by smtp.gmail.com with ESMTPSA id jc19-20020a17090325d300b001cc25cfec58sm8903135plb.226.2023.12.12.09.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:40:36 -0800 (PST) From: "Neeraj Upadhyay (AMD)" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, paulmck@kernel.org, Neeraj.Upadhyay@amd.com, Pedro Falcato , Neeraj Upadhyay Subject: [PATCH rcu 2/3] rcu: Remove unused macros from rcupdate.h Date: Tue, 12 Dec 2023 23:10:03 +0530 Message-Id: <20231212174004.11754-2-neeraj.iitr10@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231212173948.GA11724@neeraj.linux> References: <20231212173948.GA11724@neeraj.linux> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:41:14 -0800 (PST) From: Pedro Falcato ulong2long, USHORT_CMP_GE and USHORT_CMP_LT are redundant and have been unused for quite a few releases. Signed-off-by: Pedro Falcato Signed-off-by: Paul E. McKenney Signed-off-by: Neeraj Upadhyay (AMD) --- include/linux/rcupdate.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index f7206b2623c9..aa87c82236dd 100644 --- a/include/linux/rcupdate.h +++ b/include/linux/rcupdate.h @@ -34,9 +34,6 @@ #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) #define ULONG_CMP_LT(a, b) (ULONG_MAX / 2 < (a) - (b)) -#define ulong2long(a) (*(long *)(&(a))) -#define USHORT_CMP_GE(a, b) (USHRT_MAX / 2 >= (unsigned short)((a) - (b))) -#define USHORT_CMP_LT(a, b) (USHRT_MAX / 2 < (unsigned short)((a) - (b))) /* Exported common interfaces */ void call_rcu(struct rcu_head *head, rcu_callback_t func); -- 2.40.1