Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3047654imu; Thu, 29 Nov 2018 14:38:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5atGp1whQyZBhbqkqbUVPLvezpCI2aEW1fQ+xOhogKKKYjFAcxTc6hh3h5G4JMxPkbsyE X-Received: by 2002:a63:f34b:: with SMTP id t11mr2793621pgj.341.1543531128783; Thu, 29 Nov 2018 14:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543531128; cv=none; d=google.com; s=arc-20160816; b=AuNwh8Y5ecDzJwNBuA8oeQng6zBBPYVN1HuAGqNVMgqY8LjbF/V5z1Qx6zMYk03KZQ EgBKHc3fgzKxmqX6uSqZntzYAIzsbgMiuvpbBfnanI2ySt29vgoj1GkI1gtme1+Cs2T0 2IXXl9mqN9sSO2ryii+3DKI5kEMOL2W0MbROU3/IZ7YY6xtLmmbDxKPD3sMtSg1K4l3J stJsZW9SbJt8wXw2G9H+FF46tfnc10S08momHLRuLguUjhUMdr8NR3bHNA6eXjC6tRGv ZqY98lYA7AuU3ESB6DnC+I5lnJ4munBigtPAMh4OzJZfffEhAqa/xCo7urW5nCTa67MO aGvA== 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=3JW6B3D98u4etHJO+8n/AZa4bWpPMV0p1A76//BfEnc=; b=g7wu7PzgP73R06GlN2VxKMl5xFe2aoLC0w1zqXJv1ye+909sOH/9degNpToj0dhsQN AuOdyXljbj0G+Y5+HKb544n9xcqtrpYl8gMpGCVQx9S+PAHvLGJPaSqR/4qsqDPJPc2Y 3kwuqRZYkuwLsi5pdvGyKwP6cDQe0mFM26FR9+LHFLRtn3f4wkg2AYPCFzZCQYrj6vJD qLt0Hh5G0wN2pQHBucZLYZ8sc8UhutJUmKJLXH1oJX0bGkvcHETkA3yEBcd0XUSWROSi jc/vdiG0xgu7FQYQk1q3sVTQ8RDTlC3ABYpuKQKIbMtm0SC7Dr16M6+QANdjDbor327x uTMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d9clXkQR; 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 r1-v6si3351195plb.153.2018.11.29.14.38.33; Thu, 29 Nov 2018 14:38:48 -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=d9clXkQR; 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 S1726824AbeK3JnG (ORCPT + 99 others); Fri, 30 Nov 2018 04:43:06 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:44461 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726470AbeK3JnF (ORCPT ); Fri, 30 Nov 2018 04:43:05 -0500 Received: by mail-ot1-f67.google.com with SMTP id f18so3334598otl.11 for ; Thu, 29 Nov 2018 14:36:02 -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=3JW6B3D98u4etHJO+8n/AZa4bWpPMV0p1A76//BfEnc=; b=d9clXkQRKp7Vxx9axZUxcicoVAl6MEaYkfSMF/x1IKHHzbcNKeuXzRa8RZAM2T9yJV +ls6MbY5CGWw668MPt8/WXvtagbWLQsQSI1ghdrjkOxl8Oua2R9qcly7u/ldiUDIzfB/ A/k7Jf8NreyWYYofMNmQv/KZhFM83Z0AIj0mc= 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=3JW6B3D98u4etHJO+8n/AZa4bWpPMV0p1A76//BfEnc=; b=d7FC05pwLTGyPnTdwyFk6tNYUsEFNcO5I74x89pPMs1kwrgIHxydc/M/nVBTdLpzPL a/XHruCF3ta7hQhqvJrtGMqPPdXi2QtWYoWIrQfiqe4R6WX7xXHhuLCWNfwkx4pgJ2s6 A7hEiEc8q34YrJtTn0Zp6KzscDYbVGtXT7LPmIPn6PHV8hu46h8AhEArcf9231hqZhyS 5GDOjCyurHOC29pEts67jbza5Ybt3Z+tyIIS1O9prBDl5RhYuKkhWLVG/dJ9DzoRFjqo aaQzL6gRskfBa7494LEtSRbb3KFJMd2PetezpVWrWBSdrl0aiyUzBKX+CVCFl6zomSWU 7q+g== X-Gm-Message-State: AA+aEWbWFiHaiKF5kpJmol1xi99KTOmAi9FmI9LbrN79wNjHtsufEyUo 3h3c7OVNqJ0NKtU7mjWYovslMw== X-Received: by 2002:a9d:6287:: with SMTP id x7mr2177701otk.304.1543530961916; Thu, 29 Nov 2018 14:36:01 -0800 (PST) Received: from localhost ([2600:1700:141:4960:d408:b2c2:72bf:467a]) by smtp.gmail.com with ESMTPSA id g138sm2698392oib.26.2018.11.29.14.36.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 14:36:01 -0800 (PST) Date: Thu, 29 Nov 2018 16:36:00 -0600 From: Andy Gross To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Rothwell , 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: <20181129223600.GC32306@hector.attlocal.net> References: <20181129163826.178670-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181129163826.178670-1-swboyd@chromium.org> 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 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 Thanks for the patch. Queueing this up. Andy