Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1693231rwb; Mon, 7 Nov 2022 04:51:26 -0800 (PST) X-Google-Smtp-Source: AMsMyM4GIyNMRN1QHoVt1B3GwCc1CdN2PicAIjudBt5hJbIUY2cShuNQw3fPpLxZarShf7oL8hWB X-Received: by 2002:a17:907:a0c7:b0:7ad:d945:553d with SMTP id hw7-20020a170907a0c700b007add945553dmr37495263ejc.95.1667825486383; Mon, 07 Nov 2022 04:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667825486; cv=none; d=google.com; s=arc-20160816; b=IkOLNP0lMrLcGXLE++0SIBo8TpVuzYyB+93iHJ53y65caRJGcjzON3uE5tVG14wweI Il05fTX4/PIIweTIVyaemNo2Xm3xtHdj7ktLRvdOkPwKxMWZMXq6jrQxNXJk5o4Wu+kt vehir9JxMugykF4ksUjebw3PHq59MmG2ApbLU/q+r6Y3ccCisK5TqZkJ/owFVBDVHCa1 34mCq6p9NivjOHw6lT4rH6R2n3RhgqB4PDhVn1lVRd6T1xibZ81dcgt6Saiv45JOJoQX oeEhUJrptiW6zZQlk9lH/gSG7Dn1tmpIfAQOrmw2ywwKD7Rijhgi1nmJpU3lAKOi7NDr RSSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XJWdfHds6cu0a4MTLgis3djdrD+COFTfF+Wy0zLW4R0=; b=d5nzWwczpTHmP5vFJLVejyrgfDZn+KhoElP+ryneLvd0TZSNdVM2BSzzXMbSd88wPw tAOsGBFCedDngDGnY3p9ydtVg5yjBGxiSdSdn9//qqP1MRc0qfFn13EwG/w5wzZWimzx 6c4lBC8fsA08tM1/NcxNsRuliHhA5/wg+bFYmlS9ibAcgAF7M1SEdRe8m+Z8WLwQvh1c VS302w6N3+/41J2JLwK232vAAxxH5yex7y/7EwfdkgcG2AlOEYcKBGxWPEJiZdOgLxLi NqUelSxLtd2GPRcC1L8hnuSWsPVd5Q0ee+VdLa/wtrVWBRhwJ+5pF2LT8u8up2Cj6r3Q WLUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=lJDbHNVa; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rs2-20020a170907036200b007a6384d506csi7188745ejb.643.2022.11.07.04.51.02; Mon, 07 Nov 2022 04:51:26 -0800 (PST) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=lJDbHNVa; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232254AbiKGMee (ORCPT + 93 others); Mon, 7 Nov 2022 07:34:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232279AbiKGMe0 (ORCPT ); Mon, 7 Nov 2022 07:34:26 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA4F0C752; Mon, 7 Nov 2022 04:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XJWdfHds6cu0a4MTLgis3djdrD+COFTfF+Wy0zLW4R0=; b=lJDbHNVaBv7jiewOvtBkS6Pcdp Ka0h5e7/h6sRgeEM2NbmWjo5zwTDPfnEe4U5AAX126ujmtNDdketXBLXb4Ya8cji7qx2n7xmS6/Sl H0xAFNn1qZw1mjEvqJP0pXDRntAARB1ekl0ZBzYEDungU2oGxMQheLcualkzjUOPis2CGC5PGW0aO AlVO2WpmuLQ5tjVhL6tWFaJ1lDpO7WGaaq2zyPbJLxLt8rStoHw0lPswo3B0QIfAXJP0qv+B5sPCw WQeIYv+elK4FQKEy2nooNmpRROtPEoh+Oj4pCdvaFDNEm0KnGRpdk06PCJ0tRZqOmWxzcGtie5S02 FWUf9EdQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35154) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1os1K1-0001u9-Tj; Mon, 07 Nov 2022 12:33:50 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1os1Jv-0003mj-7M; Mon, 07 Nov 2022 12:33:43 +0000 Date: Mon, 7 Nov 2022 12:33:43 +0000 From: "Russell King (Oracle)" To: Yang Jihong Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, illusionist.neo@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, mykolal@fb.com, shuah@kernel.org, benjamin.tissoires@redhat.com, memxor@gmail.com, asavkov@redhat.com, delyank@fb.com, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH bpf v2 4/5] bpf: Add kernel function call support in 32-bit ARM for EABI Message-ID: References: <20221107092032.178235-1-yangjihong1@huawei.com> <20221107092032.178235-5-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221107092032.178235-5-yangjihong1@huawei.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 Mon, Nov 07, 2022 at 05:20:31PM +0800, Yang Jihong wrote: > +bool bpf_jit_supports_kfunc_call(void) > +{ > + return true; It would be far cleaner to make this: return IS_ENABLED(CONFIG_AEABI); So userspace knows that it isn't supported on OABI. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!