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/8f1869a31390
branches:  trunk
changeset: 364365:8f1869a31390
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 8a6f322e4a68 -r 8f1869a31390 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