]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
net: wwan: iosm: fix dma_alloc_coherent incompatible pointer type
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Thu, 24 Nov 2022 10:38:03 +0000 (16:08 +0530)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 13:02:49 +0000 (14:02 +0100)
[ Upstream commit 4a99e3c8ed888577b947cbed97d88c9706896105 ]

Fix build error reported on armhf while preparing 6.1-rc5
for Debian.

iosm_ipc_protocol.c:244:36: error: passing argument 3 of
'dma_alloc_coherent' from incompatible pointer type.

Change phy_ap_shm type from phys_addr_t to dma_addr_t.

Fixes: faed4c6f6f48 ("net: iosm: shared memory protocol")
Reported-by: Bonaccorso Salvatore <carnil@debian.org>
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 766086ea8ca7c866b276bebde7abf9c711462c81)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/net/wwan/iosm/iosm_ipc_protocol.h

index 9b3a6d86ece7a53f9ef05c84771f26802970115e..289397c4ea6ce011a0b8207f68e13af7ae2f5632 100644 (file)
@@ -122,7 +122,7 @@ struct iosm_protocol {
        struct iosm_imem *imem;
        struct ipc_rsp *rsp_ring[IPC_MEM_MSG_ENTRIES];
        struct device *dev;
-       phys_addr_t phy_ap_shm;
+       dma_addr_t phy_ap_shm;
        u32 old_msg_tail;
 };