Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3217836imu; Thu, 29 Nov 2018 18:12:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/XNrvV1Ze94YvEtGv98P+KQSzgfkPuXiQ386apF7hCjlok+NGs41sykG8FFtCcD7goM6gHZ X-Received: by 2002:a17:902:bc43:: with SMTP id t3mr3599584plz.124.1543543977536; Thu, 29 Nov 2018 18:12:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543543977; cv=none; d=google.com; s=arc-20160816; b=vMHXf7vRM6reVjuEz9Url88+Ma1DkXZ4ee1XHu23HsPXdx0Z/eBU3SGMq7LzYxyCyk 4HupTwisJAfpeYpsitmpphdJ9t0cmfKOx3A2JCRxT/vrnF8tntT7SXUmQkrywKVH2zs9 HgrSXEdyggWFfUYZI28+uJhhSGtEznFxLi2ERD0ntg3PcGXPrzQo4EINJwdCEcxopOz0 CXDIfK/VXnDugXPemB9k2M6u3BuiYY+vn8tQU0pCzmaDBN5iQmNLnlfKkR4O+XDnjH3V nEe2CDG5kMqHN8DV3mB2CPv8uo3qffm226It/swQ/2wAur2/9SszVrVVEzInCI3Cpw45 t6Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=4pPxxJSVU4WN/DXerOSu8m+mTQxAAU3/UxX70/VjGXM=; b=Ironv/XaJA4eTXruN6AebbijJsxGOYAS/eNq5HwVOZST5DHyasos43dqEDdDHNhShw 7H4h+bXR6A5U8HEfib/doPjeXYjwESd5PUuhv7aF/9A6+bfVDFXEPX2FURX7ErLnl5Zp KiHAE16HiMBMZiJKg6qapQvXoCC4HKvG1IQ6W0H8P3K2PzijCotvPF0Orwfs5B/ncvaj D8uVtXnnEwctL9P3g+RlLhKbSH7gbqPEIdBsJ/ilvxzuq39P5ViEE+kOUW3Alfrg1KSG 40v6QzCZ1oHqHmvlPNhkQuZnkAS1Hi07MFhDSdejN//DSkRpVhk6ckQ1QjyEXonDl0TR tzDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="r/vvtPsj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i29si3579778pgb.550.2018.11.29.18.12.41; Thu, 29 Nov 2018 18:12:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b="r/vvtPsj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727073AbeK3NTn (ORCPT + 99 others); Fri, 30 Nov 2018 08:19:43 -0500 Received: from ozlabs.org ([203.11.71.1]:36921 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbeK3NTm (ORCPT ); Fri, 30 Nov 2018 08:19:42 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 435dDy0SsCz9s8F; Fri, 30 Nov 2018 13:12:01 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1543543922; bh=Z1fZ2Crm3Ouc+ihJ2dxfkNmVWcS/1CQm7fPkFhSuP4Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=r/vvtPsjr+2r0Z2Awhe2iQKjpEvD8ZGreKvyaCDN1PRNCJnLJq9/Z17b3F8hnsNxc MVV3+MDnEq0NWw0agJU34MKDt2lKg0XS/OTyQqf37KwvyguyLYfxe862vnupppTOr5 YcmLoEdiWz0k/+8m3W3ztgeRn+msjUdwKI+sE/w4OmaRT1zst8aclE03AMa1zwXKyR PkUMK/CAv7JhPLmDjFidvR6rUVdBXg8gSCAMTYiS+GVGZKyLwxIDRh2A0B4HGYYOSD TAoVfZBIA1vLgkFo/sLoMX0O2gKD7bc6RJWXVMy2bV7AfHRBnhk3WIOq0xKrHxPhwW 8spDm/JfyINyw== Date: Fri, 30 Nov 2018 13:12:01 +1100 From: Stephen Rothwell To: Andy Gross Cc: Stephen Boyd , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kbuild test robot , Jordan Crouse , Bjorn Andersson , Evan Green , Rob Clark Subject: Re: [PATCH] drm: msm: Check cmd_db_read_aux_data() for failure Message-ID: <20181130131201.6fc91dcd@canb.auug.org.au> In-Reply-To: <20181129224234.GD32306@hector.attlocal.net> References: <20181129163826.178670-1-swboyd@chromium.org> <20181129223600.GC32306@hector.attlocal.net> <20181129224234.GD32306@hector.attlocal.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/uTnMOcHV6Tw7mxJCfUrnTQC"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/uTnMOcHV6Tw7mxJCfUrnTQC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Andy, On Thu, 29 Nov 2018 16:42:34 -0600 Andy Gross wrote: > > On Thu, Nov 29, 2018 at 04:36:00PM -0600, Andy Gross wrote: > > On Thu, Nov 29, 2018 at 08:38:26AM -0800, Stephen Boyd wrote: =20 > > > We need to check the call to cmd_db_read_aux_data() for the error cas= e, > > > so that we don't continue and use potentially uninitialized values for > > > 'pri_count' and 'sec_count'. Otherwise, we get the following compiler > > > warnings: > > >=20 > > > drivers/gpu/drm/msm/adreno/a6xx_gmu.c: In function 'a6xx_gmu_rpmh_= arc_votes_init.isra.12': > > > drivers/gpu/drm/msm/adreno/a6xx_gmu.c:943:12: warning: 'pri_count'= is used uninitialized in this function [-Wuninitialized] > > > pri_count >>=3D 1; > > > ^~~ > > > drivers/gpu/drm/msm/adreno/a6xx_gmu.c:948:12: warning: 'sec_count'= may be used uninitialized in this function > > > [-Wmaybe-uninitialized] > > > sec_count >>=3D 1; > > > ^~~ > > >=20 > > > Reported-by: Stephen Rothwell > > > Reported-by: kbuild test robot > > > Cc: Jordan Crouse > > > Cc: Bjorn Andersson > > > Cc: Evan Green > > > Cc: Jordan Crouse > > > Cc: Rob Clark > > > Fixes: ed3cafa79ea7 ("soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_r= ead_aux_data()") > > > Signed-off-by: Stephen Boyd =20 >=20 > On second thought, this needs to go through drm tree. Why? The commit that introduces the warnings is only in the qcom tree ... --=20 Cheers, Stephen Rothwell --Sig_/uTnMOcHV6Tw7mxJCfUrnTQC Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlwAnHEACgkQAVBC80lX 0Gzm5QgAoS5hbEm2DH6OlupYdISzBShylvu98CN3kkwvnYnWUaqc8FZ0RcVRRbdN T9E2kznxCpp0dyan/ZEw+5w/RtbKqurg33bGnVEGljZ9XdskEtc3bv/wVqGIvNrN wWN0pss6sjSi9r/SezK46NTq/9deR6Dm41xvRv6M62yesTSjp1/BssvGPQGm6SLQ GIjXIR1wYy1jFKZGL3UgruwCHg1wb3TuvSsZmWhoIXjSdjR0Q1zhg27YWeDSit70 sihng+14RHSXHYbOYbPD0EdVcl+TLqlR8uMoyE8bVUPucJkhgCTVz2ba3wqPTw0O EbJdRFtVUaohn2apbPGjpxY9CGEhCw== =SDX4 -----END PGP SIGNATURE----- --Sig_/uTnMOcHV6Tw7mxJCfUrnTQC--