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 842BD539D for ; Mon, 19 Jun 2023 10:56:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04F9EC433C8; Mon, 19 Jun 2023 10:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687172208; bh=Z1MDPGD8h0l+5PvCEaKDbpNbwF186cXdaQ/77C4BQrM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lsDW0qFlb9kptD7LrRQK8mUOu8AKeSnIz05OEQhofO6n9dlcWUl2aglLYPBa05OVM +KVdstEt0VGxx3CtYZphPXT7Wj6YVBrxjjKQRznIEw261/YjxIfUB7Zn5QW2egfV1T u+HzgeWMEi+IpXyS2rXucAlj+8890TIBAVPqr2Ug= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gaosheng Cui , Jakub Kicinski Subject: [PATCH 5.10 76/89] neighbour: Remove unused inline function neigh_key_eq16() Date: Mon, 19 Jun 2023 12:31:04 +0200 Message-ID: <20230619102141.734764455@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230619102138.279161276@linuxfoundation.org> References: <20230619102138.279161276@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Gaosheng Cui commit c8f01a4a54473f88f8cc0d9046ec9eb5a99815d5 upstream. All uses of neigh_key_eq16() have been removed since commit 1202cdd66531 ("Remove DECnet support from kernel"), so remove it. Signed-off-by: Gaosheng Cui Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- include/net/neighbour.h | 5 ----- 1 file changed, 5 deletions(-) --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -260,11 +260,6 @@ static inline void *neighbour_priv(const extern const struct nla_policy nda_policy[]; -static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey) -{ - return *(const u16 *)n->primary_key == *(const u16 *)pkey; -} - static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey) { return *(const u32 *)n->primary_key == *(const u32 *)pkey;