Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3235050imu; Thu, 29 Nov 2018 18:36:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/WNfbhb18iiKRuyW7ZiSbeVic3/IFZ8Ys0JxSPtn1XVX0lhZCLHpvz1ttywAVcbcOvFxWku X-Received: by 2002:a62:3305:: with SMTP id z5mr3955837pfz.112.1543545411182; Thu, 29 Nov 2018 18:36:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543545411; cv=none; d=google.com; s=arc-20160816; b=WowWhn5bn7Xb9DP7wYBSV4DhO552e7haRtyT04msNmGAZy4wIPDE6wD4kOJWuqj8Ui Vr3rTJxq3qCkfay0V+1YGRmjeVOXYbmvWVZ2KKscPymeq5MNkaQZDbmztvGx/Ue7Ijfy f+R5xDH6ppBZl8WZAoLfxTO5QgTKUXQA/VTAauyh8QkELlrMSgKLrj3N1XBNXXnn80Pu 7XREE0TsVQrpDAbih9SBQl6uvFxLOPRF80Ber/gMBsSdVIT6bjuoIfyZuqk7nKoyPNPW qLZ2GYwRW9o97L5Tu+hEnODlo2c+FGQq/LjeBk3fVw9tYm7sn9G6MbaLah9RMvLMOQcB 4ghA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8Axev834yRx7ZCsXLYPXHnuu+iX1TwQTTk8ffcEj8EM=; b=y1dUvZ1shHUhjlE0/pisnUcKjWoMwMrYB2/tCmi2rcPg1p30ojYn2cldJFENpXJzCy BCL/NRp+UEBwwwF+NUUuQ83eLKivVNf3yedrv6dDSHbu6U6TUfKrmH2d/YASNQUpqyRQ 6T6iD5dDk5UANHkNO+eTknYiOobACoqgEnJa7tG/i16t/eQHpnMOLgr2Unlu+s1GVuVF VcTra6C2hkDGKw4vbK+IyOC20SBsb4Xwos7/8o9STdGy/YNYl3cCXuzQvsqXgV3/U0D+ nWgk1B5z7xIn2g9qIpSV1w0lFt1WsDicd0DL8410qPMLRMWQ8SO/cGnS9WBqUU5ZVEql S7TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PnI5jtzs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si3778695pgr.346.2018.11.29.18.36.35; Thu, 29 Nov 2018 18:36:51 -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=@linaro.org header.s=google header.b=PnI5jtzs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbeK3Nmc (ORCPT + 99 others); Fri, 30 Nov 2018 08:42:32 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:34592 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbeK3Nmc (ORCPT ); Fri, 30 Nov 2018 08:42:32 -0500 Received: by mail-oi1-f196.google.com with SMTP id h25so3541853oig.1 for ; Thu, 29 Nov 2018 18:34:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8Axev834yRx7ZCsXLYPXHnuu+iX1TwQTTk8ffcEj8EM=; b=PnI5jtzsxX6GMx107ZR///Vr6HkkS3DNK2VL9AyqB+G8NhwWtA6W2JbAwMChk3Mn4j RLni/JWJDBks6rn7gxrqH16wCKIcqy6VCsjcmZhxBJwShjE7M+wzf1/go16Smcu4PYI0 hU1ncZ2+f+EIIvx2z2S29ROecmSPXRe2gQZmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8Axev834yRx7ZCsXLYPXHnuu+iX1TwQTTk8ffcEj8EM=; b=YWL0kQWrR6M7mh/zyR1uG+Eyju1sF5tAtJW06oaZfP/Y4y/+QZiNN3cMT7yMdvFBMi 8RErbLOIWADJHXtxPFVtFt769BjfEPrwslgYs6heGWbMscAwjY1a7+rcEFQFa6eSyCfM K/vkJaxSJoqY1KdSojX08FaRhmF9V+R/kG5O7tSVJ4bycNGDxXsND6l+XSmQBmQPXIZa eDTQ1CBtB2Wnuk0W3+WJgbcp5gYKPR/PsXKP/BF8lSptdIXjZ6DwetRpz84zBPXbD8Zr s/0J1nQXk8FYRay9CGLdQszk2YS+C5jeUlnXUE3JxjOrahq8nfDihPvGmwdGyuafX2Lr B2cQ== X-Gm-Message-State: AA+aEWZD78ZY/SLhs3itv/JTueQNCUJ+6aD66wdeDQ4k//j8IlPC5oo4 RhvDKgUjI5GB8lLYcerBC0FuvA== X-Received: by 2002:aca:3141:: with SMTP id x62mr2264244oix.194.1543545290233; Thu, 29 Nov 2018 18:34:50 -0800 (PST) Received: from localhost ([2600:1700:141:4960:d408:b2c2:72bf:467a]) by smtp.gmail.com with ESMTPSA id e42sm4863102oth.36.2018.11.29.18.34.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 18:34:49 -0800 (PST) Date: Thu, 29 Nov 2018 20:34:47 -0600 From: Andy Gross To: Stephen Rothwell 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: <20181130023447.GE32306@hector.attlocal.net> References: <20181129163826.178670-1-swboyd@chromium.org> <20181129223600.GC32306@hector.attlocal.net> <20181129224234.GD32306@hector.attlocal.net> <20181130131201.6fc91dcd@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130131201.6fc91dcd@canb.auug.org.au> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 30, 2018 at 01:12:01PM +1100, Stephen Rothwell wrote: > 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: > > > > We need to check the call to cmd_db_read_aux_data() for the error case, > > > > so that we don't continue and use potentially uninitialized values for > > > > 'pri_count' and 'sec_count'. Otherwise, we get the following compiler > > > > warnings: > > > > > > > > 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 >>= 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 >>= 1; > > > > ^~~ > > > > > > > > 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_read_aux_data()") > > > > Signed-off-by: Stephen Boyd > > > > On second thought, this needs to go through drm tree. > > Why? The commit that introduces the warnings is only in the qcom Sorry, I wasn't thinking it through earlier. Yes, due to the two patches in our tree changing the API, this needs to go through my tree. I asked Rob to ack it so I could take it in. He did that and now it's been added to my pull and also pushed to -next. Sorry for the confusion on my part. Andy