Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6207588ybv; Tue, 18 Feb 2020 12:03:02 -0800 (PST) X-Google-Smtp-Source: APXvYqxViEGLGkOAfF0iJWUhfeTu6Yx6fVbqdPnT+/tBW+NedF+ugHUA6F1o50dEGIbqXmq4LBqx X-Received: by 2002:aca:458:: with SMTP id 85mr2426114oie.56.1582056182816; Tue, 18 Feb 2020 12:03:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582056182; cv=none; d=google.com; s=arc-20160816; b=TgE5d7YuCY0pWndmPanY4qqtwKzqeDf26wNXdPvZDewBWhEudDwSdr11oRQWbn2tD5 2c1lVD1VsNAGUmncC0yJpRlO7V1HR9PgXTA7wfHmsf2cC1knMdHeSPz+7wiFXowcIQbQ SbzXKr5XxK+ZioS01G50KyrgRq6P6JqO0cqWBVhySjcALw8RF3V+XRgXE8xKos8oZmZ/ iluSYV8H809Le4QqgFs9Su+LJO6IcER7+xWDL4wthpE4VQ8XesNAKP1sbH5BO+5nkBwO kvmC+rWujwpGSOoS6nBEx+ktJY4AGHQadpqdTNarEH/2InWhDaRbKsAokOjMsE/UWBjC kZug== 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=94OxIbq4tIOzAbzIWuVBmmqWmDnswl08RXLii/Q4KM8=; b=line5jSHd7PFOJJiAL9ad4WhG12g4F8WYjTnVD+TXLGtY00xBFpW7ioePCzYzM3ptF /QFP62+ev1VV4kePCTva7qaJKXHfzf+2E5AACv16EfZII/wnEbrldFtLeLF5PUvEqFwx n+zmTXnNd5JgCgQwzpF/MlISvAr9OhLkMZH/4qr9bgrYSu8W7Z6iNTXBm0PvO1wfbiq1 JCPZmAdI5bO19Ts+tnrkxBRQXQp1SihAZ901X17qQiR73tQ9eaTMU08hzF6l1K1Yrced nhxWsa4dA0YlhIa94KNPG3FYvP5dhgPTyCCUUuVqxvfqYguMWhem1NSFMmVsjelJrKrW UE0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dlGkM1Ba; 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 x2si2349541otk.29.2020.02.18.12.02.50; Tue, 18 Feb 2020 12:03:02 -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=dlGkM1Ba; 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 S1728993AbgBRUCo (ORCPT + 99 others); Tue, 18 Feb 2020 15:02:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:43280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728988AbgBRUCl (ORCPT ); Tue, 18 Feb 2020 15:02:41 -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 BD24921D56; Tue, 18 Feb 2020 20:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582056161; bh=AQXNCwSq4Z50V5yHlLV51EKDB3lSCNe9jOBAJff5fh4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dlGkM1BaWanfDCcnyALzUfR1i0iICQF+KbMAMCFYrbx+QGEJ/u2+aMrYCWKE8E86R nqPXfFcl1WNUan1TMranfLvfgOwq8cUBw1qmLOL/ISYUiva5A255kmUP+pe+nc4ogs mEIXRHDyiwaRmGr/I1S/JoRmHrUO9G1DrpEIzpLQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Vasily Gorbik Subject: [PATCH 5.5 58/80] s390/time: Fix clk type in get_tod_clock Date: Tue, 18 Feb 2020 20:55:19 +0100 Message-Id: <20200218190437.665251078@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200218190432.043414522@linuxfoundation.org> References: <20200218190432.043414522@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 commit 0f8a206df7c920150d2aa45574fba0ab7ff6be4f upstream. Clang warns: In file included from ../arch/s390/boot/startup.c:3: In file included from ../include/linux/elf.h:5: In file included from ../arch/s390/include/asm/elf.h:132: In file included from ../include/linux/compat.h:10: In file included from ../include/linux/time.h:74: In file included from ../include/linux/time32.h:13: In file included from ../include/linux/timex.h:65: ../arch/s390/include/asm/timex.h:160:20: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] get_tod_clock_ext(clk); ^~~ ../arch/s390/include/asm/timex.h:149:44: note: passing argument to parameter 'clk' here static inline void get_tod_clock_ext(char *clk) ^ Change clk's type to just be char so that it matches what happens in get_tod_clock_ext. Fixes: 57b28f66316d ("[S390] s390_hypfs: Add new attributes") Link: https://github.com/ClangBuiltLinux/linux/issues/861 Link: http://lkml.kernel.org/r/20200208140858.47970-1-natechancellor@gmail.com Reviewed-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: Vasily Gorbik Signed-off-by: Greg Kroah-Hartman --- arch/s390/include/asm/timex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h @@ -155,7 +155,7 @@ static inline void get_tod_clock_ext(cha static inline unsigned long long get_tod_clock(void) { - unsigned char clk[STORE_CLOCK_EXT_SIZE]; + char clk[STORE_CLOCK_EXT_SIZE]; get_tod_clock_ext(clk); return *((unsigned long long *)&clk[1]);