Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4158991ybi; Mon, 3 Jun 2019 06:38:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy8inUeAUuK2nzFg4JnxIIXgsHdidRllpRyUGrLIt/brTHLriOp4ylxG1gSODKBBbl2xUW X-Received: by 2002:a63:234c:: with SMTP id u12mr28658928pgm.264.1559569127119; Mon, 03 Jun 2019 06:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559569127; cv=none; d=google.com; s=arc-20160816; b=yZ3Vrj5iOOBfiy34LJKHcoJ93AMabtEarZt7nYJ92w7S88fRpxEj0Q3mVFHFmF/v1x prm1W/8EFp/pjXwdyK4d+Uop68VVGOySw9XydHR6M0SkJ9MFIu4dIusi4iBZEaUGqnii p7MG5mvAjidW7q8fGQAySD95h8IR4Kqwa60AwCMGyfgWWfqAwXdzbER+fq+ABj3eF4mp KXYhJsqE0iHDpHh0hquBcXom1hnnI1AniwbKlKlvhyegPL3DAjAoXM+IPav3yHaK2iDf IDz09KsE1/CDBwpgSvs138gqdXRY8OwPkUFMr33REbHZMUo8jKZ89zV/mRkpQoonbbjU jqNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:dkim-signature:dkim-filter; bh=oSVN5YJc3E2Qqys1BtEdV27ASDQot3Pvhf7UHa3K/Ew=; b=IYRY0tGW9xtAS70UhvoIjcc+uqbqaBLu4ks9WYIfL8JLG1cWz7TcKflOum6B2LBgBz fYvJx0UZbdIxnPZn6Gi8Q4Srh4iob352GeK7qRZCOYxXXNr9ztbVTyb72CWxCgPp3+kP imwsZdt8HNbW0Zz8gPhvgkcB7MUYsWamxasNGGqBRV6Go72eQlwMupkdwO5s2FsJIF4x JEc+P3gE+tb5khhSI2pCqE8HCYz9mvH9seC0qHJxJBz+TPKWnS6+n1y/OJTuVoHauKyl Af9pZLG0V2iJTunEXycLZT3tDAskXlXnDx9nVquE+dPWut3vWEKbvK5LGiE41vUWbxbi HeZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2019051801 header.b=ED+5eubQ; 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=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si19578220pla.122.2019.06.03.06.38.29; Mon, 03 Jun 2019 06:38:47 -0700 (PDT) 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=@zytor.com header.s=2019051801 header.b=ED+5eubQ; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728770AbfFCNfG (ORCPT + 99 others); Mon, 3 Jun 2019 09:35:06 -0400 Received: from terminus.zytor.com ([198.137.202.136]:34743 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727387AbfFCNfG (ORCPT ); Mon, 3 Jun 2019 09:35:06 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x53DYn3e610698 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 Jun 2019 06:34:49 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x53DYn3e610698 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019051801; t=1559568890; bh=oSVN5YJc3E2Qqys1BtEdV27ASDQot3Pvhf7UHa3K/Ew=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=ED+5eubQYmpVVggsrqBCRTW/SAjP1HXCvI/V9O3xGgz+RuC9EQBuQDhJ119dsPl9s 5xrvQa/+FIOzY6gH1kZ+2fKC/YWH0lU5yY/fDzFBfgXfI7cBPe9KHhMkwfuBm0bkXn u5hJFqVZo/PCSFPW0sR/sN9hxe35IAItJXkTkTAdbceT1qXK1Cirxk0+Dbp/jnyT6t IghahWfM0XdybG7ejuPPacgPmql0N4oM6XEiGw3IuR7fUCCJd8yC4rffN6DuvnBG+e BMaHOMNyKC7yxIcxBJdOtoKbMxjKHo0iR2tbpjBL1kNq3Ye5BODE859+wV1oNSmIJX ZPHjN+ha/7tDg== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x53DYm70610695; Mon, 3 Jun 2019 06:34:48 -0700 Date: Mon, 3 Jun 2019 06:34:48 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Mark Rutland Message-ID: Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, will.deacon@arm.com, tglx@linutronix.de, heiko.carstens@de.ibm.com, mark.rutland@arm.com, peterz@infradead.org, hpa@zytor.com, torvalds@linux-foundation.org Reply-To: peterz@infradead.org, hpa@zytor.com, torvalds@linux-foundation.org, mark.rutland@arm.com, tglx@linutronix.de, will.deacon@arm.com, heiko.carstens@de.ibm.com, mingo@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20190522132250.26499-3-mark.rutland@arm.com> References: <20190522132250.26499-3-mark.rutland@arm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/atomic, s390/pci: Prepare for atomic64_read() conversion Git-Commit-ID: 982164d62a4b2097c0db28ae7c31fc905af26bb8 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 982164d62a4b2097c0db28ae7c31fc905af26bb8 Gitweb: https://git.kernel.org/tip/982164d62a4b2097c0db28ae7c31fc905af26bb8 Author: Mark Rutland AuthorDate: Wed, 22 May 2019 14:22:34 +0100 Committer: Ingo Molnar CommitDate: Mon, 3 Jun 2019 12:32:56 +0200 locking/atomic, s390/pci: Prepare for atomic64_read() conversion The return type of atomic64_read() varies by architecture. It may return long (e.g. powerpc), long long (e.g. arm), or s64 (e.g. x86_64). This is somewhat painful, and mandates the use of explicit casts in some cases (e.g. when printing the return value). To ameliorate matters, subsequent patches will make the atomic64 API consistently use s64. As a preparatory step, this patch updates the s390 pci debug code to treat the return value of atomic64_read() as s64, using an explicit cast. This cast will be removed once the s64 conversion is complete. Signed-off-by: Mark Rutland Signed-off-by: Peter Zijlstra (Intel) Cc: Heiko Carstens Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: aou@eecs.berkeley.edu Cc: arnd@arndb.de Cc: bp@alien8.de Cc: catalin.marinas@arm.com Cc: davem@davemloft.net Cc: fenghua.yu@intel.com Cc: herbert@gondor.apana.org.au Cc: ink@jurassic.park.msu.ru Cc: jhogan@kernel.org Cc: linux@armlinux.org.uk Cc: mattst88@gmail.com Cc: mpe@ellerman.id.au Cc: palmer@sifive.com Cc: paul.burton@mips.com Cc: paulus@samba.org Cc: ralf@linux-mips.org Cc: rth@twiddle.net Cc: tony.luck@intel.com Cc: vgupta@synopsys.com Link: https://lkml.kernel.org/r/20190522132250.26499-3-mark.rutland@arm.com Signed-off-by: Ingo Molnar --- arch/s390/pci/pci_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/pci/pci_debug.c b/arch/s390/pci/pci_debug.c index 6b48ca7760a7..45eccf79e990 100644 --- a/arch/s390/pci/pci_debug.c +++ b/arch/s390/pci/pci_debug.c @@ -74,8 +74,8 @@ static void pci_sw_counter_show(struct seq_file *m) int i; for (i = 0; i < ARRAY_SIZE(pci_sw_names); i++, counter++) - seq_printf(m, "%26s:\t%lu\n", pci_sw_names[i], - atomic64_read(counter)); + seq_printf(m, "%26s:\t%llu\n", pci_sw_names[i], + (s64)atomic64_read(counter)); } static int pci_perf_show(struct seq_file *m, void *v)