Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1180655rdb; Fri, 20 Oct 2023 10:32:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCbi+79qGt5mxUDQ1uA/GvkHk8Mimh19ucpWg/MJdbBm5GRqz7iX5CNVcv+cNwRb2UVRwN X-Received: by 2002:a17:903:184:b0:1c6:1bf9:d88d with SMTP id z4-20020a170903018400b001c61bf9d88dmr2956944plg.44.1697823121345; Fri, 20 Oct 2023 10:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697823121; cv=none; d=google.com; s=arc-20160816; b=bC49T2cZ8nNKqUasmB7s/IzkH5lPKh1Tx22QHP+x9j4KeNixrdsOaK5ckKj+EMBjuf AvLhSwWs3xgg7x+pMoUoOAnH+5zCFrEJCrx/BpDLTPIwCSoAs0Y26rgmFHhTSf9ZHUtp rsK/GbuH4oXYEgpKmB3pzVvol1oQjMzZTk7AXcZInG5BCA8XnJ46zPLgEUTEtllc8N8h 0YGCYLSJcg6y3QyzCrIXs8X4uVw2jV0lRCYC2T0xFalWsmOHfj8n6u2NOdebo2V86F0k f/++nrCUF1GMAO4rt+tjzLZ2skL/Z+r/Zy4dRs9B6TRhGW1yXWX5QSy22FKi+VLvAQ3Z PWcg== 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=NxpOXyb87A9tg1EnyFOnn6XQcp6Ef9sPYFZmIQknO/4=; fh=15LXbOwTBZw/Vo/HnGwjmZmCuQ00NNGfTkC0OGok9B8=; b=JOF9ZiOYBa8t7FjX7DWwStQ71+aOT+7692tYHd0+EGYaIQTsQLCvMN+ry+2oXCrjZP 9fIjIi34i+3MeHA8HCLkHRj0dSRHZQE3083KnL397NfXAi3FiDCN5N+UkDRDib2he8mH q+BuI7S9/+MpUEGUr7CmJRvXO+yi+YSq5fxEJ0qqp76CYO3YZgQs4FLgKblaLZe2greR r1hPysTyAnOFCX1vrToxubNqLdfIB3rnE9Loz7/v5O4blfLIYJxKZUA4tWVM/tePkxs5 1u+CzVlDDnv6Lywc2PXAbv66X8nFQXuQpT0RyHNt8LeKSe2Pws9Af8RyL6VwFbEtPRBT TUhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Cw1zd9el; 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 m28-20020a638c1c000000b005b7180bc067si2451298pgd.17.2023.10.20.10.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 10:32:01 -0700 (PDT) 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=Cw1zd9el; 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 15EAC80740FA; Fri, 20 Oct 2023 10:30:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbjJTRaY (ORCPT + 99 others); Fri, 20 Oct 2023 13:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbjJTRaW (ORCPT ); Fri, 20 Oct 2023 13:30:22 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74755A3; Fri, 20 Oct 2023 10:30:20 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-31427ddd3fbso793618f8f.0; Fri, 20 Oct 2023 10:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697823019; x=1698427819; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NxpOXyb87A9tg1EnyFOnn6XQcp6Ef9sPYFZmIQknO/4=; b=Cw1zd9eltba6besS6mIeJCLCvQnxEceYYk6FIzDMRjGcA2svzj8TW2qZ2CeLgoV2yp 2wdVGQ5a++UOKvKgJnJIfd3/tFBuOSeeaNM0c5/TqzuAGZrsl8Bz/9iKcBlvXZFottCf RVQuoX1pFEHAKOrMzyry3yBs4f5Fl1hZ/DSbo2tCZ20D1NzhqIMWjK7i6mVJmGJvvciv iY/r+ZUXjYegu+g+KXiHZcEwQbPP1AlBcp6VGZ+gst+l9nQ0hQKEY7zTN41jdylWHfMf B01H7qZjSs30XEorE8Pid3G02/CZKacoH8V9+dRKuScnWTw/H/1b+Accu4uAdyUx5ojZ /Sfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697823019; x=1698427819; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NxpOXyb87A9tg1EnyFOnn6XQcp6Ef9sPYFZmIQknO/4=; b=ZgjixgPWHxMCRIqc67JCCmTUuT0ZdE+FBA/N7gdblvTWhJLR7cwogt8LaNUDQzaCn/ COcuqhGUhWjSNLkCSYKtgjf4Ob6iP7ez4D/RokGnlY7rOzP4zbiKesE6FTHK5nUvfURf LfDdjNDVdVKgbnfl8lzEqCR2uaJ1M2kF8u7+CXvv0axsobGdUwuPnIFpiG+PB9Jrho2/ MPqtp00s9hfVGp6SzgjXJow0jhbpPmIfIUrgHYV6K2iqGfBXFhifwVW16Z4uLjNDP5pc GEV9uJIHwVX4QxDuOb5exT5jwiswZeRqZOeDo3Zz0GshctBcrAEjY9ghCLoWwmwdjx/S DtxA== X-Gm-Message-State: AOJu0YyDOY9W0+7FXXkw9SXRWmvRbceMwAnoOOoMa3JK0+asrvSc2onB 32D8xfSWUM3KwNV3ESGbytc= X-Received: by 2002:a5d:5b1c:0:b0:32d:a61a:85cc with SMTP id bx28-20020a5d5b1c000000b0032da61a85ccmr3083519wrb.8.1697823018563; Fri, 20 Oct 2023 10:30:18 -0700 (PDT) Received: from PC-PEDRO-ARCH.lan ([2001:8a0:7280:5801:9441:3dce:686c:bfc7]) by smtp.gmail.com with ESMTPSA id r6-20020a5d6946000000b00318147fd2d3sm2102854wrw.41.2023.10.20.10.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 10:30:18 -0700 (PDT) From: Pedro Falcato To: "Paul E . McKenney" , rcu@vger.kernel.org Cc: Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , linux-kernel@vger.kernel.org, Pedro Falcato Subject: [PATCH] rcu: Remove unused macros from rcupdate.h Date: Fri, 20 Oct 2023 18:30:15 +0100 Message-ID: <20231020173015.30509-1-pedro.falcato@gmail.com> X-Mailer: git-send-email 2.42.0 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 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]); Fri, 20 Oct 2023 10:30:33 -0700 (PDT) ulong2long, USHORT_CMP_GE and USHORT_CMP_LT are redundant and have been unused for quite a few releases. Signed-off-by: Pedro Falcato --- Just a boring chore patch that cleans up a few unused macros. I'm *very* interested in knowing how that ulong2long macro came along, though. What was wrong with '(long) a'? include/linux/rcupdate.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/rcupdate.h b/include/linux/rcupdate.h index 5e5f920ade9..b9b6b828115 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.42.0