diff options
author | Roland Dreier <roland@purestorage.com> | 2013-07-01 17:15:17 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-07-08 13:32:32 -0400 |
commit | 63884c90ffa3f73a81b81f169c51c34d2b9cf75e (patch) | |
tree | 2d722bbd6546595073ad0b4cb3fb4ab0b6b40f22 /include/linux/mlx5 | |
parent | e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c (diff) |
mlx5: Fix parameter type of health_handler_t
This deals with the sparse warning:
drivers/net/ethernet/mellanox/mlx5/core/health.c:94:54: warning: incorrect type in argument 2 (different address spaces)
drivers/net/ethernet/mellanox/mlx5/core/health.c:94:54: expected void *buf
drivers/net/ethernet/mellanox/mlx5/core/health.c:94:54: got struct health_buffer [noderef] <asn:2>*health
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index e47f1e4c9b03..f22e4419839b 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
@@ -729,7 +729,7 @@ void mlx5_cq_debugfs_cleanup(struct mlx5_core_dev *dev); | |||
729 | int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db); | 729 | int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db); |
730 | void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db); | 730 | void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db); |
731 | 731 | ||
732 | typedef void (*health_handler_t)(struct pci_dev *pdev, void *buf, int size); | 732 | typedef void (*health_handler_t)(struct pci_dev *pdev, struct health_buffer __iomem *buf, int size); |
733 | int mlx5_register_health_report_handler(health_handler_t handler); | 733 | int mlx5_register_health_report_handler(health_handler_t handler); |
734 | void mlx5_unregister_health_report_handler(void); | 734 | void mlx5_unregister_health_report_handler(void); |
735 | const char *mlx5_command_str(int command); | 735 | const char *mlx5_command_str(int command); |