From: Dan Carpenter <dan.carpenter@oracle.com> To: Daniel Vetter <daniel.vetter@intel.com> Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kernel-janitors@vger.kernel.org, Yulei Zhang <yulei.zhang@intel.com>, Zhi Wang <zhi.a.wang@intel.com> Subject: [patch] drm/i915/gvt: cleanup a type issue in submit_context() Date: Fri, 21 Oct 2016 08:06:01 +0000 [thread overview] Message-ID: <20161021080601.GA28738@elgon.mountain> (raw) submit_context() should return negative error codes and zero on success but by mistake we made it a bool. I've changed it to int. Also I made it static because this isn't referenced in any other files. This doesn't affect runtime because the return is eventually propogated to elsp_mmio_write() where it is ignored. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c index c50a3d1a5131..bc69ba1842ea 100644 --- a/drivers/gpu/drm/i915/gvt/execlist.c +++ b/drivers/gpu/drm/i915/gvt/execlist.c @@ -616,7 +616,7 @@ static int prepare_mm(struct intel_vgpu_workload *workload) (list_empty(q) ? NULL : container_of(q->prev, \ struct intel_vgpu_workload, list)) -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) {
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com> To: Daniel Vetter <daniel.vetter@intel.com> Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kernel-janitors@vger.kernel.org, Yulei Zhang <yulei.zhang@intel.com>, Zhi Wang <zhi.a.wang@intel.com> Subject: [patch] drm/i915/gvt: cleanup a type issue in submit_context() Date: Fri, 21 Oct 2016 11:06:01 +0300 [thread overview] Message-ID: <20161021080601.GA28738@elgon.mountain> (raw) submit_context() should return negative error codes and zero on success but by mistake we made it a bool. I've changed it to int. Also I made it static because this isn't referenced in any other files. This doesn't affect runtime because the return is eventually propogated to elsp_mmio_write() where it is ignored. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c index c50a3d1a5131..bc69ba1842ea 100644 --- a/drivers/gpu/drm/i915/gvt/execlist.c +++ b/drivers/gpu/drm/i915/gvt/execlist.c @@ -616,7 +616,7 @@ static int prepare_mm(struct intel_vgpu_workload *workload) (list_empty(q) ? NULL : container_of(q->prev, \ struct intel_vgpu_workload, list)) -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) { _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2016-10-21 8:06 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-10-21 8:06 Dan Carpenter [this message] 2016-10-21 8:06 ` [patch] drm/i915/gvt: cleanup a type issue in submit_context() Dan Carpenter 2016-10-21 8:27 ` Zhenyu Wang 2016-10-21 8:27 ` Zhenyu Wang 2016-10-21 10:27 ` Dan Carpenter 2016-10-21 10:27 ` Dan Carpenter 2016-10-21 12:27 ` Zhenyu Wang 2016-10-21 12:27 ` Zhenyu Wang 2016-10-21 8:33 ` [Intel-gfx] " Chris Wilson 2016-10-21 8:33 ` Chris Wilson
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20161021080601.GA28738@elgon.mountain \ --to=dan.carpenter@oracle.com \ --cc=daniel.vetter@intel.com \ --cc=dri-devel@lists.freedesktop.org \ --cc=intel-gfx@lists.freedesktop.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=yulei.zhang@intel.com \ --cc=zhi.a.wang@intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.