Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756170AbbLGQsP (ORCPT ); Mon, 7 Dec 2015 11:48:15 -0500 Received: from mail-bl2on0068.outbound.protection.outlook.com ([65.55.169.68]:46790 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756004AbbLGQsL (ORCPT ); Mon, 7 Dec 2015 11:48:11 -0500 From: "Deucher, Alexander" To: "'Borislav Petkov'" , "Koenig, Christian" CC: lkml Subject: RE: radeon -Wmaybe-uninitialized crap Thread-Topic: radeon -Wmaybe-uninitialized crap Thread-Index: AQHRMM0eowtCK60x30K6pEipyq/Be56/nOAg Date: Mon, 7 Dec 2015 16:15:22 +0000 Message-ID: References: <20151207085556.GA22248@pd.tnic> In-Reply-To: <20151207085556.GA22248@pd.tnic> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Deucher@amd.com; x-originating-ip: [165.204.77.1] x-microsoft-exchange-diagnostics: 1;SN1PR12MB0143;5:GdqByshOJqWZEBsaNI32VM9TWk7FblgO4j3FlSRbrqdF5kXEA/UOJ+9Ilz8IqgWrSrhTSGR11rSQMqKrUJaP8QxN5OJ8HW+KbGh9zODddJ3EaFHDmbVrQqL7ZEOnThDRNo0yGXTg381lvGEAlxc5NA==;24:GqGTKF76jkzsB/pUw24wmX6qaUz6ItqbibuYvr3Z1kNBELN2k1Aoi6VpV/OPaDUn3ucl0N/XvhbM8L0HZ09sGqTZHt/3D0NRoSraFs+1lmk=;20:Z+FqzEd8m5352ZSOcJ+bbxOTp8IP0MzlCbUsW+WNsPTus60nMTenuofwELl4ww0PgdWgIyEMLETYytDzDh1fi8FbNgLV4l4aW1QL164YkXqgFEqw3BCPofVxOQ1p1y0jWrXOYuev3vwlXsQcFOkKRwDbKpF29d4q6AZWwSvvivDRRBzCnXdrV96695VqYykJ7H6p762F1flBossI0s+FYT47izCMiGH/iELz5Jl0nZqJQM35MSY4vF+DQ1yEVA9l x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0143; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:SN1PR12MB0143;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0143; x-forefront-prvs: 078310077C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(199003)(377454003)(13464003)(189002)(86362001)(5001960100002)(74316001)(3846002)(92566002)(66066001)(97736004)(99286002)(5004730100002)(54356999)(50986999)(586003)(5001770100001)(1220700001)(81156007)(10400500002)(76176999)(102836003)(19580395003)(106356001)(105586002)(11100500001)(106116001)(1096002)(19580405001)(76576001)(5008740100001)(189998001)(33656002)(87936001)(6116002)(5003600100002)(40100003)(101416001)(2900100001)(2950100001)(122556002)(77096005)(5002640100001)(130353001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0143;H:BLUPR12MB0691.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Dec 2015 16:15:22.5096 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0143 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id tB7GpRAK009816 Content-Length: 1573 Lines: 41 > -----Original Message----- > From: Borislav Petkov [mailto:bp@alien8.de] > Sent: Monday, December 07, 2015 3:56 AM > To: Deucher, Alexander; Koenig, Christian > Cc: lkml > Subject: radeon -Wmaybe-uninitialized crap > > Hi guys, > > this just started appearing when building -rc4. Got fixes yet? :-) Odd. Nothing related to these variables has changed in years. Alex > > In file included from drivers/gpu/drm/radeon/radeon_mode.h:37:0, > from drivers/gpu/drm/radeon/radeon.h:80, > from drivers/gpu/drm/radeon/r100.c:33: > drivers/gpu/drm/radeon/r100.c: In function ‘r100_bandwidth_update’: > include/drm/drm_fixed.h:64:13: warning: ‘crit_point_ff.full’ may be used > uninitialized in this function [-Wmaybe-uninitialized] > u64 tmp = ((u64)A.full << 13); > ^ > drivers/gpu/drm/radeon/r100.c:3153:63: note: ‘crit_point_ff.full’ was > declared here > fixed20_12 peak_disp_bw, mem_bw, pix_clk, pix_clk2, temp_ff, > crit_point_ff; > ^ > drivers/gpu/drm/radeon/r100.c:3583:42: warning: ‘disp_drain_rate.full’ may > be used uninitialized in this function [-Wmaybe-uninitialized] > temp_ff.full = read_return_rate.full - disp_drain_rate.full; > ^ > -- > Regards/Gruss, > Boris. > > ECO tip #101: Trim your mails when you reply. ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?