]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915/gvt: fix spare warnings on odd constant _Bool cast
authorDu, Changbin <changbin.du@intel.com>
Thu, 20 Oct 2016 06:08:48 +0000 (14:08 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:31:36 +0000 (17:31 +0800)
The function return values should has type int if it return
a integer value.

Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/execlist.c
drivers/gpu/drm/i915/gvt/gtt.c

index d251ca5d173c349478efe352581b053795a45e00..c1f6019d889572938f1019f78078654f41958d98 100644 (file)
@@ -623,7 +623,7 @@ static int prepare_mm(struct intel_vgpu_workload *workload)
        (list_empty(q) ? NULL : container_of(q->prev, \
        struct intel_vgpu_workload, list))
 
-static bool submit_context(struct intel_vgpu *vgpu, int ring_id,
+static int submit_context(struct intel_vgpu *vgpu, int ring_id,
                struct execlist_ctx_descriptor_format *desc,
                bool emulate_schedule_in)
 {
index d3230bea7e41b2667ba3970fda06206f42f3702c..ca157207079255b86790e4d7200f2b405333e787 100644 (file)
@@ -1921,7 +1921,7 @@ int intel_vgpu_emulate_gtt_mmio_write(struct intel_vgpu *vgpu, unsigned int off,
        return ret;
 }
 
-static bool create_scratch_page(struct intel_vgpu *vgpu)
+static int create_scratch_page(struct intel_vgpu *vgpu)
 {
        struct intel_vgpu_gtt *gtt = &vgpu->gtt;
        void *p;