From patchwork Mon Feb 10 16:20:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 65696 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4570CA04B3; Mon, 10 Feb 2020 17:20:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B523C1BDF8; Mon, 10 Feb 2020 17:20:43 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 2CC3054AE for ; Mon, 10 Feb 2020 17:20:42 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 8D3D822630; Mon, 10 Feb 2020 11:20:41 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 10 Feb 2020 11:20:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=MHXdxiXqKN gi+kO+YwVDOkKm93aBNIYNT48kHZbnESY=; b=mFhYmLyCmj4mS0HyDGxJVokopL nDVFB+Gq28VGBMEeh8VBJokA+WoKI/EBFAvARzV6cv0RQIxUs9+PfvAxeJPODYgb WvLsJ26N2yh7FaNoqqB1m7mKY0ofcpEVXRIBGlJ6CqWTt+I621110/cZsG4YvAyO WFLv2/rAXl45qYHX8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=MHXdxiXqKNgi+kO+YwVDOkKm93aBNIYNT48kHZbnESY=; b=2UyzmhtQ iLb2Wor/BjySy2M+brbn9jShu3CahZeqLYtLJ9ouVd/hJ7uqEr2RmGqIEDtxkcbp wHsFT7Rg5Cf2g9h0XGOd8Ru6fOiJmg4czdahy7rhV2vhoULPhmxMTtpriicDkyCB b7YMBpxeBSvKZrJpVIxrZGKehm6bpGLRNr1Vv1xwevQ0NOaYnEi1PUsJp19Eiy/9 +bGgOlbq1117GS8dlevAhUUWbPW6NpBk8JggeHYaf+COdGD+TukeKNepJqGK7FEr DMBrfTAlgjVpZVpyusOQ5yofpXTA7Cwy1Rulx5cp9k/6K5ZjCgg+/e0YPnt/XQcB 1NR4cbI5uWT9Lw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedriedugdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E32853280062; Mon, 10 Feb 2020 11:20:40 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: Nicolas Chautru Date: Mon, 10 Feb 2020 17:20:18 +0100 Message-Id: <20200210162032.1177478-2-thomas@monjalon.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210162032.1177478-1-thomas@monjalon.net> References: <20200210162032.1177478-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH 20.05 01/15] app/bbdev: replace constructor syntax with common macro X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" There is a macro RTE_INIT for constructors, which is now used where appropriate for consistency. Signed-off-by: Thomas Monjalon Acked-by: Nic Chautru --- app/test-bbdev/main.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/test-bbdev/main.h b/app/test-bbdev/main.h index 23b4d58a53..836f6d6efd 100644 --- a/app/test-bbdev/main.h +++ b/app/test-bbdev/main.h @@ -104,8 +104,7 @@ void add_test_command(struct test_command *t); .command = RTE_STR(name), \ .callback = test_func_##name, \ }; \ - static void __attribute__((constructor, used)) \ - test_register_##name(void) \ + RTE_INIT(test_register_##name) \ { \ add_test_command(&test_struct_##name); \ }