From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3D71171A9 for ; Thu, 20 Jul 2023 14:54:40 +0000 (UTC) X-Greylist: delayed 363 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 20 Jul 2023 07:54:36 PDT Received: from out-18.mta1.migadu.com (out-18.mta1.migadu.com [95.215.58.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0A922704 for ; Thu, 20 Jul 2023 07:54:36 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689864511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PqpxIaHBRk8xxnz7Hdg9ZoxK/nTzDsDxJQBDdoeP+q0=; b=wKkmkI7zWECYryWudv8WwXejFM9fQVXOYPItQC7Vr2+bUrtnphnf/7+MnLeelaJoddxerT G3x/jZXMDwU0LYiaVKPG7MaIONfFPw6eNZmiwlewAH42RXBuzIU7xgQlce228EOuW4bZCL tjLZgZ7MLhEA2s8gn6octroI1IJTY7g= Date: Thu, 20 Jul 2023 15:48:30 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net-next 01/11] tools: ynl-gen: fix enum index in _decode_enum(..) Content-Language: en-US To: "Kubalewski, Arkadiusz" , Jiri Pirko Cc: Jakub Kicinski , Jonathan Lemon , Paolo Abeni , "Olech, Milena" , "Michalik, Michal" , "linux-arm-kernel@lists.infradead.org" , poros , mschmidt , "netdev@vger.kernel.org" , "linux-clk@vger.kernel.org" , Bart Van Assche References: <20230720091903.297066-1-vadim.fedorenko@linux.dev> <20230720091903.297066-2-vadim.fedorenko@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 On 20.07.2023 14:58, Kubalewski, Arkadiusz wrote: >> -----Original Message----- >> From: Jiri Pirko >> Sent: Thursday, July 20, 2023 3:40 PM >> >> Thu, Jul 20, 2023 at 11:18:53AM CEST, vadim.fedorenko@linux.dev wrote: >>> From: Arkadiusz Kubalewski >>> >>> Remove wrong index adjustement, which is leftover from adding >> >> s/adjustement/adjustment/ >> > > Sure will fix, > Although those "tools: ynl" patches were not intended to be a part of dpll > Series, they are being discussed on the other thread: > https://lore.kernel.org/netdev/20230718162225.231775-1-arkadiusz.kubalewski@intel.com/ > > I think Vadim have sent them, because I included them in the branch candidate > for next version, seems was not clear enough on that.. > I think we can skip them for next submission. Yeah, I just realised that these patches have been sent earlier as separate series and are still under review. Once they are committed I'll remove them from DPLL series, but for now they are needed for spec generation of DPLL yaml, so it's good to have them anyway. > Thank you! > Arkadiusz > >> >>> support for sparse enums. >>> enum.entries_by_val() function shall not subtract the start-value, as >>> it is indexed with real enum value. >>> >>> Fixes: c311aaa74ca1 ("tools: ynl: fix enum-as-flags in the generic >>> CLI") >>> Signed-off-by: Arkadiusz Kubalewski >>> Signed-off-by: Vadim Fedorenko >> >> Reviewed-by: Jiri Pirko >