mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
x86/ioperm: Initialize pointer bitmap with NULL rather than 0
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 <colin.king@canonical.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/20200721100217.407975-1-colin.king@canonical.com
This commit is contained in:
parent
2d65685a4a
commit
90fc73928f
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue