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 Durr, declarations don't...
details: https://anonhg.NetBSD.org/src/rev/dc6a6d57ca97
branches: trunk
changeset: 992462:dc6a6d57ca97
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:39:27 2018 +0000
description:
Durr, declarations don't work like that.
diffstat:
sys/external/bsd/drm2/include/linux/hashtable.h | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (23 lines):
diff -r e67b760b6a42 -r dc6a6d57ca97 sys/external/bsd/drm2/include/linux/hashtable.h
--- a/sys/external/bsd/drm2/include/linux/hashtable.h Mon Aug 27 06:39:16 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/hashtable.h Mon Aug 27 06:39:27 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hashtable.h,v 1.4 2018/08/27 06:23:19 riastradh Exp $ */
+/* $NetBSD: hashtable.h,v 1.5 2018/08/27 06:39:27 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -36,12 +36,8 @@
#include <linux/list.h>
-/*
- * XXX This assumes that HLIST_HEAD_INIT is just initialization to a
- * null pointer.
- */
#define DECLARE_HASHTABLE(name, bits) \
- struct hlist_head name[1u << (bits)] = { HLIST_HEAD_INIT }
+ struct hlist_head name[1u << (bits)]
static inline void
__hash_init(struct hlist_head *hash, unsigned n)
Home |
Main Index |
Thread Index |
Old Index