From patchwork Tue Aug 3 10:00:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tenart X-Patchwork-Id: 12415823 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3BF8C432BE for ; Tue, 3 Aug 2021 10:00:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B803061029 for ; Tue, 3 Aug 2021 10:00:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235166AbhHCKAa (ORCPT ); Tue, 3 Aug 2021 06:00:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:45782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234813AbhHCKA3 (ORCPT ); Tue, 3 Aug 2021 06:00:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8588060F56; Tue, 3 Aug 2021 10:00:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627984819; bh=LBKY3hTt2FUPdKgyEGSeDs6OHhBTNTcGF/AUCHL4BCY=; h=From:To:Cc:Subject:Date:From; b=GTy5ZhSsayI+dmMWO1uvYOLvYPi5wsInB+SyINfkL8fc/mkdcQ7hYsY8wN3gXOoCb cu7jY4YDn9n0KKKWelosK0fxPvFrX6CF1frhyDJMAekKHuhViHC3rAWOSMmMrO0+hk TV6qjywvuf56x5yTtSfMsYIG0NlLqaGfwEZUhzqfwEApw+N6wCJNbKxpvQcIyuXqiZ 2wZ2brKBcD3CSsg4DVSoZc0X3Wyhtw0ThymRAwodq6Kg9zqj2LmsFwRKsbvuzK7swn R/LLc72xc17bxOLHDXDZdTudHzdFK//Y4q9+em0uMS574r3yk7PkcEUi0TyQV84w+H AHBnDY1NJ+qQg== From: Antoine Tenart To: davem@davemloft.net, kuba@kernel.org Cc: Antoine Tenart , netdev@vger.kernel.org, Vadim Fedorenko Subject: [PATCH net] net: ipv6: fix returned variable type in ip6_skb_dst_mtu Date: Tue, 3 Aug 2021 12:00:16 +0200 Message-Id: <20210803100016.314960-1-atenart@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The patch fixing the returned value of ip6_skb_dst_mtu (int -> unsigned int) was rebased between its initial review and the version applied. In the meantime fade56410c22 was applied, which added a new variable (int) used as the returned value. This lead to a mismatch between the function prototype and the variable used as the return value. Fixes: 40fc3054b458 ("net: ipv6: fix return value of ip6_skb_dst_mtu") Cc: Vadim Fedorenko Signed-off-by: Antoine Tenart --- include/net/ip6_route.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 625a38ccb5d9..0bf09a9bca4e 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h @@ -265,7 +265,7 @@ int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, static inline unsigned int ip6_skb_dst_mtu(struct sk_buff *skb) { - int mtu; + unsigned int mtu; struct ipv6_pinfo *np = skb->sk && !dev_recursion_level() ? inet6_sk(skb->sk) : NULL;