Skip to content

Commit

Permalink
slimbus: qcom: fix incompatible pointer warning
Browse files Browse the repository at this point in the history
One of the pointer passed to dmam_alloc_coherent seems to be
phys_addr_t * instead of dma_addr_t *. This address will be
used by dma apis, so change this to proper type.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Srinivas-Kandagatla authored and gregkh committed Dec 31, 2017
1 parent 0b598e4 commit db80985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/slimbus/qcom-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

struct slim_ctrl_buf {
void *base;
phys_addr_t phy;
dma_addr_t phy;
spinlock_t lock;
int head;
int tail;
Expand Down

0 comments on commit db80985

Please sign in to comment.