From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79305ECAAD9 for ; Fri, 26 Aug 2022 05:46:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244908AbiHZFqY (ORCPT ); Fri, 26 Aug 2022 01:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235918AbiHZFqX (ORCPT ); Fri, 26 Aug 2022 01:46:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B536CB2DB0; Thu, 25 Aug 2022 22:46:22 -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 50FFD61A38; Fri, 26 Aug 2022 05:46:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33DB0C433D7; Fri, 26 Aug 2022 05:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661492781; bh=udGFtLq//7LKgp3AoMyDZro1BtpxH7/h8PzFnnMsKWo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JU8COwgB+xfqQz33VATngylnKgiN0DJIsfA50mtBzZtVkJCZTepF9wkSTzghU9ukb LlVFDsnechy5EVg+N/fN9czOsUAO7NQQbAnf97Oi25nugseopzcN2bg8fXXbLXe/0t GxZCPjLIjTsScr/sIdN6OVxNysMpOyUjrjx7Ngb2ccbN8qfVlwm2sYqs7TI+hyDTHv Sv3ezWqXsB4euvkdphky0Br0JpD9+Ilkia4y6ZtcwPu6Z3Gei1dm45Lz5WYolBRpZv C5roCEXsCHzqUFlhSI/Cjts8/z3xryWIaf+j2cMC9e1hs+W7nLk4Lp9mLreRLnFFkg cPShBhQvyBuEQ== Date: Fri, 26 Aug 2022 08:46:14 +0300 From: Jarkko Sakkinen To: Alexei Starovoitov Cc: roberto.sassu@huaweicloud.com, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Jonathan Corbet , David Howells , Steven Rostedt , Ingo Molnar , Paul Moore , James Morris , "Serge E . Hallyn" , Shuah Khan , bpf , "open list:DOCUMENTATION" , keyrings@vger.kernel.org, LSM List , "open list:KERNEL SELFTEST FRAMEWORK" , LKML , Daniel =?iso-8859-1?Q?M=FCller?= , Roberto Sassu , Joanne Koong Subject: Re: [PATCH v12 02/10] btf: Handle dynamic pointer parameter in kfuncs Message-ID: References: <20220818152929.402605-1-roberto.sassu@huaweicloud.com> <20220818152929.402605-3-roberto.sassu@huaweicloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: On Thu, Aug 25, 2022 at 10:16:14PM -0700, Alexei Starovoitov wrote: > On Thu, Aug 25, 2022 at 9:54 PM Jarkko Sakkinen wrote: > > > > > > -static bool is_dynptr_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg, > > > - enum bpf_arg_type arg_type) > > > +bool is_dynptr_reg_valid_init(struct bpf_verifier_env *env, struct bpf_reg_state *reg, > > > + enum bpf_arg_type arg_type) > > > { > > > struct bpf_func_state *state = func(env, reg); > > > int spi = get_spi(reg->off); > > > -- > > > 2.25.1 > > > > > > > Might be niticking but generally I'd consider splitting > > exports as commits of their own. > > -static bool > +bool > > into a separate commit? > > I guess it makes sense for people whose salary depends on > number of commits. > We don't play these games. What kind of argument is that anyway. BR, Jarkko