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 8D4E8EB64DA for ; Mon, 19 Jun 2023 10:42:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbjFSKmv (ORCPT ); Mon, 19 Jun 2023 06:42:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbjFSKmZ (ORCPT ); Mon, 19 Jun 2023 06:42:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 844071707 for ; Mon, 19 Jun 2023 03:42:20 -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 16F5260670 for ; Mon, 19 Jun 2023 10:42:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30519C433C0; Mon, 19 Jun 2023 10:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687171339; bh=9EMQksYHRR74R3zrOdaNOoio+4lnXDJrmwbFtiR72AY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BaTj4xzyUDJuy4qHHaiWHoOfjzuSPI2vUG1zxMOjc/xJHjfRHgeTV/6tAPlMCoc6k DoAEejRwf9/0VkkgYc0KnXteBod779e3+KaZb8tJzKC2I5sDVQTMX450aAFU+MWErt wvFABhts2qFsvOSsN25sD2mW1dYv/mx5HYN6PnQU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gaosheng Cui , Jakub Kicinski Subject: [PATCH 4.19 45/49] net: Remove unused inline function dst_hold_and_use() Date: Mon, 19 Jun 2023 12:30:23 +0200 Message-ID: <20230619102132.277376321@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230619102129.856988902@linuxfoundation.org> References: <20230619102129.856988902@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 @@ -247,12 +247,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)