]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915/gvt: fix bad 32 bit shift in gtt
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Thu, 20 Oct 2016 22:05:57 +0000 (18:05 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 25 Oct 2016 02:35:54 +0000 (10:35 +0800)
commit31f09cb79e797797bc745d98f93ac50b2cbda9e6
tree0f370f8c75f201a358e067d5876f7ae621d1303a
parent946260e5fb60fcf3a4fbe77840280b5191300564
drm/i915/gvt: fix bad 32 bit shift in gtt

Since ioread32 returns a 32-bit value, it is impossible to left-shift
this value by 32 bits (it produces a compilation error). Casting the
return value of ioread32 fix this issue.

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c