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 5BF2DC43219 for ; Tue, 8 Nov 2022 00:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233122AbiKHAxA (ORCPT ); Mon, 7 Nov 2022 19:53:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbiKHAw6 (ORCPT ); Mon, 7 Nov 2022 19:52:58 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50969252A2; Mon, 7 Nov 2022 16:52:57 -0800 (PST) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N5qMN3GlBzRp4C; Tue, 8 Nov 2022 08:52:48 +0800 (CST) Received: from kwepemm600003.china.huawei.com (7.193.23.202) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 8 Nov 2022 08:52:55 +0800 Received: from [10.67.111.205] (10.67.111.205) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 8 Nov 2022 08:52:54 +0800 Subject: Re: [PATCH bpf v2 4/5] bpf: Add kernel function call support in 32-bit ARM for EABI To: "Russell King (Oracle)" CC: , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20221107092032.178235-1-yangjihong1@huawei.com> <20221107092032.178235-5-yangjihong1@huawei.com> From: Yang Jihong Message-ID: <8469b2d5-276b-9715-cf62-a5a724d438d7@huawei.com> Date: Tue, 8 Nov 2022 08:52:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.111.205] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 2022/11/7 20:33, Russell King (Oracle) wrote: > 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. > Thanks for the suggestion, will change. Thanks, Yang .