From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0C6CE46DF9; Fri, 29 Aug 2025 03:31:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D92840276; Fri, 29 Aug 2025 03:31:36 +0200 (CEST) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by mails.dpdk.org (Postfix) with ESMTP id 48F8D40263 for ; Fri, 29 Aug 2025 03:31:34 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4cCgdW2t5gz2VRL3; Fri, 29 Aug 2025 09:28:31 +0800 (CST) Received: from kwepemk500009.china.huawei.com (unknown [7.202.194.94]) by mail.maildlp.com (Postfix) with ESMTPS id 86E941400DC; Fri, 29 Aug 2025 09:31:31 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by kwepemk500009.china.huawei.com (7.202.194.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Fri, 29 Aug 2025 09:31:31 +0800 Message-ID: <83849498-c22a-44d3-b0ab-fb2887bbf536@huawei.com> Date: Fri, 29 Aug 2025 09:31:30 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dpdk: support quick jump to API definition To: Stephen Hemminger CC: , , References: <20250828024631.30759-1-fengchengwen@huawei.com> <20250828074706.3f1087f8@hermes.local> Content-Language: en-US From: fengchengwen In-Reply-To: <20250828074706.3f1087f8@hermes.local> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: kwepems500002.china.huawei.com (7.221.188.17) To kwepemk500009.china.huawei.com (7.202.194.94) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 8/28/2025 10:47 PM, Stephen Hemminger wrote: > On Thu, 28 Aug 2025 10:46:31 +0800 > Chengwen Feng wrote: > >> Currently, the RTE_EXPORT_INTERNAL_SYMBOL, RTE_EXPORT_SYMBOL and >> RTE_EXPORT_EXPERIMENTAL_SYMBOL are placed at the beginning of APIs, >> but don't end with a semicolon. As a result, some IDEs cannot identify >> the APIs and cannot quickly jump to the definition. >> >> A semicolon is added to the end of above RTE_EXPORT_XXX_SYMBOL in this >> commit. >> >> And also change the gen-version-map.py to ensure it only identifies >> RTE_EXPORT_XXX_SYMBOL that end with a semicolon. >> >> Signed > > Semicolon after macro will cause scripts like checkpatch to complain? No This commit trigger a checkpatch error because the following function add two semicolon. RTE_EXPORT_EXPERIMENTAL_SYMBOL(rte_node_mbuf_dynfield_register, 25.07);; Because the RTE_EXPORT_XXX_SYMBOL(XXX) macro do nothing, and this macro are placed out side of function, it will left one semicolon after pre-process. This is not strictly comply with C stand syntax. In the V2 I will adopt following: 1\ #define RTE_EXPORT_XXX_SYMBOL(XXX) extern int __dummy_unused__ , this definition is comply with C stand syntax. 2\ keep the gen-version-map.py un-touch, because some commit are in-process different branch. Thanks.