From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752286AbcKNItu (ORCPT ); Mon, 14 Nov 2016 03:49:50 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45758 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752144AbcKNItr (ORCPT ); Mon, 14 Nov 2016 03:49:47 -0500 From: Akshay Adiga To: "Rafael J. Wysocki" Subject: Re: linux-next: build warning after merge of the pm tree References: <20161114104009.57b7e64b@canb.auug.org.au> <2357318.aIcIp7uAlP@vostro.rjw.lan> Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Linux PM list , Stephen Rothwell Date: Mon, 14 Nov 2016 14:19:33 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <2357318.aIcIp7uAlP@vostro.rjw.lan> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16111408-0044-0000-0000-000002003E83 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16111408-0045-0000-0000-000005F5FF75 Message-Id: <8b5d3227-b5e4-c45c-3703-aa17a1584893@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-14_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=2 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611140177 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafeal, Good catch, I need to set lpstate_idx = gpstate_idx. I will send a patch which fixes this commit. Thanks Stephen for reporting it. :) Regards Akshay Adiga On 11/14/2016 05:33 AM, Rafael J. Wysocki wrote: > On Monday, November 14, 2016 10:40:09 AM Stephen Rothwell wrote: > > Hi Rafael, > > Hi Stephen, > > > After merging the pm tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > drivers/cpufreq/powernv-cpufreq.c: In function 'gpstate_timer_handler': > > drivers/cpufreq/powernv-cpufreq.c:642:5: warning: 'lpstate_idx' may > be used uninitialized in this function [-Wmaybe-uninitialized] > > if (gpstate_idx != gpstates->last_lpstate_idx) > > ^ > > > > Introduced by commit > > > > 20b15b766354 ("cpufreq: powernv: Use PMCR to verify global and > local pstate") > > Thanks for the notice! > > Akshay, any thoughts? > > Thanks, > Rafael >