Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5992258ybc; Wed, 27 Nov 2019 13:03:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxwHbOO7FaTXwUQrl0+rlIfNwOtsjG8TP6T8QDfaVQGB/m56m7CvovsUdwHIJS8tgjPH3FL X-Received: by 2002:a50:b63b:: with SMTP id b56mr34514408ede.165.1574888599510; Wed, 27 Nov 2019 13:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888599; cv=none; d=google.com; s=arc-20160816; b=BpbzHTBPoh/BUm4groH7h8gDZdhekIKxwvORQynXXQ96qqj1GnFX1w4dRcQzfaoSnS 1KTuXXXKNDnQXUQBXMkl38pvT29R7NV2vUdXFsRblA56zPD+tD9itvXVKfNIL4n/3ds3 V00o8GTHzHW93P5FCCo7be9nDdaYoC+mXswY2KEjmjH2HVbtq81QqkNqB5AID/HMpfMy 3R6KwEV11t2lddRrjUmrLWZiuN0KoXeTyRwbAZtPTnGF8XDe36HPKUsLfPZCHeTZVyYQ fq9o9cp1go0AA+O44027lsq+FUSb/gwLoeF/1R+wv18WSBwgyNwABnrEQlYYFmgy+3s8 fNCg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9shXIkFgZ4TF6p1UqaGuQjZq8X8VDKSwdgOBbtIOLiA=; b=nPTxgQG4DcWWFOlStvEIr6n6dBPaOaStpCtYSHeSewsvMQf1BgqH7Ez+Y26yleMm5B xzewbpS4VKsVrNpaNF+qrlPmaoSocImKqpzTwFh45xPbcph3to/AQJFdDO+BmaFvRX5V uwqi1AdDdgK5VJ4m+qp2z2qFqzeENIJthqVgJ0yTwMrfme7ld/uFQhbX04ER1NGf989z v4I2FFKDKyHczmR2jsX6tHSaLwif/L7TrPWxTgbk7KP91BDnTQ3n8PMSdYslRs/JsnCR NV1SNtviJgIUd/dRXorjSD48BvPDaokgguvMgbUBHctvHjrcRouVUy/At32ZAhfTN7Wh Vz2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1k4kRuvj; 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 o64si91267eda.150.2019.11.27.13.02.56; Wed, 27 Nov 2019 13:03:19 -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=1k4kRuvj; 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 S1731506AbfK0VAD (ORCPT + 99 others); Wed, 27 Nov 2019 16:00:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:51664 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730993AbfK0U77 (ORCPT ); Wed, 27 Nov 2019 15:59:59 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC6662158A; Wed, 27 Nov 2019 20:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888399; bh=CUQm85ZwFc3ZiJ3wii7Anj20FIV1fgD/Xl2COzvfJSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1k4kRuvjBgQO8XP9ZealarUrFEfnwLuopxVaI2Hu57PuutowQx0SlGobIuNTuk7VD ZiiTv45MvH/KwMfbtQI2ZIX62NPjja8W2k7v6ru8Kd0O3n/EgSGEq3JQNdCMNuyEmE ggCk8Os2KmOa394KlZYq4Z+EIzKjH6lyoBxHHo4s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Alexandre Belloni , Sasha Levin Subject: [PATCH 4.19 119/306] rtc: s35390a: Change bufs type to u8 in s35390a_init Date: Wed, 27 Nov 2019 21:29:29 +0100 Message-Id: <20191127203123.846992325@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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