From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3A64C282E1 for ; Fri, 24 May 2019 23:50:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 99033217F9 for ; Fri, 24 May 2019 23:50:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="bKtwgdrk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726461AbfEXXuI (ORCPT ); Fri, 24 May 2019 19:50:08 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44287 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfEXXuD (ORCPT ); Fri, 24 May 2019 19:50:03 -0400 Received: by mail-pg1-f196.google.com with SMTP id n2so5839168pgp.11 for ; Fri, 24 May 2019 16:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eaayBc92IMmJypjY+VABsd2ojMmm1ZzkUdujrOQbc5g=; b=bKtwgdrkqRsODjat6ojYHyBKdVvveA/eZWmIfkN9EasXwK9Os8rI42a213oMZywyrJ uQqACXEmiJkk4pse9iu30fuVl4njrGuVeGY+qNGodI9qLCrR7wmHRld8PBOzHPJpRXLn hVJS0T152ByGYPSSVahtJqoeq8R8jylKj9qpc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eaayBc92IMmJypjY+VABsd2ojMmm1ZzkUdujrOQbc5g=; b=OqP5bv6FhNTNekgj+ADmrHdqtTqZL5jz7SJomu/Qk7RQ2Lw0o733aOBIa1nP+0Xmpx ZUG2NMvEo1nt0wzE7lCl9ZQkQGG0XvpMtsPM3We+wUH6xbyDY/cUMeszUW56IPjcH/r/ enF5/5ZnGCgMHjDj4W2PqbbSHYzmdZC9MouYdQk9ZaTI2cAl7FeNKAT48hD28TLD2AfG q1HwWynFYnhnO8XDXJolR7d/SbHa4TeB+3lJ2SJjADMgiN+SlX45lRdWPuDQkUBQjVhM YVBvNuhUX0KrLZYpv39TsZ3i+7ZyrViI0fgzNOhTHT2+hREo6UNxXbYjOdPbjdl6B1bi woJQ== X-Gm-Message-State: APjAAAWHLGoL2r4GiSlollvuznYwEJ5B4/EUxbkLzXWfJaNTdayAiufV cfZkqYxdBinGvxvTdualb4IPYbRtonpL4g== X-Google-Smtp-Source: APXvYqxnwdALM9KRFwXLedWKJxMEgotFtqy5TZBUssjnizX6ClUg18TxOqEWpFQcyOGvp5/8X0oLPg== X-Received: by 2002:a17:90a:b296:: with SMTP id c22mr13322972pjr.28.1558741802356; Fri, 24 May 2019 16:50:02 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id q4sm3297595pgb.39.2019.05.24.16.49.59 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 24 May 2019 16:50:01 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" , Benjamin Herrenschmidt , Ingo Molnar , Jonathan Corbet , Josh Triplett , kvm-ppc@vger.kernel.org, Lai Jiangshan , linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Mathieu Desnoyers , Michael Ellerman , Miguel Ojeda , "Paul E. McKenney" , Paul Mackerras , rcu@vger.kernel.org, Steven Rostedt Subject: [PATCH RFC 4/5] rculist: Remove hlist_for_each_entry_rcu_notrace since no users Date: Fri, 24 May 2019 19:49:32 -0400 Message-Id: <20190524234933.5133-5-joel@joelfernandes.org> X-Mailer: git-send-email 2.22.0.rc1.257.g3120a18244-goog In-Reply-To: <20190524234933.5133-1-joel@joelfernandes.org> References: <20190524234933.5133-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The series removes all users of the API and with this patch, the API itself. Signed-off-by: Joel Fernandes (Google) --- .clang-format | 1 - include/linux/rculist.h | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/.clang-format b/.clang-format index 2ffd69afc1a8..aa935923f5cb 100644 --- a/.clang-format +++ b/.clang-format @@ -287,7 +287,6 @@ ForEachMacros: - 'hlist_for_each_entry_from_rcu' - 'hlist_for_each_entry_rcu' - 'hlist_for_each_entry_rcu_bh' - - 'hlist_for_each_entry_rcu_notrace' - 'hlist_for_each_entry_safe' - '__hlist_for_each_rcu' - 'hlist_for_each_safe' diff --git a/include/linux/rculist.h b/include/linux/rculist.h index e91ec9ddcd30..0d3d77cf4f07 100644 --- a/include/linux/rculist.h +++ b/include/linux/rculist.h @@ -628,26 +628,6 @@ static inline void hlist_add_behind_rcu(struct hlist_node *n, pos = hlist_entry_safe(rcu_dereference_raw(hlist_next_rcu(\ &(pos)->member)), typeof(*(pos)), member)) -/** - * hlist_for_each_entry_rcu_notrace - iterate over rcu list of given type (for tracing) - * @pos: the type * to use as a loop cursor. - * @head: the head for your list. - * @member: the name of the hlist_node within the struct. - * - * This list-traversal primitive may safely run concurrently with - * the _rcu list-mutation primitives such as hlist_add_head_rcu() - * as long as the traversal is guarded by rcu_read_lock(). - * - * This is the same as hlist_for_each_entry_rcu() except that it does - * not do any RCU debugging or tracing. - */ -#define hlist_for_each_entry_rcu_notrace(pos, head, member) \ - for (pos = hlist_entry_safe (rcu_dereference_raw_notrace(hlist_first_rcu(head)),\ - typeof(*(pos)), member); \ - pos; \ - pos = hlist_entry_safe(rcu_dereference_raw_notrace(hlist_next_rcu(\ - &(pos)->member)), typeof(*(pos)), member)) - /** * hlist_for_each_entry_rcu_bh - iterate over rcu list of given type * @pos: the type * to use as a loop cursor. -- 2.22.0.rc1.257.g3120a18244-goog