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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 261A2EB64DC for ; Mon, 19 Jun 2023 10:55:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230415AbjFSKzM (ORCPT ); Mon, 19 Jun 2023 06:55:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232287AbjFSKyd (ORCPT ); Mon, 19 Jun 2023 06:54:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07E0F30DE for ; Mon, 19 Jun 2023 03:53:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC7D960B5F for ; Mon, 19 Jun 2023 10:53:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEFE8C433C8; Mon, 19 Jun 2023 10:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687171987; bh=pGeDjDxZN8oJ4o7LYABuFyi3Kc23NvPqjI1ccz+uNHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IQbLJvXfsSjptRhDfNECCbxhViagBnuE8ifsjqqOWKobipPRmHusEkGkVSBjRvizP +qxvTC4zPcEQgPfXYc0pJqTsRt1AVsNeseWCeAaIUm3kGp32NqvdIeubA6Sp3e36uh fS6WnGaUhEc7InY1a0HSiV9HDM2j/x5kKdFHcDAw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gaosheng Cui , Jakub Kicinski Subject: [PATCH 5.4 61/64] net: Remove unused inline function dst_hold_and_use() Date: Mon, 19 Jun 2023 12:30:57 +0200 Message-ID: <20230619102135.973794266@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230619102132.808972458@linuxfoundation.org> References: <20230619102132.808972458@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Gaosheng Cui commit 0b81882ddf8ac2743f657afb001beec7fc3929af upstream. All uses of dst_hold_and_use() 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/dst.h | 6 ------ 1 file changed, 6 deletions(-) --- a/include/net/dst.h +++ b/include/net/dst.h @@ -236,12 +236,6 @@ static inline void dst_use_noref(struct } } -static inline void dst_hold_and_use(struct dst_entry *dst, unsigned long time) -{ - dst_hold(dst); - dst_use_noref(dst, time); -} - static inline struct dst_entry *dst_clone(struct dst_entry *dst) { if (dst)