Skip to contentSkip to conversation

log: remove unneeded log type declaration

PATCH Applied [email protected] 3 participants 3 messages Jul 6, 2020 – Jul 7, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 log: remove unneeded log type declaration

From: Jerin Jacob <[email protected]>

RTE_LOG_REGISTER macro already declares the the log type. Remove the unneeded log type declaration.

Fixes 9c99878aa1b16de2 ("log: introduce logtype register macro")
---
 drivers/vdpa/mlx5/mlx5_vdpa.c  | 1 -
 lib/librte_graph/graph.c       | 1 -
 lib/librte_rawdev/rte_rawdev.c | 3 ---
 lib/librte_stack/rte_stack.c   | 2 --
 4 files changed, 7 deletions(-)
drivers/vdpa/mlx5/mlx5_vdpa.c +0 -1
index a60fc4ef0..9bb462e95 100644
@@ -48,7 +48,6 @@
 TAILQ_HEAD(mlx5_vdpa_privs, mlx5_vdpa_priv) priv_list =
 					      TAILQ_HEAD_INITIALIZER(priv_list);
 static pthread_mutex_t priv_list_lock = PTHREAD_MUTEX_INITIALIZER;
-int mlx5_vdpa_logtype;
 
 static struct mlx5_vdpa_priv *
 mlx5_vdpa_find_priv_resource_by_vdev(struct rte_vdpa_device *vdev)
lib/librte_graph/graph.c +0 -1
index baa383cd7..7224b00a7 100644
@@ -18,7 +18,6 @@
 static struct graph_head graph_list = STAILQ_HEAD_INITIALIZER(graph_list);
 static rte_spinlock_t graph_lock = RTE_SPINLOCK_INITIALIZER;
 static rte_graph_t graph_id;
-int rte_graph_logtype;
 
 #define GRAPH_ID_CHECK(id) ID_CHECK(id, graph_id)
 
lib/librte_rawdev/rte_rawdev.c +0 -3
index aec61f425..2eb7b3bc3 100644
@@ -34,9 +34,6 @@
 #include "rte_rawdev.h"
 #include "rte_rawdev_pmd.h"
 
-/* dynamic log identifier */
-int librawdev_logtype;
-
 static struct rte_rawdev rte_rawdevices[RTE_RAWDEV_MAX_DEVS];
 
 struct rte_rawdev *rte_rawdevs = rte_rawdevices;
lib/librte_stack/rte_stack.c +0 -2
index e4c0ce131..8a51fba17 100644
@@ -17,8 +17,6 @@
 #include "rte_stack.h"
 #include "stack_pvt.h"
 
-int stack_logtype;
-
 TAILQ_HEAD(rte_stack_list, rte_tailq_entry);
 
 static struct rte_tailq_elem rte_stack_tailq = {
Signature · 1 line
2.27.0
#2 lore raw
Quoted 8 lines · Gage
Quoted 8 lines

Subject: [dpdk-dev] [PATCH] log: remove unneeded log type declaration

From: Jerin Jacob <[email protected]>

RTE_LOG_REGISTER macro already declares the the log type. Remove the unneeded log type declaration.

Quoted 6 lines
Quoted 4 lines
Fixes 9c99878aa1b16de2 ("log: introduce logtype register macro")

Applied, thanks.

Signature · 1 line
David Marchand