From: Jani Nikula <jani.nikula@linux.intel.com>
To: Damien Lespiau <damien.lespiau@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915: Move default: to the end of the switch
Date: Wed, 05 Jun 2013 14:28:50 +0300 [thread overview]
Message-ID: <87y5aolrt9.fsf@intel.com> (raw)
In-Reply-To: <1370430101-4764-1-git-send-email-damien.lespiau@intel.com>
On Wed, 05 Jun 2013, Damien Lespiau <damien.lespiau@intel.com> wrote:
> As it's usual to do, don't leave it in the middle of valid cases.
>
> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
> ---
> drivers/gpu/drm/i915/i915_irq.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index 63996aa..a8ef086 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -1484,14 +1484,14 @@ static void i915_get_extra_instdone(struct drm_device *dev,
> instdone[0] = I915_READ(INSTDONE_I965);
> instdone[1] = I915_READ(INSTDONE1);
> break;
> - default:
> - WARN_ONCE(1, "Unsupported platform\n");
This is a functional change because of the follow through here. The
commit message should reflect this.
BR,
Jani.
> case 7:
> instdone[0] = I915_READ(GEN7_INSTDONE_1);
> instdone[1] = I915_READ(GEN7_SC_INSTDONE);
> instdone[2] = I915_READ(GEN7_SAMPLER_INSTDONE);
> instdone[3] = I915_READ(GEN7_ROW_INSTDONE);
> break;
> + default:
> + WARN_ONCE(1, "Unsupported platform\n");
> }
> }
>
> --
> 1.8.1.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
next prev parent reply other threads:[~2013-06-05 11:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 11:01 [PATCH 1/2] drm/i915: Move default: to the end of the switch Damien Lespiau
2013-06-05 11:01 ` [PATCH 2/2] drm/i915: Fix 'port' typo in comment Damien Lespiau
2013-06-05 11:28 ` Jani Nikula [this message]
2013-06-05 12:36 ` [PATCH 1/2] drm/i915: Move default: to the end of the switch Damien Lespiau
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=87y5aolrt9.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=damien.lespiau@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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: link
Be 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.