public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] i915: fix build error with -Werror
@ 2016-07-04 14:29 Jeff Mahoney
  2016-07-04 15:29 ` Jeff Mahoney
  2016-07-04 15:30 ` [PATCH v2] " Jeff Mahoney
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Mahoney @ 2016-07-04 14:29 UTC (permalink / raw)
  To: Daniel Vetter, Jani Nikula; +Cc: intel-gfx

This fixes the following build error with -Werror and gcc 6.1:

drivers/gpu/drm/i915/i915_debugfs.c:2103:6: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=parentheses]

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
 drivers/gpu/drm/i915/i915_debugfs.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2101,8 +2101,9 @@ static int i915_dump_lrc(struct seq_file
 
 	list_for_each_entry(ctx, &dev_priv->context_list, link)
 		if (ctx != dev_priv->kernel_context)
-			for_each_engine(engine, dev_priv)
+			for_each_engine(engine, dev_priv) {
 				i915_dump_lrc_obj(m, ctx, engine);
+			}
 
 	mutex_unlock(&dev->struct_mutex);
 

-- 
Jeff Mahoney
SUSE Labs
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-19 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-04 14:29 [PATCH] i915: fix build error with -Werror Jeff Mahoney
2016-07-04 15:29 ` Jeff Mahoney
2016-07-04 15:30 ` [PATCH v2] " Jeff Mahoney
2016-07-19  7:05   ` Daniel Vetter
2016-07-19 14:18     ` Dave Gordon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox