Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nand ul is not 64-bit on all platforms, use ull when...
details: https://anonhg.NetBSD.org/src/rev/0c4cc1d0e99b
branches: trunk
changeset: 357410:0c4cc1d0e99b
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Thu Nov 09 21:45:24 2017 +0000
description:
ul is not 64-bit on all platforms, use ull when calculating planesize
diffstat:
sys/dev/nand/nand_samsung.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r e558fccdb93a -r 0c4cc1d0e99b sys/dev/nand/nand_samsung.c
--- a/sys/dev/nand/nand_samsung.c Thu Nov 09 21:39:48 2017 +0000
+++ b/sys/dev/nand/nand_samsung.c Thu Nov 09 21:45:24 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nand_samsung.c,v 1.9 2012/11/03 12:12:48 ahoka Exp $ */
+/* $NetBSD: nand_samsung.c,v 1.10 2017/11/09 21:45:24 jmcneill Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.9 2012/11/03 12:12:48 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand_samsung.c,v 1.10 2017/11/09 21:45:24 jmcneill Exp $");
#include "nand.h"
#include "onfi.h"
@@ -181,13 +181,13 @@
planesize = 1024 * 1024 * 1024 / 8;
break;
case 0x5:
- planesize = 2ul * 1024 * 1024 * 1024 / 8;
+ planesize = 2ull * 1024 * 1024 * 1024 / 8;
break;
case 0x6:
- planesize = 4ul * 1024 * 1024 * 1024 / 8;
+ planesize = 4ull * 1024 * 1024 * 1024 / 8;
break;
case 0x7:
- planesize = 8ul * 1024 * 1024 * 1024 / 8;
+ planesize = 8ull * 1024 * 1024 * 1024 / 8;
break;
default:
KASSERTMSG(false, "ID Data parsing bug detected!");
Home |
Main Index |
Thread Index |
Old Index