Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp8069389rdb; Thu, 4 Jan 2024 18:38:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQnrA6t8uuhOIUxRsD4fr7STv3ffYmWtmGXCoS6Kqc9ZTHtBVge4vLbnvzn1aMfFGB+eSQ X-Received: by 2002:a05:651c:2213:b0:2cc:78be:9551 with SMTP id y19-20020a05651c221300b002cc78be9551mr864199ljq.2.1704422314024; Thu, 04 Jan 2024 18:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704422313; cv=none; d=google.com; s=arc-20160816; b=EXZuXF/bksWeFNyCse/rF7IrRdtLX1vyqLpnithkhEj5pw1gvt7M858NxWJLPMz/YD m0PB8dEUuxfXgwIAFVtZvZbXCNjNOyIdjypEClm14tn9cnYT+4cYM8MHDeLmOG35tE3P nMmT9tJliuRY9yZaIRb6UTc2lqhHx4iHX/GNW74HtIPwCfHE0jZkl7kWzUxZQHKAkrye CdagprLSSne2geXhesBqmfe4keE89fJJ/OF1XC/877OPlAClpG5FiPAWcel49bDbH5sF had8YX0Toay9sW7gTn+Gdy+inNPm8jLQy5d7TMvLOpwVSX5Dw9s0mecqPa0iWgEgcNjj zkjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=hhJPu3tNnqxckGttQAIaSboNHKCsm1A0qRCYF/TLTLQ=; fh=9kGED5A1sHySuzgFnffHbtA6EWFiro4XfVGZ2eZklrM=; b=IpEut1qfUPTEC440B6iqWu5s2LFNRo2N+62y2Z6KK8FHU/xQU9avoAKVaVEA7eGlLs BU42Q80ymGVlcCQz1G2mchZt9bxsOkrWW0o5oFUlXy205Ku8q+EhBMByssu5fDYZn6ca FtRpqgPwK0n9ocfZt3ioRv9Y87InI/hrWjEfHLh+HO6B123ZoDWgUoL1LH9VyRCBSRA1 zOT6tIQzunk1PO4Q1DdGpNIsLme5Uh4HLyA/vL5zyQGGDbEWcxtfSI3byxMeGVpqdj5r Qy6xn1+BLP2p8PEp734gXR/ERLATvw9ium1cs6PvpGiD+bW4K7uyz3Qk6i7NLRRb2d9F 0fEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=VXwCp7hq; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=87Glr2Ll; spf=pass (google.com: domain of linux-kernel+bounces-17426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17426-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r13-20020a50aacd000000b00554e134aafesi265227edc.209.2024.01.04.18.38.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 18:38:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@dxuuu.xyz header.s=fm1 header.b=VXwCp7hq; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=87Glr2Ll; spf=pass (google.com: domain of linux-kernel+bounces-17426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17426-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B343B1F21BA1 for ; Fri, 5 Jan 2024 02:38:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16D3C443E; Fri, 5 Jan 2024 02:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dxuuu.xyz header.i=@dxuuu.xyz header.b="VXwCp7hq"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="87Glr2Ll" X-Original-To: linux-kernel@vger.kernel.org Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) (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 9DAE420F4; Fri, 5 Jan 2024 02:38:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dxuuu.xyz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dxuuu.xyz Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 4A5472B00474; Thu, 4 Jan 2024 21:38:06 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 04 Jan 2024 21:38:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dxuuu.xyz; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1704422285; x=1704429485; bh=hhJPu3tNnq xckGttQAIaSboNHKCsm1A0qRCYF/TLTLQ=; b=VXwCp7hqAkbSThJHwvaHtcMONK k7Zbx7LQStUYGpDYxVIB7DZziK1R9H6eFLqamhAL6NMmIB5rjxStP+zT1uOEtTtm lmO+B5RHcvSzLAitr6mr5EhvAJywcsfelYp2Qr6K4D5wFRk/ytVbNEnOVrl9zgvS ui/sPUhKvEY1QlqoOGMeyBz3tuGHLgCQXDRk64IxQ8Vn4/KAawqNmMJHJ2luEhIy 5JswRkn6uaLha9Op5HoMyrdCUnk6FzVvOCkgFY0d6FnZlVz3Ebuoo//NqYeRiVlA h1vxMqOpxe2CKRoSMm1YUyko8tBwsegNiNcR7c4ujYDom3eBhbbyiVf2Sd+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704422285; x=1704429485; bh=hhJPu3tNnqxckGttQAIaSboNHKCs m1A0qRCYF/TLTLQ=; b=87Glr2LldJEIX+FphDwBcyLF9pjPSXtkxx2DELFxgZ9h Kv+Yan/y1ssDandSsWJhDewJg36Xk4MsIpgLXd08Jm6JnCQyzHTx88OUL3zSOLz/ LmNlJP/2ZqfNmMghYmQuW4tNgvEBjovd5KBdzBbZFPwiEEAAj+j/EkwXtyYyWzC9 tmdrcl9bxFK3+sCI4dplPF23HP5T0QT7ZgRmlLVj5s4Iwnepo9rIolQ83zx7zvUE ptVABJbSyD+Br1QWQGQ9m3ztgWnpIpodF1T8TUBya+GhYMIGAJ8WmWmqxNrteng1 WuAKri1h6nqVKWdvw7Ma0M4j0bH4ZfwZnNu8kDKH7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegkedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehttdfstddt tddvnecuhfhrohhmpeffrghnihgvlhcuighuuceougiguhesugiguhhuuhdrgiihiieqne cuggftrfgrthhtvghrnhepvdefkeetuddufeeigedtheefffekuedukeehudffudfffffg geeitdetgfdvhfdvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugiguhesugiguhhuuhdrgiihii X-ME-Proxy: Feedback-ID: i6a694271:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Jan 2024 21:38:00 -0500 (EST) Date: Thu, 4 Jan 2024 19:37:58 -0700 From: Daniel Xu To: Jiri Olsa Cc: benjamin.tissoires@redhat.com, hawk@kernel.org, edumazet@google.com, alexandre.torgue@foss.st.com, ebiggers@kernel.org, tj@kernel.org, rostedt@goodmis.org, shuah@kernel.org, martin.lau@linux.dev, ast@kernel.org, fw@strlen.de, kuba@kernel.org, pablo@netfilter.org, jikos@kernel.org, john.fastabend@gmail.com, mcoquelin.stm32@gmail.com, mhiramat@kernel.org, yonghong.song@linux.dev, Herbert Xu , dsahern@kernel.org, hannes@cmpxchg.org, lizefan.x@bytedance.com, pabeni@redhat.com, steffen.klassert@secunet.com, daniel@iogearbox.net, tytso@mit.edu, andrii@kernel.org, davem@davemloft.net, kadlec@netfilter.org, song@kernel.org, alexei.starovoitov@gmail.com, quentin@isovalent.com, alan.maguire@oracle.com, memxor@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, mathieu.desnoyers@efficios.com, mykolal@fb.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, fsverity@lists.linux.dev, bpf@vger.kernel.org, cgroups@vger.kernel.org, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, linux-kselftest@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH bpf-next 2/2] bpf: treewide: Annotate BPF kfuncs in BTF Message-ID: References: <68d5598e5708dfe3370406cd5c946565ca4b50f1.1704324602.git.dxu@dxuuu.xyz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jan 04, 2024 at 06:17:50PM -0700, Daniel Xu wrote: [...] > > > > also given that we can have modules calling register_btf_kfunc_id_set, > > should we just return error instead of the warn? > > It looks like quite a few registrations go through late_initcall(), > in which error codes are thrown away. I'm looking at > init/main.c:do_initcall_level: > > for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++) > do_one_initcall(initcall_from_entry(fn)); > > Higher level question: if out of tree module does not follow convention, > it would still make sense to WARN(), right? Ah, I got what you meant now. I'd say returning error makes sense but WARN() is also useful. I'll send v2 with both. [...]