Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp838309pxb; Wed, 6 Apr 2022 01:23:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdZ1Wjb5eTdZzkElGESmgQuNk37tBbp9CwcWsruaY3D4sJ8TYKL/roREa0iCYR67PYEnaG X-Received: by 2002:a05:6a00:1da1:b0:4fa:a53d:d0a5 with SMTP id z33-20020a056a001da100b004faa53dd0a5mr7739663pfw.42.1649233396541; Wed, 06 Apr 2022 01:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649233396; cv=none; d=google.com; s=arc-20160816; b=C+ZVdtsM615QKA3T8yrb46AQ8/e9I/doiT/qDBXXGs5NCStgtamEv+OIgd7DphELK1 H/1gYR9RMzOJS/yl/EVJO0vfdbEoULCIY9XbdHZIEqWfE9I022Sw3N92U2eNBKH4mTak VGjrxktVTSlV+rxwG1LNONQjabXoAT4LATRF7l14wrX7shajetWe7dwKzygKnI8DwaVy CLQfn1JdNWxV5dMlQ145ptrCAdhdYSXH9eXjqAuqTpMwmRjqmjSWUdkZEOCCE9WA7Cx1 /k8M9flp2MCju2YRbK+XN7ZlONCo6kh5L9vsyr4Fa9Qnn9laz6LMaWgl62R++ZhIT4mo 3TgA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cV89w/hHzSS4rpt9h3+KtDPhPfzjfc5kXuplGlLLlhk=; b=w/rjBgQkzsTLOkBdK1Y+xN2Pw3thhh0pbye8xSUTbVZWcVDlbkiui0SdLKazBpAP3d tWZWkxRfUFbjQnYUQ6CXv0oh7lvYmlE7vH3QOxUKxixbnJKHY1stZisQfORbDwr75gYu vO2lZOss9f3f/yz6j9gQc4bRArNAFyVGFaat4vi3MinZaCHH28QY0bMJbJQSimI7lSOy +8qCPi3vdbmtoRTF5T0C/Roj4E5Wj+AYupvQMlAIu8exzKsPZWPGMo5/LChFGYVPZWqw Irw/v8EZiFxoLTbCgjctyB5YXfoaQDekpVRZcFUjR9UPMbl1AZS00Okn5AUaBjlWBL4U 1hMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lDVeZPk8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i2-20020a625402000000b004fa3a8e001asi13853423pfb.209.2022.04.06.01.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 01:23:16 -0700 (PDT) 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=pass header.i=@linuxfoundation.org header.s=korg header.b=lDVeZPk8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB80455BDAB; Wed, 6 Apr 2022 01:13:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391779AbiDEUGk (ORCPT + 99 others); Tue, 5 Apr 2022 16:06:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354112AbiDEKLs (ORCPT ); Tue, 5 Apr 2022 06:11:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBD1C4EA06; Tue, 5 Apr 2022 02:57:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5C8266167E; Tue, 5 Apr 2022 09:57:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C661C385A2; Tue, 5 Apr 2022 09:57:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152638; bh=oPodn0ztNol+LNm49PEtGqL8jXdiQr3R6lw3KsHDegQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lDVeZPk8OB7QW65lsOxrG7XOVGEbnzjSEF8a8hAmGoaHrwIWU51fYS4WejHUjtvsS udIxsn46qsR587Wbum+g61hh3muJQ23GzTrgzmY8QN+7Iy4tDlXY+trt1SAQM6lo1s iHE9GDuUF9gBT1b4oaA2mXuDPvkYd2yBklKO3Xuk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Horatiu Vultur , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Paolo Abeni , Jakub Kicinski Subject: [PATCH 5.15 849/913] net: sparx5: uses, depends on BRIDGE or !BRIDGE Date: Tue, 5 Apr 2022 09:31:51 +0200 Message-Id: <20220405070405.277914895@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 From: Randy Dunlap commit f9512d654f62604664251dedd437a22fe484974a upstream. Fix build errors when BRIDGE=m and SPARX5_SWITCH=y: riscv64-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.o: in function `.L305': sparx5_switchdev.c:(.text+0xdb0): undefined reference to `br_vlan_enabled' riscv64-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.o: in function `.L283': sparx5_switchdev.c:(.text+0xee0): undefined reference to `br_vlan_enabled' Fixes: 3cfa11bac9bb ("net: sparx5: add the basic sparx5 driver") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Horatiu Vultur Cc: Lars Povlsen Cc: Steen Hegelund Cc: UNGLinuxDriver@microchip.com Cc: Paolo Abeni Link: https://lore.kernel.org/r/20220330012025.29560-1-rdunlap@infradead.org Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/microchip/sparx5/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/microchip/sparx5/Kconfig +++ b/drivers/net/ethernet/microchip/sparx5/Kconfig @@ -5,6 +5,7 @@ config SPARX5_SWITCH depends on OF depends on ARCH_SPARX5 || COMPILE_TEST depends on PTP_1588_CLOCK_OPTIONAL + depends on BRIDGE || BRIDGE=n select PHYLINK select PHY_SPARX5_SERDES select RESET_CONTROLLER