x86/fpu/xsave: Keep __user annotation in casts
authorMathias Krause <minipli@googlemail.com>
Sun, 2 Sep 2012 21:31:44 +0000 (23:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 5 Sep 2012 08:52:25 +0000 (10:52 +0200)
commit5c7d03e99cb1ed449328ed9fba0c632944d39e7e
treed70916626c504cc0fb005b11cb1951277a81a1c4
parent04d695a6828bca54d53305246545cd1f8a841ac6
x86/fpu/xsave: Keep __user annotation in casts

Don't remove the __user annotation of the fpstate pointer, but
drop the superfluous void * cast instead.

This fixes the following sparse warnings:

  xsave.c:135:15: warning: cast removes address space of expression
  xsave.c:135:15: warning: incorrect type in argument 1 (different address spaces)
  xsave.c:135:15:    expected void const volatile [noderef] <asn:1>*<noident>
  [...]

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1346621506-30857-6-git-send-email-minipli@googlemail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/xsave.c