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 1CE24EB64DA for ; Mon, 19 Jun 2023 10:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232390AbjFSK65 (ORCPT ); Mon, 19 Jun 2023 06:58:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232323AbjFSK6g (ORCPT ); Mon, 19 Jun 2023 06:58:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F3D31B8 for ; Mon, 19 Jun 2023 03:56:52 -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 9D6B160B88 for ; Mon, 19 Jun 2023 10:56:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2D09C433C0; Mon, 19 Jun 2023 10:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687172211; bh=UWPHqsmYSGXns9D82BY6Q9OBQUosdV5rdY44fUwFxZo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2coYEMp4tdXOB0k9m+lXoHqav3OFWkKTAgCsZ3pEcs6kDp+LHxex9T6nbJHGcZZvW Tu67Dy2BZoXXyugd9SrxOvbzJD1QZQsxRq3pGb07p8Ie2EPzd6h0/LAsHi5ASxQ/tK /UXlgncBPq3jfX/3t9xPJWAI2LIH/j/leqqKL4qU= 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 77/89] net: Remove unused inline function dst_hold_and_use() Date: Mon, 19 Jun 2023 12:31:05 +0200 Message-ID: <20230619102141.776462204@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 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 @@ -235,12 +235,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)