Module Name: src
Committed By: riastradh
Date: Mon Aug 27 07:09:07 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/include/linux: types.h
Log Message:
Fix definition of DEFINE_BITMAP.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/drm2/include/linux/types.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/types.h
diff -u src/sys/external/bsd/drm2/include/linux/types.h:1.5 src/sys/external/bsd/drm2/include/linux/types.h:1.6
--- src/sys/external/bsd/drm2/include/linux/types.h:1.5 Mon Aug 27 06:06:41 2018
+++ src/sys/external/bsd/drm2/include/linux/types.h Mon Aug 27 07:09:07 2018
@@ -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 @@ struct rcu_head {
};
-#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_ */