From: Roland Dreier Date: Mon, 1 Jul 2013 21:15:17 +0000 (-0700) Subject: mlx5: Fix parameter type of health_handler_t X-Git-Tag: upstream/snapshot3+hdmi~4705^2~1^4~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63884c90ffa3f73a81b81f169c51c34d2b9cf75e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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] *health Signed-off-by: Roland Dreier --- diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index e47f1e4..f22e441 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); int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db); void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db); -typedef void (*health_handler_t)(struct pci_dev *pdev, void *buf, int size); +typedef void (*health_handler_t)(struct pci_dev *pdev, struct health_buffer __iomem *buf, int size); int mlx5_register_health_report_handler(health_handler_t handler); void mlx5_unregister_health_report_handler(void); const char *mlx5_command_str(int command);