net/mlx5_core: Fix static checker warnings around system guid query flow
authorMajd Dibbiny <majd@mellanox.com>
Sun, 7 Jun 2015 12:44:23 +0000 (15:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2015 03:11:17 +0000 (20:11 -0700)
Fix static checker warnings in the flow of system guid query.

Fixes: 707c4602cda6 ('net/mlx5_core: Add new query HCA vport commands')
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fw.c
drivers/net/ethernet/mellanox/mlx5/core/vport.c
include/linux/mlx5/vport.h

index ba87442ef7767126c4dc7cf89b91546ed6232167..9335e5ae18ccee954b4cc08eff41a01871b41b2e 100644 (file)
@@ -35,7 +35,8 @@
 #include <linux/module.h>
 #include "mlx5_core.h"
 
-int mlx5_cmd_query_adapter(struct mlx5_core_dev *dev, u32 *out, int outlen)
+static int mlx5_cmd_query_adapter(struct mlx5_core_dev *dev, u32 *out,
+                                 int outlen)
 {
        u32 in[MLX5_ST_SZ_DW(query_adapter_in)];
 
index 20150ffa8b16583916ea61a53f5242409f77a365..b94177ebcf3a31bfd0455d56bf23cc6ade1f3758 100644 (file)
@@ -307,7 +307,7 @@ ex:
 EXPORT_SYMBOL_GPL(mlx5_query_hca_vport_context);
 
 int mlx5_query_hca_vport_system_image_guid(struct mlx5_core_dev *dev,
-                                          __be64 *sys_image_guid)
+                                          u64 *sys_image_guid)
 {
        struct mlx5_hca_vport_context *rep;
        int err;
index 67882a834efb57058a91665aa2a1aacc1668aeae..967e0fd06e89724d8eacf03442fbf0257a1c6349 100644 (file)
@@ -48,7 +48,7 @@ int mlx5_query_hca_vport_context(struct mlx5_core_dev *dev,
                                 u16 vf_num,
                                 struct mlx5_hca_vport_context *rep);
 int mlx5_query_hca_vport_system_image_guid(struct mlx5_core_dev *dev,
-                                          __be64 *sys_image_guid);
+                                          u64 *sys_image_guid);
 int mlx5_query_hca_vport_node_guid(struct mlx5_core_dev *dev,
                                   u64 *node_guid);