Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1538429pxb; Fri, 6 Nov 2020 12:17:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRaK5PLRHuPQ0MKfD3lfTdnKjOuRESGoFlubkuKBpNqGXYVB3JlFDzYk3Da0hPy1iowitF X-Received: by 2002:a17:907:d1e:: with SMTP id gn30mr3961493ejc.148.1604693842143; Fri, 06 Nov 2020 12:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604693842; cv=none; d=google.com; s=arc-20160816; b=osTUP6JW1igyB1qSGY5WdrQAm0bbFVcT3n29iLRt7FgVNFbZGXYFwNlg0CWsYcYkwe hCMjNh5w0pUUQ/by12dDLF5dd9VQFJFygCvacbrsqX10y7k+b0UstY3W+ofWde4HyQGI GPZQpml5WQRz7hrDJp67BuwAcL8efWDYPbvN+lv7nvFerLWAxFgMIghePQP9/pL3ifm9 9KbptVF2Dwt9Bic0AUfCj+5DTDlEK0VprnK8OgM5f5TlvNjPcjd82n1Hn4kUlRU5MFWE qayCzRCRcs1ahk2zXWDNxCiuu1IeDv4LaS7XsUtDh5SwqMAf1Zgz8bkfq3IZtEVOqlXH dXaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5oicY2GKZKEFQuBu7/i2kWiW5yuI7LeLWBSKiBk081Y=; b=e9S7ePRhlZPbqqtTaik7U0H2FkuePDfiVD8GFIQpY3rmEl6XzoeXjpCueglIMkMqGt xAalXNxpokKvHADKzCeIqjkO2moiiaVOiHoXshIwN/JP+/pvAYJ+UaM6c6siHtJBAmKN 5hhCvs/y4EB86CPY6/eI+NVMyHaFl8GITXfiCbqzOW9xT6cXiqr6c4WMjVyQzvp6YjI3 LG1C+kgNmkllHJLNV7HBl/8rJgN7v/RPc7UkCxEb/F/DQ1j5wYGJNVM6NGmyUqyV9FGU KF+RIokFwuTDbXsmb5do5BhWnWR2nnuI2fFA1aCxaUcem6Sx1jbgC/HeksuRXMMkmZJa g7Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=aOx4EJ3s; 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 q15si1777105edr.58.2020.11.06.12.16.59; Fri, 06 Nov 2020 12:17:22 -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=@infradead.org header.s=casper.20170209 header.b=aOx4EJ3s; 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 S1728399AbgKFUNX (ORCPT + 99 others); Fri, 6 Nov 2020 15:13:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728113AbgKFUNX (ORCPT ); Fri, 6 Nov 2020 15:13:23 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2914DC0613CF; Fri, 6 Nov 2020 12:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=5oicY2GKZKEFQuBu7/i2kWiW5yuI7LeLWBSKiBk081Y=; b=aOx4EJ3siU16FxqTqnb58GqQ1C oE22Z86+qRbyNltQRky48XuAerEqq/HuEEDQ32M12gnvOR9YtSGKETk7+D9wTVgTBSf/tFihP2PVs 1UBMHvzL6xYS1BmCyuRIfaLydIz2jQNkV538v8Y6VP9D4KW70us2wTYg1adDjq8/WoTLBSyj+a3FZ gO6MYWE7diXUROsf3csHaczCrSkRL/SfLS2ay82ucI2mJoD2YM5x8Lk0J5bbMMyTRMdv5Xm21a92O aBODnpSkvzNFnAtTERX1jLbpGvXuSXHEWl6HSvslhyuEYW4wBy3u3f8b5umCaBjkhgplEBfCvVgD0 SPg4sj/w==; Received: from [2601:1c0:6280:3f0::a1cb] by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb86m-0007Xl-Tc; Fri, 06 Nov 2020 20:13:17 +0000 Subject: Re: [PATCH net] net: marvell: prestera: fix compilation with CONFIG_BRIDGE=m To: Vadym Kochan , Volodymyr Mytnyk , Andrii Savka , "David S. Miller" , Jakub Kicinski , Oleksandr Mazur , Serhiy Boiko , Serhiy Pshyk , Taras Chornyi , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mickey Rachamim References: <20201106161128.24069-1-vadym.kochan@plvision.eu> From: Randy Dunlap Message-ID: <4d67e1d4-4f5c-a0c1-ce87-42e141215aa1@infradead.org> Date: Fri, 6 Nov 2020 12:13:12 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201106161128.24069-1-vadym.kochan@plvision.eu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/6/20 8:11 AM, Vadym Kochan wrote: > With CONFIG_BRIDGE=m the compilation fails: > > ld: drivers/net/ethernet/marvell/prestera/prestera_switchdev.o: in function `prestera_bridge_port_event': > prestera_switchdev.c:(.text+0x2ebd): undefined reference to `br_vlan_enabled' > > in case the driver is statically enabled. > > Fix it by adding 'BRIDGE || BRIDGE=n' dependency. > > Fixes: e1189d9a5fbe ("net: marvell: prestera: Add Switchdev driver implementation") > Reported-by: Randy Dunlap > Signed-off-by: Vadym Kochan Acked-by: Randy Dunlap # build-tested Thanks. > --- > drivers/net/ethernet/marvell/prestera/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/marvell/prestera/Kconfig b/drivers/net/ethernet/marvell/prestera/Kconfig > index b1fcc44f566a..b6f20e2034c6 100644 > --- a/drivers/net/ethernet/marvell/prestera/Kconfig > +++ b/drivers/net/ethernet/marvell/prestera/Kconfig > @@ -6,6 +6,7 @@ > config PRESTERA > tristate "Marvell Prestera Switch ASICs support" > depends on NET_SWITCHDEV && VLAN_8021Q > + depends on BRIDGE || BRIDGE=n > select NET_DEVLINK > help > This driver supports Marvell Prestera Switch ASICs family. > -- ~Randy