]> Git Repo - linux.git/commitdiff
x86/ioperm: Initialize pointer bitmap with NULL rather than 0
authorColin Ian King <[email protected]>
Tue, 21 Jul 2020 10:02:17 +0000 (11:02 +0100)
committerIngo Molnar <[email protected]>
Sun, 26 Jul 2020 17:52:55 +0000 (19:52 +0200)
The pointer bitmap is being initialized with a plain integer 0,
fix this by initializing it with a NULL instead.

Cleans up sparse warning:
arch/x86/xen/enlighten_pv.c:876:27: warning: Using plain integer
as NULL pointer

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
arch/x86/xen/enlighten_pv.c

index c46b9f2e732ff879ec5809d04c8edf03a83da105..2aab43a13a8c38785cf3a2b944abda27ed4a70c7 100644 (file)
@@ -873,7 +873,7 @@ static void xen_load_sp0(unsigned long sp0)
 static void xen_invalidate_io_bitmap(void)
 {
        struct physdev_set_iobitmap iobitmap = {
-               .bitmap = 0,
+               .bitmap = NULL,
                .nr_ports = 0,
        };
 
This page took 0.061081 seconds and 4 git commands to generate.