Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4744967imm; Fri, 18 May 2018 09:57:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo/IJyvD06BKT24pizBd31VDg0IA6lAC7keqj9Q1gzKijMYY7EgYW7i2jadDDufLv5fctbf X-Received: by 2002:a63:bf44:: with SMTP id i4-v6mr7883147pgo.295.1526662659079; Fri, 18 May 2018 09:57:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526662659; cv=none; d=google.com; s=arc-20160816; b=L2PaUM/z2fYzimV5ML8ZHn1baRHMYVYzOZrcEY3NKPMPlHI5nKaDPBSIJdLYFF6uHa GI5+YFCCNLAYfTlJQ6Xrqd967F1quFAsCdM7cx2QW8wdnChvMNXzercyJ9ONP8dl9iz9 QkUSt7y2PXn0AijD4j1nzv10QIrloyiDOUw9oXO6+UKEoYatKdeyS6gTAzSmWnDZ30KA py3DKKYXrvs7tYAqiE4AvRtflNqhvYV7ZJQJp+X3cDb6J3STJ3efjJNINZgDzKxKETPa K1igRgyY7tkw6F+7a8GN0f0juVMZ4uAvSGEf+8In98SnPk48XeLdVgQCZFUMUsQ5oSOR ihGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Nqc53DaQ0gEmlTp3DLBTKjdOLFBFGK1vBPjdyz7lsTg=; b=bZRO8I4PAnoIqoAkOxe2wL4E/MX+Bs/wiBaNoZ8grDLspI5rgAUJO7tn7cA7xaRqaE V6EpdqynF+k5z0y7J/FkstpMdfPyboSI/9JehIJOGKaVTC1wRV0oF5Os3jAeqaSAE9zf z2XVAiqSgLUcu140G7kL4I+3wekD54qA7pRmk26MLqpGQT6q4s62tS/k6c97KvIFVHUg wbrJNvWMB482l0MTdN+OrDAs5rF0JbmXcrAuau2wp8V0I/Jfn3eDh2wmeg6LCfjlIVNM B36UFJDtE2hrGf3cD5jk1hSr+ZVSd2DbCNP//0GfPTdwhyL2p1cbta+Bwo0gSxhgSKaW EtMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RqXnbLEh; 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 q12-v6si7373839plr.358.2018.05.18.09.57.24; Fri, 18 May 2018 09:57:39 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RqXnbLEh; 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 S1752201AbeERQ4a (ORCPT + 99 others); Fri, 18 May 2018 12:56:30 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50632 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751909AbeERQ40 (ORCPT ); Fri, 18 May 2018 12:56:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Nqc53DaQ0gEmlTp3DLBTKjdOLFBFGK1vBPjdyz7lsTg=; b=RqXnbLEhmCh9IRiIENDV+SITP WDwT4dzQdd/SFZhUDDH7+FigHdlBvcdIMnr88dzwUdqQLOrT+o4KT8ZRzrUQdal6qrwfM98+Pxel8 wcpi/6tD1cx2Q2xP93ZVeFHHYhvm6ysIHfV3WiQ+TKGSO10i7P8FU3X6Xv3vZxp6RKZvrBP9Pvz7O WaFSNxym099tqaNEcuwlOZNxs+ECJQMTANgLg8udB+V18GMGZ/f2NJ+ERiLOn2jFDU1UCYHmAXV1K tQuvsrZqvO35glj0xTHfbuGRFQ2bp5h444jgwnUnbhgGIYLUJpC5+mAZZY6NzdDGhkM4kDG7HCqdt 8CXx72dmw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJifz-0006dC-Gv; Fri, 18 May 2018 16:56:19 +0000 Subject: Re: [PATCH 2/2] pwm: stm32: initialize raw local variables To: Fabrice Gasnier , lee.jones@linaro.org, thierry.reding@gmail.com Cc: sfr@canb.auug.org.au, gerald.baeza@st.com, alexandre.torgue@st.com, mcoquelin.stm32@gmail.com, linux-next@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org References: <1526657044-14879-1-git-send-email-fabrice.gasnier@st.com> <1526657044-14879-3-git-send-email-fabrice.gasnier@st.com> From: Randy Dunlap Message-ID: <53e327ba-10c0-618c-edf4-1e1b528527c7@infradead.org> Date: Fri, 18 May 2018 09:56:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1526657044-14879-3-git-send-email-fabrice.gasnier@st.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/18/2018 08:24 AM, Fabrice Gasnier wrote: > This removes build warning when COMPILE_TEST=y and MFD_STM32_TIMERS=n > in drivers/pwm/pwm-stm32.c. In function 'stm32_pwm_capture' 'raw_prd' and > 'raw_dty' may be used uninitialized in this function > [-Wmaybe-uninitialized] > > Signed-off-by: Fabrice Gasnier Tested-by: Randy Dunlap Thanks. > --- > drivers/pwm/pwm-stm32.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pwm/pwm-stm32.c b/drivers/pwm/pwm-stm32.c > index 60bfc07..09383c6 100644 > --- a/drivers/pwm/pwm-stm32.c > +++ b/drivers/pwm/pwm-stm32.c > @@ -170,7 +170,7 @@ static int stm32_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, > unsigned long long prd, div, dty; > unsigned long rate; > unsigned int psc = 0, icpsc, scale; > - u32 raw_prd, raw_dty; > + u32 raw_prd = 0, raw_dty = 0; > int ret = 0; > > mutex_lock(&priv->lock); > -- ~Randy