OSDN Git Service

RDMA/irdma: Fix the type used to declare a bitmap
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 4 Dec 2021 19:51:34 +0000 (20:51 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Dec 2021 23:55:19 +0000 (19:55 -0400)
'bitmapbuf' is really used as a bitmap, so it should be defined as a
'unsigned long *' to be more consistent with the bitmap API.

Link: https://lore.kernel.org/r/574b773fe7ced0cc87f1e1832350b38374815bd4.1638647428.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/pble.h

index e1b3b81..faf71c9 100644 (file)
@@ -69,7 +69,7 @@ struct irdma_add_page_info {
 struct irdma_chunk {
        struct list_head list;
        struct irdma_dma_info dmainfo;
-       void *bitmapbuf;
+       unsigned long *bitmapbuf;
 
        u32 sizeofbitmap;
        u64 size;