From patchwork Tue Nov 10 04:18:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stewart Smith X-Patchwork-Id: 542145 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9CCC914031F for ; Tue, 10 Nov 2015 15:20:59 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 7B3661A06A7 for ; Tue, 10 Nov 2015 15:20:59 +1100 (AEDT) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e39.co.us.ibm.com (e39.co.us.ibm.com [32.97.110.160]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id CED2F1A01A7 for ; Tue, 10 Nov 2015 15:20:24 +1100 (AEDT) Received: from localhost by e39.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 9 Nov 2015 21:20:22 -0700 Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 9 Nov 2015 21:20:21 -0700 X-IBM-Helo: d01dlp03.pok.ibm.com X-IBM-MailFrom: stewart@linux.vnet.ibm.com X-IBM-RcptTo: skiboot@lists.ozlabs.org Received: from b01cxnp22034.gho.pok.ibm.com (b01cxnp22034.gho.pok.ibm.com [9.57.198.24]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id D9B50C9004A for ; Mon, 9 Nov 2015 23:08:30 -0500 (EST) Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id tAA4KKCK66060432 for ; Tue, 10 Nov 2015 04:20:20 GMT Received: from d01av04.pok.ibm.com (localhost [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id tAA4KKGV023621 for ; Mon, 9 Nov 2015 23:20:20 -0500 Received: from oc8180480414.ibm.com ([9.81.198.226]) by d01av04.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with SMTP id tAA4K79t022560; Mon, 9 Nov 2015 23:20:18 -0500 Received: from ka1.ozlabs.ibm.com (localhost [127.0.0.1]) by oc8180480414.ibm.com (Postfix) with ESMTP id 419555761; Tue, 10 Nov 2015 15:20:07 +1100 (AEDT) From: Stewart Smith To: skiboot@lists.ozlabs.org Date: Tue, 10 Nov 2015 15:18:12 +1100 Message-Id: <1447129110-21600-19-git-send-email-stewart@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447129110-21600-1-git-send-email-stewart@linux.vnet.ibm.com> References: <1447129110-21600-1-git-send-email-stewart@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15111004-0033-0000-0000-000006C5D607 Subject: [Skiboot] [PATCH 18/36] sparse: fix warning constant is so big it is (unsigned) long in hw/p5ioc2.c X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" hw/p5ioc2.c:80:18: warning: constant 0x0000080000000000 is so big it is long hw/p5ioc2.c:84:18: warning: constant 0xffffff7fffffffff is so big it is unsigned long hw/p5ioc2.c:87:44: warning: constant 0x0001000200000000 is so big it is long hw/p5ioc2.c:185:33: warning: constant 0x5005DDDED2000000 is so big it is long Signed-off-by: Stewart Smith --- hw/p5ioc2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/p5ioc2.c b/hw/p5ioc2.c index b0592d614bd6..ec9b7dad0942 100644 --- a/hw/p5ioc2.c +++ b/hw/p5ioc2.c @@ -77,14 +77,14 @@ static void p5ioc2_inits(struct p5ioc2 *ioc) */ /* mask off interrupt presentation timeout in FIRMC */ out_be64(ioc->regs + (P5IOC2_FIRMC | P5IOC2_REG_OR), - 0x0000080000000000); + 0x0000080000000000UL); /* turn off display alter mode */ out_be64(ioc->regs + (P5IOC2_CTL | P5IOC2_REG_AND), - 0xffffff7fffffffff); + 0xffffff7fffffffffUL); /* setup hub and clustering interrupts BUIDs to 1 and 2 */ - out_be64(ioc->regs + P5IOC2_SBUID, 0x0001000200000000); + out_be64(ioc->regs + P5IOC2_SBUID, 0x0001000200000000UL); /* setup old style MSI BUID (should be unused but set it up anyway) */ out_be32(ioc->regs + P5IOC2_BUCO, 0xf); @@ -182,7 +182,7 @@ static void p5ioc2_ca_init(struct p5ioc2 *ioc, int ca) */ //out_be64(regs + CA_CCR, 0x5045DDDED2000000); // disable memlimit: - out_be64(regs + CA_CCR, 0x5005DDDED2000000); + out_be64(regs + CA_CCR, 0x5005DDDED2000000UL); /* The system memory base/limit etc... setup will be done when the * user enables TCE via OPAL calls