Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1948057ybh; Sun, 8 Mar 2020 17:47:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvyPzOYFZ3u8561gBX0y6kCMDRnEjCr5FUVTsnTSiDIvUxsbZcEW37VAPQady35JvAvWbFt X-Received: by 2002:aca:2814:: with SMTP id 20mr9920418oix.61.1583714834929; Sun, 08 Mar 2020 17:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583714834; cv=none; d=google.com; s=arc-20160816; b=fLoT7O+YCzcJ2kdmHMVyDDRARcEKwcxdVQl3YF+IOiK3v9Aezsprh5C2RLYcKpRzek 3lyek/gGIZEWzRq8PL7Tc0dXjbGSU1EG1CU7JOJeWQXIz3yaxXtjO6rlUo+X1mvMCeXl N8y1QHrtnlxQWFM6pFmhPBxDv6M/P3bl0O9tyyE7wVZPRQ5HJ5c3VTQKGcMIz988YDmJ +AsZD6F2SR9+y/nNxKRZojx7hx8lGo40OTiUWPUc6hLWuXCm2AtYEcuLgXqUlRDUq2SH v5nMpabaSfePe0BvBKND8ixlhWFwzoXA4pfmGSqjTt9EHukB9Z67L3dyKJAVCXX1/+cF WaYg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YVbuU5/pqLFws622qPJyVotc3DjL4KLoz3mVBWbiHGs=; b=i79O/dc6aecz2VDER4hkEXrsK38C40e1c1yYGXZNXa+g7oa0fFjg8v0jo/qY0EHF5t BqW2cjsYJ/C08RHt0VsP/9HzhJiiLZslX3X1CetREqQAfz4p0m4m4iMsvG7WNpwlmhJV L5k2imInT7rMR9zerNQcSmrb1S5z0X8wX1t754rVBTKiDf89P5NxtTZNUcGR4hOHKYh+ qa61Y9whod5DCpLmjCV/yAZ5ZS1VPkW5cOydWsmgI21QD/1TVGvTTkSahQ2P1mAINuMa GTpr+NH5D/dMwBbZFN4HRsUafhvi9sCeSwGYeBHrp+ne3oS/GJbJyi+Xh3rulgpgrWuB PMVQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18si5411448otk.80.2020.03.08.17.47.03; Sun, 08 Mar 2020 17:47:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726910AbgCIApU (ORCPT + 99 others); Sun, 8 Mar 2020 20:45:20 -0400 Received: from inva021.nxp.com ([92.121.34.21]:59206 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbgCIApS (ORCPT ); Sun, 8 Mar 2020 20:45:18 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5738A201518; Mon, 9 Mar 2020 01:45:16 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4BA0D20096A; Mon, 9 Mar 2020 01:44:57 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 31881402D5; Mon, 9 Mar 2020 08:44:42 +0800 (SGT) From: Anson Huang To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, dmitry.torokhov@gmail.com, a.zummo@towertech.it, alexandre.belloni@bootlin.com, rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com, wim@linux-watchdog.org, linux@roeck-us.net, daniel.baluta@nxp.com, gregkh@linuxfoundation.org, linux@rempel-privat.de, tglx@linutronix.de, m.felsch@pengutronix.de, andriy.shevchenko@linux.intel.com, arnd@arndb.de, ronald@innovation.ch, krzk@kernel.org, robh@kernel.org, leonard.crestez@nxp.com, aisheng.dong@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-rtc@vger.kernel.org, linux-pm@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V3 5/7] input: keyboard: imx_sc_key: Fix build warning for !CONFIG_IMX_SCU case Date: Mon, 9 Mar 2020 08:38:18 +0800 Message-Id: <1583714300-19085-5-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583714300-19085-1-git-send-email-Anson.Huang@nxp.com> References: <1583714300-19085-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix below build warning when COMPILE_TEST is enabled while IMX_SCU is not: drivers/input/keyboard/imx_sc_key.c: In function ‘imx_sc_check_for_events’: drivers/input/keyboard/imx_sc_key.c:87:27: warning: ‘msg.state’ is used uninitialized in this function [-Wuninitialized] state = (bool)(msg.state & 0xff); ^ AR drivers/input/keyboard/built-in.a Signed-off-by: Anson Huang --- No change. --- drivers/input/keyboard/imx_sc_key.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/keyboard/imx_sc_key.c b/drivers/input/keyboard/imx_sc_key.c index 2672fd4..1b55348 100644 --- a/drivers/input/keyboard/imx_sc_key.c +++ b/drivers/input/keyboard/imx_sc_key.c @@ -69,6 +69,7 @@ static void imx_sc_check_for_events(struct work_struct *work) hdr->func = IMX_SC_MISC_FUNC_GET_BUTTON_STATUS; hdr->size = 1; + msg.state = 0; error = imx_scu_call_rpc(priv->key_ipc_handle, &msg, true); if (error) { dev_err(&input->dev, "read imx sc key failed, error %d\n", error); -- 2.7.4