Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/linux Fix definition of DEFINE...



details:   https://anonhg.NetBSD.org/src/rev/0ec5fe7b9fdd
branches:  trunk
changeset: 365897:0ec5fe7b9fdd
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:09:07 2018 +0000

description:
Fix definition of DEFINE_BITMAP.

diffstat:

 sys/external/bsd/drm2/include/linux/types.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 1b9fb8c5ce48 -r 0ec5fe7b9fdd sys/external/bsd/drm2/include/linux/types.h
--- a/sys/external/bsd/drm2/include/linux/types.h       Mon Aug 27 07:08:58 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/types.h       Mon Aug 27 07:09:07 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.5 2018/08/27 06:06:41 riastradh Exp $      */
+/*     $NetBSD: types.h,v 1.6 2018/08/27 07:09:07 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -81,6 +81,8 @@
 
 };
 
-#define DECLARE_BITMAP(name,size) size_t name[size/sizeof(size_t)]
+#define DECLARE_BITMAP(NAME, BITS)                                           \
+       unsigned long NAME[((BITS) + ((NBBY*sizeof(unsigned long)) - 1)) /    \
+               (NBBY*sizeof(unsigned long))]
 
 #endif  /* _LINUX_TYPES_H_ */



Home | Main Index | Thread Index | Old Index