Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1817496pxb; Wed, 9 Feb 2022 05:15:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAdsWw+IV4CQD28mTIMLmlMMhV5WKLJ4xCnTuZ+udILywI+ho+9cwK3xWaRwVeKalurS0J X-Received: by 2002:a17:902:f543:: with SMTP id h3mr345417plf.70.1644412544643; Wed, 09 Feb 2022 05:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644412544; cv=none; d=google.com; s=arc-20160816; b=fkGlVqsYimx6J82FGNuYoP2039QM5PVf14JcbLDzCU3WS2hxjRx1R/0319BJIxjDzV xMa0ubul+AbIHUWxH7BW0rJLV68sTJ3vZ+XosTy41zpiZBRQErW4Nylzu4rNWZK0XUAs sphy1BJEjE3RQUYUMNgbVRzMnwURt/HjurfJrVCyVXr2w7/Nkd1EdXk0eBS0cQd3Q3FK ql8cwvqsYcLquJokH2YtOYUzMIbLo7TulpC47XFa+J2RjWKJ5JQ8Bjc3wHRyR6XCK3ht Lms92DGwTHkf+5HmDzRGjEkxewz0YiJdg/XGgzmb9upRO/WkCu5BAz7OGzhMbrWDE1dV l+qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=LAdResq/Bzd+bNKc7ZGzoiG7doA2Mwx6i4ABCHulEtk=; b=XxC175sM5DogvF8z0CllqEw+20hM+6zfYKtPlxh8pxqyV4r5db5c59Lxr9RbSBaora ptVwb1h1rP/2I5Y1hRlD387gTsNA/ZbciRBQlDuA53pcnPaT4R3122l9HeZXEVgu+RgN P0u2N9HhrROPp/gleH/qq42Sr0/e0m0vEYIkp1nm0wnCXWFYERno9NRsLzEZw5rexzDI qx1cujWWnjkujnSr+ELh/IvhKnf+sEPL3AIS3Z+nntz1dzHYbO/Ua9G/mkn08I5LgTv/ /of6DlyZyVOi9xWdWmUTG/wYEyTqxagAbV3n5NxPfDAhNN0ksAtylPKm7WAxBFIT9E+A K4gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=RLdIK9Nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a15si14836328pls.569.2022.02.09.05.15.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:15:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=RLdIK9Nc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AEA0AE0ACE0D; Wed, 9 Feb 2022 02:39:22 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233916AbiBIKWp (ORCPT + 99 others); Wed, 9 Feb 2022 05:22:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233475AbiBIKWk (ORCPT ); Wed, 9 Feb 2022 05:22:40 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1162DE1238F7; Wed, 9 Feb 2022 02:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1644401803; x=1675937803; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=gOYuPQ6dWgF1FusoULpbO/FDaKmDWcPywDql506vEek=; b=RLdIK9Nc8GJZ3QYzHmVWNLaRk5Po9P1kzz4vbSb51xIJLWAV9FxSpctl roA4cdh463sJ/Si4D2oF8SV6O13rbMsrzhLXSInFAwAbifNAeoujdsGuR EOfmDvc5CpBwO1KIMMMp1/tSE/cHvwyrGJ+VDY9GwspVjSHY5bFkCmEV+ 6nRDMJPckTwsdrtljVogHcrAjOOzxp986j5a54vTlSsWEl6BWagzH3Tj4 qyLtBR2tHuqqXqJoFXh6wfo5wBovlHw01fo0P3FqehQCYrob12ZQ+/aTN Y7q1qVmHuX65lr+f8s+azNBs7yrc7zzw3GaLIFXED3akZioVeJnTElOwO Q==; IronPort-SDR: ntgf5eIqpbSay6+2xVHrEe4VepzensbJ0vhqzV8pIDje/eZl4hBICneIOSf2nL6FybI0slvbyo rqplrHVelTB4pceejbEVidLc5fui7CQFnxLpoDZWRlPQ4heQ/7X+64BkRpQFuiNK9LM+licBJr k0bvqaef7mjk1307nW+oLbxHY3y+sy5dAj/qg8wNNJ+GMdI5a1MMZgnI+XHDSpaYlz1l8KV5Vb a5FkR0xzPmRQVxVW9kW3uBP43qj2VvzwD3Eoo9jDVqo491NarwFlLbEzcF3AM8Ezbo3Q4U/vMU 5aoRswjdnorX84cPEwLpfLrN X-IronPort-AV: E=Sophos;i="5.88,355,1635231600"; d="scan'208";a="152969584" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Feb 2022 03:16:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 9 Feb 2022 03:16:03 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 9 Feb 2022 03:16:01 -0700 From: Horatiu Vultur To: , CC: , , , Horatiu Vultur , kernel test robot Subject: [PATCH net-next] net: lan966x: Fix when CONFIG_IPV6 is not set Date: Wed, 9 Feb 2022 11:18:23 +0100 Message-ID: <20220209101823.1270489-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_IPV6 is not set, then the compilation of the lan966x driver fails with the following error: drivers/net/ethernet/microchip/lan966x/lan966x_main.c:444: undefined reference to `ipv6_mc_check_mld' The fix consists in adding #ifdef around this code. Fixes: 47aeea0d57e80c ("net: lan966x: Implement the callback SWITCHDEV_ATTR_ID_BRIDGE_MC_DISABLED") Reported-by: kernel test robot Signed-off-by: Horatiu Vultur --- drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c index d62484f14564..526dc41e98f8 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c @@ -439,10 +439,12 @@ static bool lan966x_hw_offload(struct lan966x *lan966x, u32 port, ip_hdr(skb)->protocol == IPPROTO_IGMP) return false; +#if IS_ENABLED(CONFIG_IPV6) if (skb->protocol == htons(ETH_P_IPV6) && ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr) && !ipv6_mc_check_mld(skb)) return false; +#endif return true; } -- 2.33.0