Skip to content

Commit 4f6543f

Browse files
committed
crypto: marvel/cesa - Fix tdma descriptor on 64-bit
The patch that added src_dma/dst_dma to struct mv_cesa_tdma_desc is broken on 64-bit systems as the size of the descriptor has been changed. This patch fixes it by using u32 instead of dma_addr_t. Fixes: e62291c ("crypto: marvell/cesa - Fix sparse warnings") Cc: <[email protected]> Reported-by: Sven Auhagen <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 3828119 commit 4f6543f

File tree

1 file changed

+2
-2
lines changed
  • drivers/crypto/marvell/cesa

1 file changed

+2
-2
lines changed

drivers/crypto/marvell/cesa/cesa.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,11 @@ struct mv_cesa_tdma_desc {
300300
__le32 byte_cnt;
301301
union {
302302
__le32 src;
303-
dma_addr_t src_dma;
303+
u32 src_dma;
304304
};
305305
union {
306306
__le32 dst;
307-
dma_addr_t dst_dma;
307+
u32 dst_dma;
308308
};
309309
__le32 next_dma;
310310

0 commit comments

Comments
 (0)