From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7290AA04B3; Mon, 10 Feb 2020 17:21:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E29435F13; Mon, 10 Feb 2020 17:20:51 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 956815F13 for ; Mon, 10 Feb 2020 17:20:50 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 302F722661; Mon, 10 Feb 2020 11:20:50 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 10 Feb 2020 11:20:50 -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=v+d7k9B9mU HBxb4vXvohzrVkH0Dh+2DNXiGrfKMe2O4=; b=fipNC8ejxGZH8WB13TGQb9tV4K /Ef18bK7qHFQeznt04acfcgx7wwJzzMhlqvUC5VGIyXtHDWEpz0jYlWxBOQAVbGu 1EHrj5SXOiEIWJ+/Zrdb9m1KuqDBBjUK68EZ4Xr/iVXmnX3YxjtS+dh5ENB2A97R Sug7Zna4CiUVSc3Xw= 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=v+d7k9B9mUHBxb4vXvohzrVkH0Dh+2DNXiGrfKMe2O4=; b=klhm2rUy Gbo1ZoBHLbcvM3Yy4XCkFR2SZINFy/GjE0BYX5RaMZxj9IPUPf4kOAbHmPExFMPZ azvo+tMaeXcPUy8Qf3VTf1qMfT+VUbzk4MKZXPxPfQorhSsteVq888T9LfuX+zwl X0EYjtea+6aX+bYpYW6C6K1D2M6H8HAtitw1Ym88b+JELaPERLSBpoacK4YxJblk t8df8Fs0CmleHDE7kYloib+0JB40BV7cWEDyB35qd22e3371d6zC3vMKBBqlsTwz 4FAdFZduRGLW65twBvZDNRHKDMy9AKq6Rfi/UK2iZCfggIMl9v4n2LRDWvSymz7u g0O9e+nWd2QtZg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedriedugdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghr 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 7A856328005E; Mon, 10 Feb 2020 11:20:49 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko Date: Mon, 10 Feb 2020 17:20:19 +0100 Message-Id: <20200210162032.1177478-3-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 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 20.05 02/15] net/mlx5: replace destructor 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_FINI for destructors, which is now used where appropriate for consistency. The destructor function mlx5_pmd_socket_uninit does not need to be declared separately in mlx5.h. Signed-off-by: Thomas Monjalon --- drivers/net/mlx5/mlx5.h | 1 - drivers/net/mlx5/mlx5_socket.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/mlx5/mlx5.h b/drivers/net/mlx5/mlx5.h index d7c519bae0..2affcd2ba3 100644 --- a/drivers/net/mlx5/mlx5.h +++ b/drivers/net/mlx5/mlx5.h @@ -764,7 +764,6 @@ void mlx5_mp_uninit_secondary(void); /* mlx5_socket.c */ int mlx5_pmd_socket_init(void); -void mlx5_pmd_socket_uninit(void); /* mlx5_flow_meter.c */ diff --git a/drivers/net/mlx5/mlx5_socket.c b/drivers/net/mlx5/mlx5_socket.c index cf2b433c00..a79896cb33 100644 --- a/drivers/net/mlx5/mlx5_socket.c +++ b/drivers/net/mlx5/mlx5_socket.c @@ -218,8 +218,7 @@ mlx5_pmd_socket_init(void) /** * Un-Initialize the pmd socket */ -void __attribute__((destructor)) -mlx5_pmd_socket_uninit(void) +RTE_FINI(mlx5_pmd_socket_uninit) { if (!server_socket) return; -- 2.25.0