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 96509C123 for ; Mon, 19 Jun 2023 11:02:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CE95C433C0; Mon, 19 Jun 2023 11:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687172532; bh=ZIVB6nrYbfrwdoSnTrcBETAlvock7OqJMnCKz5PmXVM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=muhpXn6Uqo1HTZL4bzn4VP6CNX3OMmUrx9XZnHNR/l0IKCZEfLW5mSzptj7oXBgh8 SdoJhsKjiRQ8GAUDzeUByvSjYxhmpkrsbERAMeSk0iLEJCe/5tuwOmUI4ZJkvfKgQG JS5Kr2cENOPVh7ofRe/NLcwkit4ZOxelLBz0ZHvs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gaosheng Cui , Jakub Kicinski Subject: [PATCH 5.15 102/107] net: Remove unused inline function dst_hold_and_use() Date: Mon, 19 Jun 2023 12:31:26 +0200 Message-ID: <20230619102146.193649529@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230619102141.541044823@linuxfoundation.org> References: <20230619102141.541044823@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 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 @@ -238,12 +238,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)