Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1076831ybi; Fri, 24 May 2019 16:51:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/zvvp0UREDeSkZU8TqIJ/JQbtlq/TIXngYOS9EGCE5BLMGa0egC6Zmks1ylC3eDTb+WeN X-Received: by 2002:a65:4bc3:: with SMTP id p3mr49073702pgr.413.1558741892636; Fri, 24 May 2019 16:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558741892; cv=none; d=google.com; s=arc-20160816; b=BcKr2VvT9oxoMAGpy5z0j3lRkiYmFCVRFak3tzVvWgT25/K3lNhN7Hms+ERPNMfFH4 OsbDf3iEy3cjqkTDK7ZVruVj9XxcGjEszUpoH1GbDKhSgUSw8Yp5cbIQ5PaSaCFpRZdi qp/hPCGRprfVxsEgSIV372cELG3TflojXRAfy/BDW/yiwdlZNbCzklq10zOzSCNJ7Ceg Ukx/vBGfxzXsjk6uTYUB2P+U6uj5Rb5LCWjAoBFXXb3ziZhnhRRiewU8i2pW2YnGVe5p YxIJbillOV9N1LjIYDmzPI6ICEwjRPz7Vyc8JfFI0k0Ea1dxib57GWxeqQX2DznqmsvL +CzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eaayBc92IMmJypjY+VABsd2ojMmm1ZzkUdujrOQbc5g=; b=iXBSN0DOp6XikfmSDyko8T/ZhlffwwzeRhoXL8fedYNd6OfTWTq8sv73gAo6I4omDW aJv0pT5IGJtiw957IX6DIpatSr+SQSqpmJtVQ9Jdjj3rR4to24bEmUe14QAOvzvZx42E g/FBbjwOtbLxBW0ouWuGAACVpgatlmpIew7XENl0K/EdQsfrNSNDSJE4dGAtMcexRiUu 9uiXbVh4Uz77emgGmGxlfJ51csAO6Bu4EC8uFUkyn9LgyMM5Y539srFAXe4FObU9CqB2 YjM7Dc2BMFdTJFRGrYZVdPPGFI5Za1hw76hxODxtJ8NbCHGqLQlOg1UEt4nM9xpj65ZQ Y5dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bKtwgdrk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o102si6009384pje.42.2019.05.24.16.51.18; Fri, 24 May 2019 16:51:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=bKtwgdrk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbfEXXuH (ORCPT + 99 others); Fri, 24 May 2019 19:50:07 -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-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