Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1160413pxb; Fri, 13 Nov 2020 05:56:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzK4LjjuMzg5pGOGpvxkK77mspXoaYHrMYU2OJLSsCYyzxpGyUqHkYK00G6YGTrb+5taUgY X-Received: by 2002:aa7:db8a:: with SMTP id u10mr2603056edt.204.1605275789869; Fri, 13 Nov 2020 05:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605275789; cv=none; d=google.com; s=arc-20160816; b=BeIY2EnDig851pIjsmKGQE7WwyTYyRUsf0GmtbIwGNEocJ2A70MvhE7Gr5wTLi9KkD nAAIUqd/K/OMKyaBz2MFZOJKgthzqACvaBJDUjZwL/Z5nQeCemRDMGWE8nxap5L0RGI5 DBxiGZ7ISTNfrfdUv+VyESAe1vODuHhoA/OB2UwoFunLyDBkECWdL6zCQ1oV1R51VdyA oF0SZOlaADfuExg0Wmg8X5HtPOULbKMVq/xbsw0EKExIP16wcrUprfmAkppJO9paaeVK FQPbwQO1+1lDosHtMvZB9gi/cNpm08WOv6sRKuI2nsxfrzzw/B4Gb7+Ina9zBqMdR6NC bfog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=EO37OAJNAbmZmGUhAeyjfYFiO66b5FlhyGH1+SemRIc=; b=Xa4cs4v9UZgi0Ar1pfLFXvxn+PoD6KHftJAp0l2bdZX5nFdZLRTjUT6pVtdcnTVu57 w2X0cyn6+dCeB0d9Pbd+e43jc6sF34VDd59yZMlACMT76FJqyPL9Q/wmuVnQ7Bavcsbn C2Fse434/u/tuHxuQgxArPNbIQcavFAdOQ8MQX7fkiI+muaU/ym03HnNlmQJ8aFLrcta l65FTuFkAMiNLlLmAwsx12kDXqjv7ubA0WIsCxdiCbcFCiuBbcVN9zyO6A4aqCEnul+z LLBmabTCBP5McMAbUAU9uSGAMYVqtsocynWkF8kIRaxDu7xo87YbmCvHHaMkB/zCc5Tm QN8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BbzicZpi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si6362225ejn.341.2020.11.13.05.56.06; Fri, 13 Nov 2020 05:56:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BbzicZpi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbgKMNvk (ORCPT + 99 others); Fri, 13 Nov 2020 08:51:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbgKMNuY (ORCPT ); Fri, 13 Nov 2020 08:50:24 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4761DC061A04; Fri, 13 Nov 2020 05:50:24 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id o21so13528804ejb.3; Fri, 13 Nov 2020 05:50:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=EO37OAJNAbmZmGUhAeyjfYFiO66b5FlhyGH1+SemRIc=; b=BbzicZpiGaE2YQjZhlr8r9r8+LJ1YvlfarJx6O14McwTt7deIy0GDIRHlEFPLw14y8 u2HywTB8JkgkcnMsr4ArHWl4vNVnqx1eCv43hBQUVkYZWcnj5tC/oRIqYhNhzRAH1xlD 7k7L7EP4IbWLl25MrLidnnIXDNAuy6PsJ0rl/0oeyRY2bY0Qqv4p6QjImnqjicPPzH+J 2zJECPh8R4hM2ZytYgDcq9NYOWNKXOeL5wrvqR+by/z/A4gqxBzIgwKqlggP1Z++uaxn TJzfZHHdXp7gw9nYXxc9TP/iVT0dvSOZ/AYQUs2c+Z81KotFWavBegZkq4M2l1G66uB3 fKzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=EO37OAJNAbmZmGUhAeyjfYFiO66b5FlhyGH1+SemRIc=; b=MUkVL357Q1TSP/xhJ0Xkds8TMWXBBAO7mkGfrZ3iaTDoh01R3JcGqTlgHKW299u8E6 e8Z/3vBziSzvt+XZCUVekBB4tU+yOWmNj0/3IQFZgV4VWxkVQqpeQKzfy0FEbQj7dp+x t0x6CeHOvcYjwFXZqUvHR0MONm95ar6sD5ULfCnBuZMhA+jg5leCm93hVAXavlCy0O+5 Y6ge2+kPU3BGHpg8Aa1V8UzumPZB1+cRkuPI+DSrKx2eZSoJn1/r87VP1N5ujrPRfPRB AKywtGySM5hTVw5bo5VS4LVmEEnVQSXRsmY6/66Gw+FPBZ0FXZyVe9qudzCvQxJeFdd5 XZFg== X-Gm-Message-State: AOAM530FtuwNhhU/iGFZwr+QLXm1jDs2XGe7/v7ZU3XJdO1kQH1M4v/g 41V6aRD9fGaIZIxNCyHgbsrFCY3Dovpuctoj X-Received: by 2002:a17:906:14d:: with SMTP id 13mr1935709ejh.516.1605275422982; Fri, 13 Nov 2020 05:50:22 -0800 (PST) Received: from felia.fritz.box ([2001:16b8:2de6:6700:4456:5b6d:36a2:24a6]) by smtp.gmail.com with ESMTPSA id n16sm3687783ejz.46.2020.11.13.05.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:22 -0800 (PST) From: Lukas Bulwahn To: "David S . Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , netdev@vger.kernel.org Cc: Arnd Bergmann , Tom Rix , Nathan Chancellor , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: [PATCH] ipv6: remove unused function ipv6_skb_idev() Date: Fri, 13 Nov 2020 14:50:12 +0100 Message-Id: <20201113135012.32499-1-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit bdb7cc643fc9 ("ipv6: Count interface receive statistics on the ingress netdev") removed all callees for ipv6_skb_idev(). Hence, since then, ipv6_skb_idev() is unused and make CC=clang W=1 warns: net/ipv6/exthdrs.c:909:33: warning: unused function 'ipv6_skb_idev' [-Wunused-function] So, remove this unused function and a -Wunused-function warning. Signed-off-by: Lukas Bulwahn --- Alexey, Hideaki-san, please ack. David, Jakub, please pick this minor non-urgent clean-up patch. net/ipv6/exthdrs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 374105e4394f..584d1b06eb90 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c @@ -906,10 +906,6 @@ void ipv6_exthdrs_exit(void) /* * Note: we cannot rely on skb_dst(skb) before we assign it in ip6_route_input(). */ -static inline struct inet6_dev *ipv6_skb_idev(struct sk_buff *skb) -{ - return skb_dst(skb) ? ip6_dst_idev(skb_dst(skb)) : __in6_dev_get(skb->dev); -} static inline struct net *ipv6_skb_net(struct sk_buff *skb) { -- 2.17.1