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 Make uninitialized_var k...
details: https://anonhg.NetBSD.org/src/rev/0fbaa133021d
branches: trunk
changeset: 327922:0fbaa133021d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Mar 21 02:25:05 2014 +0000
description:
Make uninitialized_var kludge expand to `x = 0'.
Forgot to commit this the other day.
diffstat:
sys/external/bsd/drm2/include/linux/kernel.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 1035af134b51 -r 0fbaa133021d sys/external/bsd/drm2/include/linux/kernel.h
--- a/sys/external/bsd/drm2/include/linux/kernel.h Fri Mar 21 01:43:33 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/kernel.h Fri Mar 21 02:25:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.3 2014/03/21 02:25:05 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -44,7 +44,11 @@
#define barrier() __insn_barrier()
#define unlikely(X) __predict_false(X)
-#define uninitialized_var(x) x
+/*
+ * XXX Linux kludge to work around GCC uninitialized variable warning.
+ * Linux does `x = x', which is bollocks.
+ */
+#define uninitialized_var(x) x = 0
/* XXX These will multiply evaluate their arguments. */
#define max_t(T, X, Y) MAX(X, Y)
Home |
Main Index |
Thread Index |
Old Index