Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6212762ybv; Tue, 18 Feb 2020 12:08:10 -0800 (PST) X-Google-Smtp-Source: APXvYqx3lMDHJWdeeaI4hBdR71eqguTj5/iokZOJqfTxnmU4FfwvzE86zDypuMUeXjfeXKPsAHFq X-Received: by 2002:a9d:7d8b:: with SMTP id j11mr17928259otn.259.1582056490802; Tue, 18 Feb 2020 12:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582056490; cv=none; d=google.com; s=arc-20160816; b=FGmmBktEHeV5HHFA/lpaSETLxrQruOuBLyGwDrUS5uTqPlKG0qArqi7LRmvQfvVtvh S/A7YFL3rxpTYX1FY0i9jZMlQvv+QLMH/0HM3wvlaw6DfKBKsm8hHYSHvd6U37KCQ+Cr txjRPeBemmYSrUfitWGdGuz2Sa9jjt4CKcv79b7KCvamEybVRJDwrqFAWZLfd3dzlTRq 4iawsEaTJdQxFIlTZrNIyCTfgKJgVGyb/Eicsx6Zv/2GFYc/iGlFgxF6LjBk3zrkliqE eEJvOcXZAjZ5DERAtEH47izryTEj9cwpT+6iCscer68ljDgcS9HLwE9p5wDz1regwnsG 0QNQ== 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=ASBmy6UiEnwcbSPnr8WZ3b9KDJ/SRLj59lbCAoZXDvYpvzi/yZC1LksWTGB3ZC7fhT BBxqB1dXz0JKmO2BQdjXc6lmRaiGOzBDaXeWgYEQ/As0ORxB2x9lUITRwjpxJW8hF6/m 5iBLkesnkPe3EUsb+FiyGd78e1o+bR3K+a0B0i5OjBQ4dSTbvCRv6dbXmVnoSeMpKCVO wkiMe50Ql7V3cTFvEI+371c3iZP5hfKrUmDAVihZC073dlpKDuYoTphdj2ixyk7Bt05Q qejcZ/0Dr4btccQqwWkr4I5C0NSrG5OSAbSseS7IZRommjx2GZNoR94Vg6rvVSjU3SJ6 ZZvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ajPgpnQt; 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 u16si2280558otq.92.2020.02.18.12.07.58; Tue, 18 Feb 2020 12:08:10 -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=ajPgpnQt; 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 S1728077AbgBRT7a (ORCPT + 99 others); Tue, 18 Feb 2020 14:59:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:38146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728426AbgBRT73 (ORCPT ); Tue, 18 Feb 2020 14:59:29 -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 41F542465A; Tue, 18 Feb 2020 19:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582055968; bh=AQXNCwSq4Z50V5yHlLV51EKDB3lSCNe9jOBAJff5fh4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ajPgpnQt/Gmkd5PUiUhHexmQc5m12GuBH4UwRhurzlSF6TupROZba/H7WeWuVsMyM Ro+r3aho14tAMjgWZrzsssfij0OeVatJNQBTuAKzSAJENu+3ZbUIiNsPoyqxgATRXa wWzvYrWoLB/CO7sD+yNbe6CGwdBH5trjpNms0QMY= 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.4 49/66] s390/time: Fix clk type in get_tod_clock Date: Tue, 18 Feb 2020 20:55:16 +0100 Message-Id: <20200218190432.572394728@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200218190428.035153861@linuxfoundation.org> References: <20200218190428.035153861@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]);