Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4266699rwb; Mon, 31 Jul 2023 04:29:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlEEAV3clDTF1blhSWVZ+XcBWTMDvHpw1VoJslBAjBTad7qhCMnYo1B1H+suhtofiB6iuaEd X-Received: by 2002:aa7:d953:0:b0:522:cc6c:e25e with SMTP id l19-20020aa7d953000000b00522cc6ce25emr1433278eds.3.1690802973731; Mon, 31 Jul 2023 04:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690802973; cv=none; d=google.com; s=arc-20160816; b=KfDpG+VKGR5aBDXr+nWBE6TKeR0Gpf9+t7xJHDRAMkKjKxgMy0BCu+HBW3s5PdTKK5 0YDqthWvAR6PT6a9oLoqNjXnBxdw0WRZBQDALH7XpFfkjxF2ip7XX6/rhTyGSpn9TTEr Ao1ODjNpTwPoX6lnAJC8Xn6Rc01LGycMqMxvajrqVur3ltoaGBXlu1gUfG165ZJT20Gf HPvTZIeb88CBprAcLTg3CQ+LKxqIbHSIPaG0jSmFvKHhnPrj0FvGvY3uJ2WgPdqaNJe+ BJabK8z9gaR/6PvfdrOVg11EQVfGPg9egZ655LtRU/TlICcmnVNw6Ww2+JXoPAF1h1Ed bdaA== 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 :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=PNDJgPhDyZZF07yezO62ol3eDMZ2xv3gX7r6Ga4oJL0=; fh=hlY11OEE+fnM7aSDAOzxH9pa7tv2ySCZ2qRDuJy7lHU=; b=L4oiOrJhX3Wn2tmpbKy7hKfe7ZYPixRtB0JjVznXtqDxmC+WjLoEq3qd73omS/Rqb0 W8lFmFsSzpVPD+ImDaq5K72gLh6UuDAX7oxpyYBNIUrbhoRU0ZKI5HJEKl1RiXc6uhpr FyBE0kKZjJ7AAVOvXQBIFuWLSqLus3EUcSMyeaDj7twljv8/mQD0oijeQ86mLVuHJuXm N8joY3OaEFhwIVsZs1Z4Ewid4X2kNmDcYYnn8tLi5vSt3QPpRw5TzAGLPSbOE5Zi/66i YDkYFF2OY4ofM8Afeo15RwvqWdtsVTZldeDJCibSAtLixpp0s/xW8nj6cHHAh/QfsxOf XpiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=daZ7mM9p; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020aa7cd15000000b005221d1d1de5si6100869edw.344.2023.07.31.04.29.07; Mon, 31 Jul 2023 04:29:33 -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=@ti.com header.s=ti-com-17Q1 header.b=daZ7mM9p; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232355AbjGaJpc (ORCPT + 99 others); Mon, 31 Jul 2023 05:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231225AbjGaJpQ (ORCPT ); Mon, 31 Jul 2023 05:45:16 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3301BD3; Mon, 31 Jul 2023 02:44:44 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36V9hmeh015520; Mon, 31 Jul 2023 04:43:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690796628; bh=PNDJgPhDyZZF07yezO62ol3eDMZ2xv3gX7r6Ga4oJL0=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=daZ7mM9pSZxgqPnxeeE2iySGDmOZ94eeIJN6JlOvbfOQulr7fgJ2AJ302a56VzjNM 9yXDV/D4zrCVgleHVHjKz6WKosXnVPas2u+zihhhCPd4C25nicfRDGqHZ5cxd/Hpjv rO2n6EETWGdv8EDx5xI8+wwMgQ45t+PbUEclIs4Q= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36V9hmw2005748 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Jul 2023 04:43:48 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 31 Jul 2023 04:43:48 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 31 Jul 2023 04:43:48 -0500 Received: from [172.24.227.217] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36V9hfHP020585; Mon, 31 Jul 2023 04:43:42 -0500 Message-ID: Date: Mon, 31 Jul 2023 15:13:41 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [EXTERNAL] Re: [PATCH v12 06/10] net: ti: icssg-prueth: Add ICSSG ethernet driver Content-Language: en-US To: Jakub Kicinski , MD Danish Anwar CC: Randy Dunlap , Roger Quadros , Simon Horman , Vignesh Raghavendra , Andrew Lunn , Richard Cochran , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Eric Dumazet , "David S. Miller" , , , , , , , References: <20230727112827.3977534-1-danishanwar@ti.com> <20230727112827.3977534-7-danishanwar@ti.com> <20230728172543.2d5f5660@kernel.org> From: Md Danish Anwar Organization: Texas Instruments In-Reply-To: <20230728172543.2d5f5660@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 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_MED,SPF_HELO_PASS,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 29/07/23 5:55 am, Jakub Kicinski wrote: > On Thu, 27 Jul 2023 16:58:23 +0530 MD Danish Anwar wrote: >> +/* Classifier helpers */ >> +void icssg_class_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac); >> +void icssg_class_set_host_mac_addr(struct regmap *miig_rt, const u8 *mac); >> +void icssg_class_disable(struct regmap *miig_rt, int slice); >> +void icssg_class_default(struct regmap *miig_rt, int slice, bool allmulti); >> +void icssg_ft1_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac_addr); >> + >> +/* Buffer queue helpers */ >> +int icssg_queue_pop(struct prueth *prueth, u8 queue); >> +void icssg_queue_push(struct prueth *prueth, int queue, u16 addr); >> +u32 icssg_queue_level(struct prueth *prueth, int queue); > > If you create the prototypes when the functions are added there will > be less need for __maybe_unused. Compiler only cares about prototypes > existing, not whether actual callers are in place. So no need to use __maybe_unused tags if I create the prototype in the same patch where functions are added. This will significantly reduce the number of __maybe_unused tags. I will try to add the prototypes in the same patch where these functions are added and drop __maybe_unused tags for them. -- Thanks and Regards, Danish.