From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43CAF11C83 for ; Mon, 28 Aug 2023 10:28:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB1E8C433C8; Mon, 28 Aug 2023 10:28:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1693218491; bh=fhdH+RShQxfQIQq/yI5q1Dt7+IqHwszLRKg6onLlvCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WSxVzreBp4bq5iARJ/gJCH73FJty2WtOSExCkYYzUOB1Rt9IrtgfgVoxv4t7Z5ApA Ygv9UFsbcgYxr5gUH4obG5tAVL5muWg5l73ZCjUAX7vFMZQ+BmEf/ZRuazkYXi4poQ YkA1+Jz9vU7dfry84h99xtuwru6K123rwOLJd+AE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jakub Kicinski , "David S. Miller" , Sasha Levin Subject: [PATCH 4.19 106/129] net: remove bond_slave_has_mac_rcu() Date: Mon, 28 Aug 2023 12:13:20 +0200 Message-ID: <20230828101157.144088502@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230828101153.030066927@linuxfoundation.org> References: <20230828101153.030066927@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jakub Kicinski [ Upstream commit 8b0fdcdc3a7d44aff907f0103f5ffb86b12bfe71 ] No caller since v3.16. Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller Stable-dep-of: e74216b8def3 ("bonding: fix macvlan over alb bond support") Signed-off-by: Sasha Levin --- include/net/bonding.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/net/bonding.h b/include/net/bonding.h index c458f084f7bb9..ab862e2e34520 100644 --- a/include/net/bonding.h +++ b/include/net/bonding.h @@ -674,20 +674,6 @@ static inline struct slave *bond_slave_has_mac(struct bonding *bond, return NULL; } -/* Caller must hold rcu_read_lock() for read */ -static inline struct slave *bond_slave_has_mac_rcu(struct bonding *bond, - const u8 *mac) -{ - struct list_head *iter; - struct slave *tmp; - - bond_for_each_slave_rcu(bond, tmp, iter) - if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr)) - return tmp; - - return NULL; -} - /* Caller must hold rcu_read_lock() for read */ static inline bool bond_slave_has_mac_rx(struct bonding *bond, const u8 *mac) { -- 2.40.1