Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp772378ybc; Sat, 16 Nov 2019 08:25:18 -0800 (PST) X-Google-Smtp-Source: APXvYqx/eaXnlgWcduzqYLeeHM7pVslQRySTdRKpJfq9FySxMVM5+9tkEV76ir16tQYgs+YbkbDP X-Received: by 2002:a17:906:5859:: with SMTP id h25mr11092694ejs.2.1573921518616; Sat, 16 Nov 2019 08:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921518; cv=none; d=google.com; s=arc-20160816; b=YPneK85dsVANcvFZkhHNzo48bXzU4YIM0WZcAxNdYkYths4+3vRcYZjYX168HndGbG +8+GKG/7PCw8OxslIBJAZkdXmwbyQL//OOr2nuLK2D8FlxDyCfVFu+kTwt2exymDowDg LPuxfv57ePqz4ZgPLf7fIn5F+LQYJxmU59eGc5IEFNghfvlz01p8pPoPy+SgHAjIz+O0 POEG+l4PYdooYMZvINnNiSa/2Fapf7qMPsICai5SMV0C62vc+jTnyUnk+Ynqzv4/cDC8 JFZ38uKiaN/MEN+0cmXNM23/zzpg/Bhz+0C3wemK+BFmK04M4HY47j5O+d7uBFpFL7+O XFCA== 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 :dkim-signature; bh=9shXIkFgZ4TF6p1UqaGuQjZq8X8VDKSwdgOBbtIOLiA=; b=O/lb1/UIqanighufyHBjvisxpwW+68hXslaomEUXcKuZEghvKcJSAb/D/J5CvZ2hmc NCufOnIkR3Q4egiTd71nO0ytDZBqx147fxztZj8waKYAMHajTohBl/jTKLDvFrPn+QXh yCmrI9Ra3NYzeuuEUhNEZsDXzK7XTLI9Yo2ydnhZPz3Qvim+ElMOMmL074fwNKsw/hnV S7vUB6+26jyBvg1rWqyXiwltDY3pKsKjfcQLjY11RmlzxW54fHHuIwAujwsn3tueRIPn 8Bl+xNwA2ieOm63W+TfVi06ewcReeFqJHOX3XILoePUTbvBQOgDeauG5d6dbj7o0Y5Js euqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QorIwn+M; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si8144715edx.113.2019.11.16.08.24.53; Sat, 16 Nov 2019 08:25:18 -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=@kernel.org header.s=default header.b=QorIwn+M; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730613AbfKPQWZ (ORCPT + 99 others); Sat, 16 Nov 2019 11:22:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:47224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728656AbfKPPnR (ORCPT ); Sat, 16 Nov 2019 10:43:17 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ABD7F207DD; Sat, 16 Nov 2019 15:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918997; bh=CUQm85ZwFc3ZiJ3wii7Anj20FIV1fgD/Xl2COzvfJSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QorIwn+MEykI+H2YPPdKegQmzuj8b1by47sToCgr9z7iyaMWvRNE89l2kXeUiFMzA 1Hh5lED21clx35BhepXnsLCB6pcxIGLOrFRjoGoeEUeaSG2bMlRDypLhNf43VcPdhJ vk7DExyfhDDoHdOyDUufqughs1SFphUXXBE/qFDc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Alexandre Belloni , Sasha Levin , linux-rtc@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH AUTOSEL 4.19 101/237] rtc: s35390a: Change buf's type to u8 in s35390a_init Date: Sat, 16 Nov 2019 10:38:56 -0500 Message-Id: <20191116154113.7417-101-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor [ Upstream commit ef0f02fd69a02b50e468a4ddbe33e3d81671e248 ] Clang warns: drivers/rtc/rtc-s35390a.c:124:27: warning: implicit conversion from 'int' to 'char' changes value from 192 to -64 [-Wconstant-conversion] buf = S35390A_FLAG_RESET | S35390A_FLAG_24H; ~ ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ 1 warning generated. Update buf to be an unsigned 8-bit integer, which matches the buf member in struct i2c_msg. https://github.com/ClangBuiltLinux/linux/issues/145 Signed-off-by: Nathan Chancellor Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/rtc/rtc-s35390a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-s35390a.c b/drivers/rtc/rtc-s35390a.c index 77feb603cd4c0..3c64dbb08109a 100644 --- a/drivers/rtc/rtc-s35390a.c +++ b/drivers/rtc/rtc-s35390a.c @@ -108,7 +108,7 @@ static int s35390a_get_reg(struct s35390a *s35390a, int reg, char *buf, int len) static int s35390a_init(struct s35390a *s35390a) { - char buf; + u8 buf; int ret; unsigned initcount = 0; -- 2.20.1