aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/dmabuf.c
diff options
context:
space:
mode:
authorAleksei Gimbitskii <aleksei.gimbitskii@intel.com>2019-04-23 15:04:08 +0300
committerZhenyu Wang <zhenyuw@linux.intel.com>2019-04-25 15:32:10 +0800
commit0cf8f58d0a340a2ac744f6e0e3402a89780ecf8b (patch)
treee12f4c946a9676515368c98099f399a4cb65dad0 /drivers/gpu/drm/i915/gvt/dmabuf.c
parentdrm/i915/gvt: Change fb_info->size from pages to bytes (diff)
downloadlinux-dev-0cf8f58d0a340a2ac744f6e0e3402a89780ecf8b.tar.xz
linux-dev-0cf8f58d0a340a2ac744f6e0e3402a89780ecf8b.zip
drm/i915/gvt: Remove typedef and let the enumeration starts from zero
Typedef is not recommended in the Linux kernel.The klocwork static code analyzer takes the enumeration as the full range of intel_gvt_gtt_type_t. But the intel_gvt_gtt_type_t will never be used in full range. For example, the GTT_TYPE_INVALID will never be used as an index of an array. Remove the typedef and let the enumeration starts from zero to pass klocwork analysis. This patch fixed the critial issues #483, #551, #665 reported by klockwork. v3: - Remove the typedef and let the enumeration starts from zero. Signed-off-by: Aleksei Gimbitskii <aleksei.gimbitskii@intel.com> Cc: Zhenyu Wang <zhenyuw@linux.intel.com> Cc: Zhi Wang <zhi.a.wang@intel.com> CC: Colin Xu <colin.xu@intel.com> Reviewed-by: Colin Xu <colin.xu@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/dmabuf.c')
0 files changed, 0 insertions, 0 deletions