[ofa-general] ***SPAM*** [PATCH] mlx4/profile.c: fix warning res_name defined but not used
Alexander Beregalov
a.beregalov at gmail.com
Thu Oct 23 16:32:55 PDT 2008
Signed-off-by: Alexander Beregalov <a.beregalov at gmail.com>
---
drivers/net/mlx4/profile.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/mlx4/profile.c b/drivers/net/mlx4/profile.c
index 9ca42b2..ec9383d 100644
--- a/drivers/net/mlx4/profile.c
+++ b/drivers/net/mlx4/profile.c
@@ -52,6 +52,7 @@ enum {
MLX4_RES_NUM
};
+#ifdef CONFIG_MLX4_DEBUG
static const char *res_name[] = {
[MLX4_RES_QP] = "QP",
[MLX4_RES_RDMARC] = "RDMARC",
@@ -65,6 +66,7 @@ static const char *res_name[] = {
[MLX4_RES_MTT] = "MTT",
[MLX4_RES_MCG] = "MCG",
};
+#endif
u64 mlx4_make_profile(struct mlx4_dev *dev,
struct mlx4_profile *request,
More information about the general
mailing list