]> git.baikalelectronics.ru Git - kernel.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)
commit2898b88b1c86709fda770b6018e19a20396543c3
tree0f370f8c75f201a358e067d5876f7ae621d1303a
parent2926685f2d90d9d638d5a38a8a90b19f3567cea0
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