Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp471550ybm; Wed, 22 May 2019 06:26:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFO1uSAkg9BVEQKSvzFWZ0tE1jHTlMyyD4ehVTh7InBFRRIRSngaf1AzeRmVrTC5jT2Iyr X-Received: by 2002:a17:902:1029:: with SMTP id b38mr50143836pla.72.1558531587098; Wed, 22 May 2019 06:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558531587; cv=none; d=google.com; s=arc-20160816; b=SIj8XZGsyKDKLTbXRaiN+1+H7bvPYkqnNOTeBDAZsdru7pjI3EmnzidltCLgXEHpfV J7/5oiJe3yfDJDpWfslyCeDrmPRWfka09ekfUpjvqu8AR2+WtBAUcAMGm/0Vak4wviyN zriQFxcV0zuRlzsgQpPuJLYCO/RqUS4RqVI6el+krFYnb7jBvJ+vwiT/gc8RFf75jkmx aI5/biBU5n2lhfhS+McvDnZ4cbD+4SpYCLRiWHh/tzCeG/wK60BDOMZZulT1z6a5qJNV mvmx9pxHNNthoWrJPwUwnxKxg3Uc5eTMW73dnzyXZAzTDZA6E2CjiY9kB7seiNg6Fvrl O8bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=HH+WNDB7mi6967CYBqXdSGIdnXMS88TpDftB0RX7fM8=; b=ruQ63oy4vtRDIrqPSjwtneJbGY1SZBknZs3rgJ9X1ACrvU/dc5gJEb174SgkGcvVY1 Mr+sRk1Vo8s8qH658UnNjCysYVKHFTUv4JVxYvsjvwk0fDKWx3VZErxFYF+HJIn803WS w8bUeoAIy2oyD769l9DsamKgu0xjt7uk2r/Lz1JNdnmoHEDiHD/DyFFX+BdIBRgUvOSv DqZKlngTIYx11f2ZdvevFX5T2fC5KUZuL+UN7h/mucXKI7dtMAAelfV4ESApEkzpb76I p7mVh4J24USsuxlghTBI+We6nWD4lF2u5xlWPToYtUc7Nvpb6fkKuj7XfMrxnDSXjhCO hGUg== ARC-Authentication-Results: i=1; mx.google.com; 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 j23si18796369pgn.507.2019.05.22.06.26.11; Wed, 22 May 2019 06:26:27 -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; 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 S1729482AbfEVNXv (ORCPT + 99 others); Wed, 22 May 2019 09:23:51 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50556 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728912AbfEVNXv (ORCPT ); Wed, 22 May 2019 09:23:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1AED080D; Wed, 22 May 2019 06:23:51 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CE43F3F575; Wed, 22 May 2019 06:23:46 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org, peterz@infradead.org, will.deacon@arm.com Cc: aou@eecs.berkeley.edu, arnd@arndb.de, bp@alien8.de, catalin.marinas@arm.com, davem@davemloft.net, fenghua.yu@intel.com, heiko.carstens@de.ibm.com, herbert@gondor.apana.org.au, ink@jurassic.park.msu.ru, jhogan@kernel.org, linux@armlinux.org.uk, mark.rutland@arm.com, mattst88@gmail.com, mingo@kernel.org, mpe@ellerman.id.au, palmer@sifive.com, paul.burton@mips.com, paulus@samba.org, ralf@linux-mips.org, rth@twiddle.net, stable@vger.kernel.org, tglx@linutronix.de, tony.luck@intel.com, vgupta@synopsys.com Subject: [PATCH 02/18] locking/atomic: s390/pci: prepare for atomic64_read() conversion Date: Wed, 22 May 2019 14:22:34 +0100 Message-Id: <20190522132250.26499-3-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190522132250.26499-1-mark.rutland@arm.com> References: <20190522132250.26499-1-mark.rutland@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Heiko Carstens Cc: Peter Zijlstra Cc: Will Deacon --- 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) -- 2.11.0