public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] slimbus: qcom: fix incompatible pointer warning
@ 2017-12-31 14:23 srinivas.kandagatla
  2017-12-31 16:52 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: srinivas.kandagatla @ 2017-12-31 14:23 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: sdharia, linux-arm-msm, alsa-devel, linux-kernel,
	Srinivas Kandagatla

From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

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>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 drivers/slimbus/qcom-ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c
index 35ad70dbfe3a..f51de1277912 100644
--- a/drivers/slimbus/qcom-ctrl.c
+++ b/drivers/slimbus/qcom-ctrl.c
@@ -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;
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] slimbus: qcom: fix incompatible pointer warning
  2017-12-31 14:23 [PATCH] slimbus: qcom: fix incompatible pointer warning srinivas.kandagatla
@ 2017-12-31 16:52 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2017-12-31 16:52 UTC (permalink / raw)
  To: srinivas.kandagatla; +Cc: sdharia, linux-arm-msm, alsa-devel, linux-kernel

On Sun, Dec 31, 2017 at 02:23:11PM +0000, srinivas.kandagatla@linaro.org wrote:
> From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> 
> 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>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

Also reported-by Arnd :(

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-31 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-31 14:23 [PATCH] slimbus: qcom: fix incompatible pointer warning srinivas.kandagatla
2017-12-31 16:52 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox