Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2929350rwb; Mon, 15 Aug 2022 14:15:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR6TkU1j7wGKMiuhT7WlEY1mz/6tTtMlymMtLiBF4LfjxmpkDMZttVH7iELjtAGyU7pC6n06 X-Received: by 2002:a17:903:41c4:b0:16d:cb15:290f with SMTP id u4-20020a17090341c400b0016dcb15290fmr18130225ple.47.1660598104468; Mon, 15 Aug 2022 14:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598104; cv=none; d=google.com; s=arc-20160816; b=PEreuSViVU6SEzAhQCdFFcwcW8jf9UNGsSdnp/UBfjfH739p3jidGIGohqKy4O0Qnv JNMgq35iwhQIGt2by2sak6mCu6fvuEIUbpjdIRhSonkFcyyjoY5OmbKAus74Eq3CkJGd 9+j9rGWK2fmvyVWIao+CZTceik226LtU38nY/BOwTu68IwKGd2pFYc9t1EY6/zEMPo6+ XuvzrkV9uCEGera127dLyqyFPQuGXL3Tr0ePxTM99AGEwRcTqMiSlEmF3dbn/FJM/UAy 6kU/5TI2MpZ/gjBjBOz1Tr05X4sLkXlEN1AbuXRPlLnrFnLNtRnqY9oQu114RLD/K6D8 6DJg== 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=IR8WLhk7AwPBGpg/uXWZHc2JumuzrSmBfh5mBdJsIH0=; b=tk8XoJ/EANU1I2vNmqB2kkkJjn5lyfPSzSxPXBgAQZC4ieaEv5HZjagaFVoSrBCpjI 3J9FVD5FGbNEXlZcWRLEUT3mRibd0ydLblC5Uv0LlEnCFxf1OyFbxa4rpsSZwUZni1dw qb21s6+mXpAgCrdZZmL2D5jG2YkweCSR4TK0qP9PzcbK7h8S6afKA/0Nm/Dqx3nvfSsg pUVl2QOK1sJSt519LhH8xLSaaNPvdDwv+KXXWLGK+KFxA8DGXhxB6gWyN6DTWP8Gd7j4 /dYgSZFU+UlztFWgsJ4HoJIxhpc8pq+73cmxN9Xy9r4Do4PqBZ329HyP7AE157y81PAA hWUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GW5mQoB6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a634c43000000b00415fcde211asi11774894pgl.556.2022.08.15.14.14.52; Mon, 15 Aug 2022 14:15:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GW5mQoB6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245018AbiHOVLQ (ORCPT + 99 others); Mon, 15 Aug 2022 17:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347080AbiHOVGm (ORCPT ); Mon, 15 Aug 2022 17:06:42 -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 C5FC063C9; Mon, 15 Aug 2022 12:15:30 -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 5CCAD60FAD; Mon, 15 Aug 2022 19:15:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64604C433D7; Mon, 15 Aug 2022 19:15:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590929; bh=nCWO8YIu1PEBiyHOTBnU4ZCYz8V+EBt7GoQJfXewjfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GW5mQoB6La+JbS3RDSb92X4gcetEorChrPHRUZMHiMcRgMTPZTEFXaKq8DJNcnqzm uJx0fVbgLTPq/FVYbajHUuQpVIhRsifPdUjVRkN+FQBoNZYM0bjHoORgYfI2BsSyyp Ty3xYMfTnBlTU4jk3/BgSkRvFGPG9IGg82kln34Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vladimir Oltean , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.18 0416/1095] net: dsa: felix: build as module when tc-taprio is module Date: Mon, 15 Aug 2022 19:56:55 +0200 Message-Id: <20220815180446.915381685@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 From: Vladimir Oltean [ Upstream commit 10ed11ab6399813eb652137db9c378433c28a95c ] felix_vsc9959.c calls taprio_offload_get() and taprio_offload_free(), symbols exported by net/sched/sch_taprio.c. As such, we must disallow building the Felix driver as built-in when the symbol exported by tc-taprio isn't present in the kernel image. Fixes: 1c9017e44af2 ("net: dsa: felix: keep reference on entire tc-taprio config") Signed-off-by: Vladimir Oltean Link: https://lore.kernel.org/r/20220704190241.1288847-2-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/dsa/ocelot/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/ocelot/Kconfig b/drivers/net/dsa/ocelot/Kconfig index 220b0b027b55..08db9cf76818 100644 --- a/drivers/net/dsa/ocelot/Kconfig +++ b/drivers/net/dsa/ocelot/Kconfig @@ -6,6 +6,7 @@ config NET_DSA_MSCC_FELIX depends on NET_VENDOR_FREESCALE depends on HAS_IOMEM depends on PTP_1588_CLOCK_OPTIONAL + depends on NET_SCH_TAPRIO || NET_SCH_TAPRIO=n select MSCC_OCELOT_SWITCH_LIB select NET_DSA_TAG_OCELOT_8021Q select NET_DSA_TAG_OCELOT -- 2.35.1