Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1782189imw; Tue, 5 Jul 2022 15:36:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tX/B754AufZFKGz+3bBLVvY++bEv4W+rPE9B8URwhM7KYNmO4hDhFuR7fokRx32K2VpK1g X-Received: by 2002:a05:6402:5388:b0:435:71b:5d44 with SMTP id ew8-20020a056402538800b00435071b5d44mr48631867edb.364.1657060566191; Tue, 05 Jul 2022 15:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657060566; cv=none; d=google.com; s=arc-20160816; b=HpnCJgwIcDKZVuoBMz5Srw92uKzJw4sSf2fi8PPaq4cvN/+g0ksGWz7Z+LfAit4Hzy PhqbHyrCRUrnticWEIiZaYza0WedWWEujb0NlDn+QpFySDHk4thod2L1L+ibCDcgIEyi nmixafHcw/97aownJnvEQJWp/rIiGWIILZaN3AGZTzXEmS/uj0vpnZIaYAzWVgoRuM1b zoCr1qbM9kxWrO2AMG0iYvNgo3DqlzzftDfTtqtqMb1TyoE0imd3tXODjRmAyK2fZAIM MjLqnSGW7Yj2SjEMv6khtEE9oUews4xoKPc5syJNjFrmktFa6+2f/9J9OUSKnZiW74Ih f4+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=KIMoCjgYe7Ln0pHIhBpKe86xrG9xxvreZ9yHs63y3oM=; b=LtgtfPcRMesyS7NaehBAdvIevc6twJEr3atOORqpcffM/5B07z/mdfrlOfoLjs66nX VjO5AHUwyisEWKn6CJqg8a/xWhOD+04dcdZ5LVj1Ml+wfxSa7MXZMhRo1/XGzbRMryVr P4ElPoYXd9JoE1dYhIoQ2t9NTIZpGdQrw9PV06dUczCU/FysKawDgxt+N5fdTFr+88Pj wGbX8HaXnochXMeUMj+6wrINxQsvJzgkTHp8Y3YQYx46YTh/xBUan8Vb2zWEZlejhTvZ tBW9whkbNJl8NFOH9GNnAMzBUh7PD6hm7vSrdTlbSPVSQuuJg1BkwrRR0H4nte0sFdaV xmuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZzzrVnpw; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i27-20020a170906265b00b00711c65e9ce5si21419742ejc.958.2022.07.05.15.35.39; Tue, 05 Jul 2022 15:36:06 -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=@intel.com header.s=Intel header.b=ZzzrVnpw; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229473AbiGEWVl (ORCPT + 99 others); Tue, 5 Jul 2022 18:21:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbiGEWVk (ORCPT ); Tue, 5 Jul 2022 18:21:40 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B04F192BC; Tue, 5 Jul 2022 15:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657059699; x=1688595699; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=ygLwRkgSYh+haeShLfIUcDBrK9ADdF58dkmlB287494=; b=ZzzrVnpwpl5ZD+dcdpD1PkPIosc7mc2PLlttDdpfrDtYYwXq/OPL/6vH tQP0JeaEo8bGJyZt2du8eOscndBbpk1J32y2rLV1tVBQJOwgvK8Yr8Lto g9yd5fsiDs9cdDNKLljUoWOItrbY43qNWatq/lLUYdLY9FAefKykTniZB XoqO1Un+XLQ9elceEAXv38rxemyWq6zkN3zcpAcJu1j5TOnmod/7rBicR N/dGAzHEkuwxoO9bXUfRGx3Jcg5SRHFp+Va5PgIezBg63fR/gvWwDY5TW FHqwUY7s3n4RMVep48gJsC2olVr/TytZeCO/Wcmqwbpi7ybHdEWQ/aZuG g==; X-IronPort-AV: E=McAfee;i="6400,9594,10399"; a="263960342" X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="263960342" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 15:21:39 -0700 X-IronPort-AV: E=Sophos;i="5.92,248,1650956400"; d="scan'208";a="567800577" Received: from vcostago-mobl3.jf.intel.com (HELO vcostago-mobl3) ([10.24.14.91]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2022 15:21:38 -0700 From: Vinicius Costa Gomes To: Vladimir Oltean , netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Xiaoliang Yang , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , Maxim Kochetkov , Colin Foster , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 1/2] net: sched: provide shim definitions for taprio_offload_{get,free} In-Reply-To: <20220704190241.1288847-1-vladimir.oltean@nxp.com> References: <20220704190241.1288847-1-vladimir.oltean@nxp.com> Date: Tue, 05 Jul 2022 15:21:38 -0700 Message-ID: <87pmij6w0d.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,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 Vladimir Oltean writes: > All callers of taprio_offload_get() and taprio_offload_free() prior to > the blamed commit are conditionally compiled based on CONFIG_NET_SCH_TAPRIO. > > felix_vsc9959.c is different; it provides vsc9959_qos_port_tas_set() > even when taprio is compiled out. > > Provide shim definitions for the functions exported by taprio so that > felix_vsc9959.c is able to compile. vsc9959_qos_port_tas_set() in that > case is dead code anyway, and ocelot_port->taprio remains NULL, which is > fine for the rest of the logic. > > Fixes: 1c9017e44af2 ("net: dsa: felix: keep reference on entire tc-taprio config") > Reported-by: Colin Foster > Signed-off-by: Vladimir Oltean > --- Acked-by: Vinicius Costa Gomes -- Vinicius