Module Name: src
Committed By: riastradh
Date: Mon Aug 27 14:51:06 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/include/linux: bitmap.h
Log Message:
Name the number of words in bitmap_zero too.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/drm2/include/linux/bitmap.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/bitmap.h
diff -u src/sys/external/bsd/drm2/include/linux/bitmap.h:1.6 src/sys/external/bsd/drm2/include/linux/bitmap.h:1.7
--- src/sys/external/bsd/drm2/include/linux/bitmap.h:1.6 Mon Aug 27 14:50:52 2018
+++ src/sys/external/bsd/drm2/include/linux/bitmap.h Mon Aug 27 14:51:05 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: bitmap.h,v 1.6 2018/08/27 14:50:52 riastradh Exp $ */
+/* $NetBSD: bitmap.h,v 1.7 2018/08/27 14:51:05 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -46,8 +46,9 @@ static inline void
bitmap_zero(unsigned long *bitmap, size_t nbits)
{
const size_t bpl = NBBY * sizeof(*bitmap);
+ size_t n = howmany(nbits, bpl);
- memset(bitmap, 0, howmany(nbits, bpl) * sizeof(*bitmap));
+ memset(bitmap, 0, n * sizeof(*bitmap));
}
/*