Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1959798pxb; Wed, 9 Feb 2022 08:05:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzohpzv2XeRWrgXvmUcXgc/sWWrFOGGJoJJmn5ptfp7efFhvcLldG5TUWJNGNkLvirRfHxl X-Received: by 2002:a17:90a:670a:: with SMTP id n10mr3210850pjj.123.1644422741446; Wed, 09 Feb 2022 08:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644422741; cv=none; d=google.com; s=arc-20160816; b=acJPKhLyxXnF5gR/ZwFgc1VmO+TYe2LwjgzAEupC2VVWd+4DG8PMHBSqRhN6LMKN70 6pmXtrz889gNmO6wvjNJ4xaJYjT1SnxWN/bFFRyqDu8c5CVCR6xqgITR5g2/jmiswMNy T7VJB/KKwo5p/oNg8I++vEqkjnnxvXr6gCrDCVLhrGdSPGTcDcU57e7G7DZrFS51R2WZ lv+A9HBEykgOUNsfuTFvU4BP88KFI6OdcmJO3PK85T1Cb/vCdT66hbS27lggrHUCKBEi sigbLOoEc767wD4HtK+QGpb9/qzGzU0r51HDYyhkQfJ7FjgxEw8F9ap8aeM16pQVvdTV UA/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Dx/PKWpzQCecS5LJJThre2isPFS/IqAyk2Jvk4HRdb0=; b=SS/VHucMk6cGvhY02uMJpVnaYrH3ceHtfkcaF69ihpvlQx6WKPqWw6vvtvfbUDMKQ7 cF1i7Dyg1U5mJFo1MyvR4ECPu3grfgC6KMaXQ70lCl3Z4vRfdGiII3E8B7X5vWcQcbir Wd9YVK4a036tMKjMhUiM72HF8KU6ok6+MJA/j889ZibAfyeDcFIHgaFeYcGxVyGRDJHB tUZ71Kata7Etdz8uzviXR2aE/juL4U5xEiOqqKQ9wcyUeqMM61irfv0lTGUoGDDFaAUU CfaNOY5HHpxUbI+HkPe/eSv1sQ4V8dNV9dslZlN+qmF8mXWKu/KPNyM1XWZT4qZSi4ev lXng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Vgmk0z0l; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si1806852pfw.83.2022.02.09.08.05.22; Wed, 09 Feb 2022 08:05:41 -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=@lunn.ch header.s=20171124 header.b=Vgmk0z0l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbiBINyc (ORCPT + 99 others); Wed, 9 Feb 2022 08:54:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234605AbiBINy1 (ORCPT ); Wed, 9 Feb 2022 08:54:27 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8770DC050CC8; Wed, 9 Feb 2022 05:54:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Dx/PKWpzQCecS5LJJThre2isPFS/IqAyk2Jvk4HRdb0=; b=Vgmk0z0l+9jPpsmVtPt3YDGe09 g870jZd2okb+F2agLNYbzeYNb+Ogu/LxP0STrp3BYie9juwJlk9zrTCTZ1U9cmf5R4frDqu8tcLb0 bWMz5gMmpe8zxJEkgcHYNJYI0GPXCSNu+PttpvvBngJzV9EVgx+zWJEIUFvmMV6Dvmzw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nHnQN-00582r-Ve; Wed, 09 Feb 2022 14:54:23 +0100 Date: Wed, 9 Feb 2022 14:54:23 +0100 From: Andrew Lunn To: Horatiu Vultur Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, davem@davemloft.net, kuba@kernel.org, kernel test robot Subject: Re: [PATCH net-next] net: lan966x: Fix when CONFIG_IPV6 is not set Message-ID: References: <20220209101823.1270489-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209101823.1270489-1-horatiu.vultur@microchip.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, Feb 09, 2022 at 11:18:23AM +0100, Horatiu Vultur wrote: > 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. It might be better to add a stub function for when IPv6 is disabled. We try to avoid #if in C code. Andrew