drm/i915/gvt: Fix check error on opregion.c
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 16 Feb 2017 06:10:01 +0000 (14:10 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Feb 2017 06:56:36 +0000 (14:56 +0800)
commitf655e67ac8d797425abb0404d0878758f3f71c1a
tree5f2778a0c205e5ae7f39cd5c8e85012a8b3239d8
parent4a0b3444da3ce1090d0f894f4e343756a94ab8c3
drm/i915/gvt: Fix check error on opregion.c

As we switched to memremap for opregion, shouldn't use any __iomem
for that, and move to use memcpy instead.

This fixed static check errors for:

  CHECK   drivers/gpu/drm/i915//gvt/opregion.c
  drivers/gpu/drm/i915//gvt/opregion.c:142:31: warning: incorrect type in argument 1 (different address spaces)
  drivers/gpu/drm/i915//gvt/opregion.c:142:31:    expected void *addr
  drivers/gpu/drm/i915//gvt/opregion.c:142:31:    got void [noderef] <asn:2>*opregion_va
  drivers/gpu/drm/i915//gvt/opregion.c:160:35: warning: incorrect type in assignment (different address spaces)
  drivers/gpu/drm/i915//gvt/opregion.c:160:35:    expected void [noderef] <asn:2>*opregion_va
  drivers/gpu/drm/i915//gvt/opregion.c:160:35:    got void *

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/opregion.c