Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5687472rwb; Tue, 1 Aug 2023 06:38:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlEn4mx8Cqgi2pEahT1sUuEoiflKpHGfD2WcQpfMCh5BjOzMEoRx1kTR4+uWEMLAizKGeK3l X-Received: by 2002:a17:906:10cc:b0:99b:e7d2:c2ad with SMTP id v12-20020a17090610cc00b0099be7d2c2admr2480734ejv.42.1690897107399; Tue, 01 Aug 2023 06:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690897107; cv=none; d=google.com; s=arc-20160816; b=Xlx63KeL8VAIQ3OjOTRuKriKDrN1r4UewdXAC96Ins4dqfTD8nCN3SAZEsnt+xJXO+ UyizWODJKHvjiANJbz8CqusrEgSToufytjiAX8z3v068QJomVuWjtsRT+mk4rEMZTd+L IFSZn7BcXbBqD3h42VFopon+BV6eM5IzVL74J9kLiojCeLwhmOzuBAQk9qvySgC15vYl d3wVn0RRsGMzU0jkknBw3kTkcrQtO8FHk/OqHZIXg6LzQKSjq3tHd2ndzC5J6YWqZmdZ 4LKcULLy+mdSYXaxQneioEAmyAhjzzmc/XSC1HJoMWl5mdaEa5sQZw39bwQmd+PNynp8 9FWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vSHCvZt/Bg0Xkhxmt9vma+uiJ8Y/WgYZZTPa6RO7irM=; fh=E+eObAUsqJYnJDyB5+bgNzvDLFGbGJ9TEbFeJlUI6hg=; b=d4m03rrE7SQCB0n0f8j6+QFWOPscoKwzH5DHYU5VRfeTadW2UEkmGNGhVVXBI1iSEw /BdLf80GFYDuDLnepVRLfJkg/m3R1dqfEYxaTkzm8tJHplREUjGhrggUXc/E/X+TwmeH x/Fxzy+XJwF5srEybRnQ+1lgr/0ZN7+vK1VAs4ZYyJhlixNiB5J0U3FHTOnC0QlSFmzz iHUBrAl/uUU2d5/uRbABzTGQQ6EXeSBSLj4OGb8JV3dr6pVNveLSdjEMY8xEGqWPZjyP t8sEt1km2zyDayaFptS2G22Ra/eor4W/d/lPtVqCEhJFQEDgKNQfhXeij6afaWtMnXEd 74+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XXwpszJC; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a17090634d300b00987e40fd473si4666053ejb.1019.2023.08.01.06.38.01; Tue, 01 Aug 2023 06:38:27 -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=@kernel.org header.s=k20201202 header.b=XXwpszJC; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234180AbjHANaD (ORCPT + 99 others); Tue, 1 Aug 2023 09:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233944AbjHANaC (ORCPT ); Tue, 1 Aug 2023 09:30:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4828E1985 for ; Tue, 1 Aug 2023 06:30:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D30E0615A9 for ; Tue, 1 Aug 2023 13:30:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC3F9C433C8; Tue, 1 Aug 2023 13:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690896600; bh=d9psugM3kdjDEK4P7pIMibyVGTo8lFybTwVf6CPdblw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=XXwpszJCEPVqiP8v9CysPgOgPPrvsW6uoKwE2JwGB/HtJ7zQY0R6Ii7FdJbhkO41/ Y39OYvChkyMWaKTL5Th6blCeP2El+pI1DvIDViK/hsZ0kI7ybDKO+5JoXsCKxeICF2 bpT5PWDrcuCmwPXAW/9sx2KVRwK/J9beyMpc3+b4k3NzbyWXPzoaV13qgSzgpr56Qf MAubHObB7hH+3o615gylObQcDkj/653Yk1iaOCRK2AYZd/0i3RgcXi+UMN/l95AQcn IhSYvR2JDMdKkD1JBNpeqPnA/rP/0XG6FzAYLaZautehPBXtXAzi/39RnBodHdTrln opxdELDfov4vw== Message-ID: <5cab2f28-b0e5-b6ab-d981-28436fb3e742@kernel.org> Date: Tue, 1 Aug 2023 16:29:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH] net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support Content-Language: en-US To: Vladimir Oltean Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, s-vadapalli@ti.com, srk@ti.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230725072338.20789-1-rogerq@kernel.org> <20230801131418.bhcjtflj3iu77mmc@skbuf> <0f18cf9e-9c5b-02dd-b396-729b9fecdfe7@kernel.org> <20230801132844.o56h3bsx7zfwbeu6@skbuf> From: Roger Quadros In-Reply-To: <20230801132844.o56h3bsx7zfwbeu6@skbuf> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 01/08/2023 16:28, Vladimir Oltean wrote: > On Tue, Aug 01, 2023 at 04:19:30PM +0300, Roger Quadros wrote: >>> Also: >>> >>> ../drivers/net/ethernet/ti/am65-cpsw-qos.c:173:6: warning: no previous prototype for function 'am65_cpsw_iet_change_preemptible_tcs' [-Wmissing-prototypes] >>> void am65_cpsw_iet_change_preemptible_tcs(struct am65_cpsw_port *port, u8 preemptible_tcs) >>> ^ >>> ../drivers/net/ethernet/ti/am65-cpsw-qos.c:173:1: note: declare 'static' if the function is not intended to be used outside of this translation unit >>> void am65_cpsw_iet_change_preemptible_tcs(struct am65_cpsw_port *port, u8 preemptible_tcs) >>> ^ >>> static >>> ../drivers/net/ethernet/ti/am65-cpsw-qos.c:179:6: warning: no previous prototype for function 'am65_cpsw_iet_link_state_update' [-Wmissing-prototypes] >>> void am65_cpsw_iet_link_state_update(struct net_device *ndev) >>> ^ >>> ../drivers/net/ethernet/ti/am65-cpsw-qos.c:179:1: note: declare 'static' if the function is not intended to be used outside of this translation unit >>> void am65_cpsw_iet_link_state_update(struct net_device *ndev) >>> ^ >>> static >>> ../drivers/net/ethernet/ti/am65-cpsw-qos.c:699:33: error: redefinition of 'taprio' >>> struct tc_taprio_qopt_offload *taprio = type_data; >>> ^ >>> ../drivers/net/ethernet/ti/am65-cpsw-qos.c:697:33: note: previous definition is here >>> struct tc_taprio_qopt_offload *taprio = type_data; >>> ^ >>> 2 warnings and 1 error generated. >>> make[7]: *** [../scripts/Makefile.build:243: drivers/net/ethernet/ti/am65-cpsw-qos.o] Error 1 >>> make[7]: *** Waiting for unfinished jobs.... >> >> I'm pretty sure there weren't any build errors for me. >> Did you have and resolve conflicts when applying this patch? > > Yup, part of it (the error) is to blame due to an auto-merge (conflict > with 2d800bc500fb ("net/sched: taprio: replace tc_taprio_qopt_offload :: > enable with a "cmd" enum")) which failed to do the right thing in > am65_cpsw_setup_taprio(): > > $ git b4 0f18cf9e-9c5b-02dd-b396-729b9fecdfe7@kernel.org > Looking up https://lore.kernel.org/r/0f18cf9e-9c5b-02dd-b396-729b9fecdfe7%40kernel.org > Grabbing thread from lore.kernel.org/all/0f18cf9e-9c5b-02dd-b396-729b9fecdfe7%40kernel.org/t.mbox.gz > Analyzing 5 messages in the thread > Checking attestation on all messages, may take a moment... > --- > ✓ [PATCH RFC] net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support > --- > ✓ Signed: DKIM/kernel.org > --- > Total patches: 1 > --- > Link: https://lore.kernel.org/r/20230725072338.20789-1-rogerq@kernel.org > Base: not specified > Applying: net: ethernet: ti: am65-cpsw-qos: Add Frame Preemption MAC Merge support > Using index info to reconstruct a base tree... > M drivers/net/ethernet/ti/am65-cpsw-nuss.c > M drivers/net/ethernet/ti/am65-cpsw-qos.c > Falling back to patching base and 3-way merge... > Auto-merging drivers/net/ethernet/ti/am65-cpsw-qos.c > Auto-merging drivers/net/ethernet/ti/am65-cpsw-nuss.c > > But part of it is legit, and I saw it with a W=1 C=1 build. > am65_cpsw_iet_link_state_update() and am65_cpsw_iet_change_preemptible_tcs() > should be static. Got it. I'll resolve the warnings. Thanks! -- cheers, -roger