From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932426AbcFHArw (ORCPT ); Tue, 7 Jun 2016 20:47:52 -0400 Received: from smtprelay0060.hostedemail.com ([216.40.44.60]:58734 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932346AbcFHAru (ORCPT ); Tue, 7 Jun 2016 20:47:50 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::,RULES_HIT:41:152:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1381:1437:1515:1516:1518:1534:1540:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2902:3138:3139:3140:3141:3142:3350:3622:3866:3867:3870:3874:4321:5007:6119:6120:7901:7903:8828:10004:10400:10848:11026:11232:11658:11783:11889:11914:12043:12517:12519:12740:13069:13311:13357:13894:14180:14659:14721:21080:21433,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: moon78_7e6c95edd6541 X-Filterd-Recvd-Size: 1562 Message-ID: <1465346866.25087.45.camel@perches.com> Subject: Re: small patch to avoid warning in gcc 6 From: Joe Perches To: Reinoud Koornstra , linux-kernel@vger.kernel.org Date: Tue, 07 Jun 2016 17:47:46 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-06-07 at 18:41 -0600, Reinoud Koornstra wrote: > Hello Everybody, > > A small patch that doesn't really do anything other than getting rid > of a warning in gcc 6.1.0. > > drivers/gpu/drm/i915/i915_debugfs.c: In function ‘i915_dump_lrc’: > drivers/gpu/drm/i915/i915_debugfs.c:2060:6: warning: suggest explicit > braces to avoid ambiguous ‘else’ [-Wparentheses] >    if (ctx != dev_priv->kernel_context) >       ^ Likely there should be 2 pairs of braces added: list_for_each_entry(ctx, &dev_priv->context_list, link) { if (ctx != dev_priv->kernel_context) {                         for_each_ring(ring, dev_priv, i)                                 i915_dump_lrc_obj(m, ctx, ring); } }