Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4647937imm; Fri, 18 May 2018 08:27:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrwRvkPs1RKXV2wkwWGEb3J7lIqloHFmimHIESJcEt1N8qPpcbzbVURx6BXNAo6gYeUWN08 X-Received: by 2002:a17:902:b184:: with SMTP id s4-v6mr9769263plr.359.1526657229541; Fri, 18 May 2018 08:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526657229; cv=none; d=google.com; s=arc-20160816; b=eFoS/tUmz+bRGB6whmYnROIbKCaTQiDSYdmOgVC4W+ZgW0p1eKU7JW/fqPbJQuPXK+ dnDVC/hvihD5YRHyd/XQfim1KbNWwV8kGrxRAJmTYTdp8czDggU/Vq14B5DGoLJG6ogF w1PMyqYehgOBvi+HqTpy/6tCy9gK36LQ35XpKhIA19133dXHQQ6g2iNQFihfvMQ5mywL 69fXGlMlE06Xq1NAqgr7BBXyKiMbLfC/QU8mirI2KUs+v0rYYpWq4V0FT902BC+tiiT9 6zWz5esgh5kBftDtVLW+vJnFaOWKhaI7ImCxoAXRG1gyuP+c3G+7prfKOOexB5d6XWXd cjBw== 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:date:subject:cc:to:from:arc-authentication-results; bh=IkFyeZJ4mmSZV57cyyMg4dKfxorzpSNfmt9XwbhioNs=; b=poLtZMfvWixjWaf+RjLpsMm+vvzqBO3k3NEQNzdCmPytmgzEkTBLbcFB5V52ZNC/Z9 XkgwEsSdoYGRX/hBwM91Ozw5pY5jSSwnb0Hvi30N6AU/yU8gDaZyowSZHmRn7V0X6WBm XhmXIio0C8Qh9B0O7fLppmTjR7TuN657gAi9h5tVIs1XWEgSfWWiMcKtqK5mUE7Qbty+ s9xHN/oM8lhSiiQ3FTsBR8iDQa5UXJkNaPFrSnpIvgu1JmFL6G0gkOY7DGHETWED+ydf rbwbZHa7LlAce/orDgtk/52WeovFt0xbeJaCOHnpTKpQIqZp+lYD7L5m4x9w8G6VdMaN nnag== ARC-Authentication-Results: i=1; mx.google.com; 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 g9-v6si1286702pgs.65.2018.05.18.08.26.55; Fri, 18 May 2018 08:27:09 -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; 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 S1752536AbeERPZT (ORCPT + 99 others); Fri, 18 May 2018 11:25:19 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:4103 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751197AbeERPZK (ORCPT ); Fri, 18 May 2018 11:25:10 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w4IFNfoh000543; Fri, 18 May 2018 17:24:29 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2j1e0cnfmj-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 18 May 2018 17:24:29 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D607131; Fri, 18 May 2018 15:24:28 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BA52D5207; Fri, 18 May 2018 15:24:28 +0000 (GMT) Received: from localhost (10.75.127.46) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 18 May 2018 17:24:28 +0200 From: Fabrice Gasnier To: , CC: , , , , , , , , Subject: [PATCH 2/2] pwm: stm32: initialize raw local variables Date: Fri, 18 May 2018 17:24:04 +0200 Message-ID: <1526657044-14879-3-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526657044-14879-1-git-send-email-fabrice.gasnier@st.com> References: <1526657044-14879-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-18_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); -- 1.9.1