Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1796164ybv; Sat, 8 Feb 2020 06:11:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzfNbL0Zg0OMIHODuB/ajZatQiigxw7IdlPSqpitA4FtaBJoWpfylAU/V/KCqDwGEbSk78v X-Received: by 2002:a9d:6f85:: with SMTP id h5mr3544036otq.19.1581171117865; Sat, 08 Feb 2020 06:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581171117; cv=none; d=google.com; s=arc-20160816; b=bhaDyYbWDWRJJBcFdFyrEuQqxbPHtgwpgfoNtRtOilumiDCsKTK9HC8WiVkRdGoFyn stpKfQ4VLv22hw3a0U7H2FRLyAyStpA7d1/3P21k0YcPSBL4rHaH1LMqig+eTl7X/WOe 5ICdVoxKGQ1v9K7NR3IBITqeu7zvTU5Wxxi2g3Nc1ofbo97OycX/89kfdxT3+hzbjQH4 PZ5iWHadRf9Nj9ZfOfm8w915tJujCGtvufF9EtWbmccx5pVv3BE69e7mPd9l3s8K9/+X gjc0W0zk1bsvQ0APXWS2V5CCn5xWIXfLpO5EwjrWuRMcc7/YK1uZ4gx62rgqkViLtO2i saMg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vng+4h19JerkC+XuBG4vryvn9zwYhKsMZJpIzjBBzWI=; b=s0QGdujwhQPFxJdLlEOyyOMd4pZs3ntu4PQ0E36Pgwt9QI3ccKaQRkUFGabg6rifL/ UNmbHT7FvANMqPdYFXbYwZ7hKjo0SnszHH0IvUFVlXNNhcaUHZ1en5wUZIgADh+l2PB2 SbHJrfeeDhog6GefQyr8m+BN0jqSu+08M1g2hu5Csgarfk3MVE8GXc4hB+Gup+eLRuz9 Q2ITZzADSPN9QXqMO83QHbnajw3ybtHUoqBJK+F3ElHomJTVZwkkZddQg8TNkkmT3UnK ifPyro+iZQ/UhalgnHtC0YQh2grarjwzKUN6z0QMuS+8bPneX3IImf+7FGLat1oDgwp9 4P6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XsJZtNGd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si1561548otp.33.2020.02.08.06.11.45; Sat, 08 Feb 2020 06:11:57 -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=@gmail.com header.s=20161025 header.b=XsJZtNGd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbgBHOKg (ORCPT + 99 others); Sat, 8 Feb 2020 09:10:36 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:32991 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727196AbgBHOKg (ORCPT ); Sat, 8 Feb 2020 09:10:36 -0500 Received: by mail-oi1-f195.google.com with SMTP id q81so4970723oig.0; Sat, 08 Feb 2020 06:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vng+4h19JerkC+XuBG4vryvn9zwYhKsMZJpIzjBBzWI=; b=XsJZtNGdbeT0FFKAI9CoH+sIrwoJH77B3Bi2G9MrC75ezGFzphFzWpJB8l7fto+jkY ti4aH8mN3ph5duwYi8ZXLZgrOcEwEm/pnpvcVNM2oIHIN4GoR+MseI1Z43MS5A90wvYk WhmjM1LTtbqfPWomThgFDV2Xk/6iY6pZtqJ6d2/nAbDKZC/le1ttd2XFjhaoGfr4hSnG q6tRGv3D5zgaCxGDBX+ILbPZ6Sv1KJ+4JqY1H2Vfy/2ZMgy4xmMrG6UfEMG5d5K7RsSt j1pD1oYt3dMUo0T1qtVSO604Isak18LSXjreMLwtYsdNfntFfyrFxSF6z6OsbKYTSHRd duSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vng+4h19JerkC+XuBG4vryvn9zwYhKsMZJpIzjBBzWI=; b=Hucy0JBatTF+HdQbnwF2KkS1JMQFAm/iTB+s6oiNF36hMAKc5V38FeUWeTJyy++6zb jbL5aYoDFpsn61PYYuxVobKUYX0Q22H9rcctA00nDjNSxXjaLOhWAVosv4Hrb31FDWEX OsQcSylN5DhPrijN3KRdlVeAJ9xoYmou16yjcV0FZfYNQdK0/57Avvuq1lK2JNqMMs7Z WFPeHKRWs9F9kDPDhRGR0E1uvex8Ngr5jhGUevQhir0ASOfOoB7KJCeehYGOpB2gw/Ex T0icy7XMzQ4iN46LoRVdYDTHdugaOB+HKik25l12JRk1hJwAzFbDDiXSsYtAKCfQi6mW gslQ== X-Gm-Message-State: APjAAAUvrpbUQmfJwFgiGLrpphSPemzgw2zX5k+U4o43S0Fy+2fn1Qg3 C2P6WAyYNasz1JqTGuEM4Do= X-Received: by 2002:aca:1a10:: with SMTP id a16mr5591118oia.9.1581171035472; Sat, 08 Feb 2020 06:10:35 -0800 (PST) Received: from localhost.localdomain ([2604:1380:4111:8b00::1]) by smtp.gmail.com with ESMTPSA id k201sm353074oih.43.2020.02.08.06.10.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Feb 2020 06:10:35 -0800 (PST) From: Nathan Chancellor To: Heiko Carstens , Vasily Gorbik , Christian Borntraeger Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH] s390/time: Fix clk type in get_tod_clock Date: Sat, 8 Feb 2020 07:08:59 -0700 Message-Id: <20200208140858.47970-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Nathan Chancellor --- Alternatively, changing the clk type in get_tod_clock_ext to unsigned which is what it was in the early 2000s. arch/s390/include/asm/timex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index 670f14a228e5..6bf3a45ccfec 100644 --- 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(char *clk) 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]); -- 2.25.0