]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mpx: Use compatible types in comparison to fix sparse error
authorTobias Klauser <tklauser@distanz.ch>
Thu, 12 Jan 2017 15:53:11 +0000 (16:53 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 14 Jan 2017 08:32:06 +0000 (09:32 +0100)
commitfa27b282b8f2b6768ee6554822b92510e0fa6716
treeb5a17e5faf2e3a989467d1ff631021293f5fbbe7
parentc9655b5cfc80136cc84ec6b9a8a3a9ba132650ae
x86/mpx: Use compatible types in comparison to fix sparse error

info->si_addr is of type void __user *, so it should be compared against
something from the same address space.

This fixes the following sparse error:

  arch/x86/mm/mpx.c:296:27: error: incompatible types in comparison expression (different address spaces)

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/mpx.c