x86/mm/tlb: Define LOADED_MM_SWITCHING with pointer-sized number
authorJann Horn <jannh@google.com>
Thu, 28 Mar 2019 23:09:39 +0000 (00:09 +0100)
committerBorislav Petkov <bp@suse.de>
Fri, 29 Mar 2019 13:55:31 +0000 (14:55 +0100)
commita72a19327b92e09dab0eb9fd2bc83466465cbffb
tree50852cb46b83716fb73875e09e6d5effb4ba0911
parent766460852cfaeca4042e5f3aeb9616b3689147bc
x86/mm/tlb: Define LOADED_MM_SWITCHING with pointer-sized number

sparse complains that LOADED_MM_SWITCHING's definition casts an int to a
pointer:

  arch/x86/mm/tlb.c:409:17: warning: non size-preserving integer to pointer cast

Use a pointer-sized integer constant instead.

Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Sai Praneeth <sai.praneeth.prakhya@intel.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20190328230939.15711-1-jannh@google.com
arch/x86/include/asm/tlbflush.h