From: Jeff Mahoney Subject: Re: [PATCH] i915: fix build error with -Werror Date: Mon, 4 Jul 2016 11:29:17 -0400 Message-ID: References: <4854bbca-e7d0-9b76-89d5-b2a43845a06f@suse.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0737161008==" Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id A1B686E226 for ; Mon, 4 Jul 2016 15:29:27 +0000 (UTC) In-Reply-To: <4854bbca-e7d0-9b76-89d5-b2a43845a06f@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter , Jani Nikula Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0737161008== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xtOarQjO13FDmPr18lAxOiHvfdQT8jKBN" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xtOarQjO13FDmPr18lAxOiHvfdQT8jKBN Content-Type: multipart/mixed; boundary="KXtEP9FLWxuAXM2BrwX1ILpn16ciae6ff" From: Jeff Mahoney To: Daniel Vetter , Jani Nikula Cc: intel-gfx@lists.freedesktop.org Message-ID: Subject: Re: [PATCH] i915: fix build error with -Werror References: <4854bbca-e7d0-9b76-89d5-b2a43845a06f@suse.com> In-Reply-To: <4854bbca-e7d0-9b76-89d5-b2a43845a06f@suse.com> --KXtEP9FLWxuAXM2BrwX1ILpn16ciae6ff Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 7/4/16 10:29 AM, Jeff Mahoney wrote: > This fixes the following build error with -Werror and gcc 6.1: >=20 > drivers/gpu/drm/i915/i915_debugfs.c:2103:6: error: suggest explicit bra= ces to avoid ambiguous 'else' [-Werror=3Dparentheses] Oops. It turns out my build test wasn't using gcc6. This doesn't fix the error. I'll post v2 shortly. -Jeff > Signed-off-by: Jeff Mahoney > --- > drivers/gpu/drm/i915/i915_debugfs.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > --- 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 > =20 > list_for_each_entry(ctx, &dev_priv->context_list, link) > if (ctx !=3D dev_priv->kernel_context) > - for_each_engine(engine, dev_priv) > + for_each_engine(engine, dev_priv) { > i915_dump_lrc_obj(m, ctx, engine); > + } > =20 > mutex_unlock(&dev->struct_mutex); > =20 >=20 --=20 Jeff Mahoney SUSE Labs --KXtEP9FLWxuAXM2BrwX1ILpn16ciae6ff-- --xtOarQjO13FDmPr18lAxOiHvfdQT8jKBN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.19 (Darwin) Comment: GPGTools - http://gpgtools.org iQIcBAEBAgAGBQJXeoDNAAoJEB57S2MheeWyLxkP/2sU8B0YcMiEIptuvqnL5yNG AK7AOHmMA8fDvk+FQz09QEVhJ5CbGBPkQXycT7dfBFZcl+zlHcEvOm1urEhE0weZ xr6SRcpKWELbplOxEFSiKx2HXiE4HCeYP3Gg3j4LImHqXm+iaKOc7izmc/Kjv4Pq Gd5wHONZwAw6xkLC9hm71/SxncZLkmN1vHx806XIDDApi4h1AgPmiqoMxwm9Vc3Y X4oYuRYmHCKiQGuwuUH81IsjEmchR2yIJ8etxglfeoyCBS1Yyjxa3JBkoqUDo051 /MQWOZln5Gcd9bXnUysC7URjIZI3Ovnyo2jPVWK6soVg6a+OEHN7wR4bLMq/qaHz Hn2DY7qRd9p0+CczhRzJy09HxuhlUp+pXkCTv0bOqwIDmNSn3IKtqjLMyZQNMyfF H7c4aIF1ZjpT1LHJUE9Q2L8RsIv9wfpyh/mZ6E4yK1Oy6CccA0Hm5nb20mKNR4PW CDKiC238FXJevBcGJdeOGAqz9Iw9+P6qvpPbBXXTVoLwOaLN6j9XDsNGbK9A2j+V eLK5o6P366CtdNXwICqYU59WqifPsmQp8J5XQQEfswNf9LKlCRNO5NxvtpgBjL26 Tcl+ZHeai+mRsXEIKNaKe+Q90gH2lmSuTonTKRhpmrj2cCYZjOx6oft109cNNoIs TXW3SgK08+RowowCTmgP =iDUx -----END PGP SIGNATURE----- --xtOarQjO13FDmPr18lAxOiHvfdQT8jKBN-- --===============0737161008== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============0737161008==--