* [PATCH][next] x86/ioperm: initialize pointer bitmap with NULL rather than 0
@ 2020-07-21 10:02 Colin King
2020-07-21 15:26 ` Jürgen Groß
2020-07-26 17:58 ` [tip: x86/cleanups] x86/ioperm: Initialize " tip-bot2 for Colin Ian King
0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2020-07-21 10:02 UTC (permalink / raw)
To: Boris Ostrovsky, Juergen Gross, Stefano Stabellini,
Thomas Gleixner, Ingo Molnar, Borislav Petkov, x86,
H . Peter Anvin, xen-devel
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
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>
---
arch/x86/xen/enlighten_pv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
index c46b9f2e732f..2aab43a13a8c 100644
--- a/arch/x86/xen/enlighten_pv.c
+++ b/arch/x86/xen/enlighten_pv.c
@@ -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,
};
--
2.27.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH][next] x86/ioperm: initialize pointer bitmap with NULL rather than 0
2020-07-21 10:02 [PATCH][next] x86/ioperm: initialize pointer bitmap with NULL rather than 0 Colin King
@ 2020-07-21 15:26 ` Jürgen Groß
2020-07-26 17:58 ` [tip: x86/cleanups] x86/ioperm: Initialize " tip-bot2 for Colin Ian King
1 sibling, 0 replies; 3+ messages in thread
From: Jürgen Groß @ 2020-07-21 15:26 UTC (permalink / raw)
To: Colin King, Boris Ostrovsky, Stefano Stabellini, Thomas Gleixner,
Ingo Molnar, Borislav Petkov, x86, H . Peter Anvin, xen-devel
Cc: kernel-janitors, linux-kernel
On 21.07.20 12:02, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> 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>
Reviewed-by: Juergen Gross <jgross@suse.com>
Juergen
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: x86/cleanups] x86/ioperm: Initialize pointer bitmap with NULL rather than 0
2020-07-21 10:02 [PATCH][next] x86/ioperm: initialize pointer bitmap with NULL rather than 0 Colin King
2020-07-21 15:26 ` Jürgen Groß
@ 2020-07-26 17:58 ` tip-bot2 for Colin Ian King
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Colin Ian King @ 2020-07-26 17:58 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Colin Ian King, Ingo Molnar, Juergen Gross, x86, LKML
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 90fc73928fec2f62bbee1476781754c7392a7b61
Gitweb: https://git.kernel.org/tip/90fc73928fec2f62bbee1476781754c7392a7b61
Author: Colin Ian King <colin.king@canonical.com>
AuthorDate: Tue, 21 Jul 2020 11:02:17 +01:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Sun, 26 Jul 2020 19:52:55 +02: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
---
arch/x86/xen/enlighten_pv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
index c46b9f2..2aab43a 100644
--- a/arch/x86/xen/enlighten_pv.c
+++ b/arch/x86/xen/enlighten_pv.c
@@ -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,
};
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-26 17:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21 10:02 [PATCH][next] x86/ioperm: initialize pointer bitmap with NULL rather than 0 Colin King
2020-07-21 15:26 ` Jürgen Groß
2020-07-26 17:58 ` [tip: x86/cleanups] x86/ioperm: Initialize " tip-bot2 for Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).