svn commit: r272574 - head/sys/sys
Mateusz Guzik
mjg at FreeBSD.org
Sun Oct 5 21:39:51 UTC 2014
Author: mjg
Date: Sun Oct 5 21:39:50 2014
New Revision: 272574
URL: https://svnweb.freebsd.org/changeset/base/272574
Log:
seq_t needs to be visible to userspace
Pointy hat to: mjg
Reported by: bz
X-MFC: with r272567
Modified:
head/sys/sys/seq.h
Modified: head/sys/sys/seq.h
==============================================================================
--- head/sys/sys/seq.h Sun Oct 5 21:34:56 2014 (r272573)
+++ head/sys/sys/seq.h Sun Oct 5 21:39:50 2014 (r272574)
@@ -29,6 +29,16 @@
#define _SYS_SEQ_H_
#ifdef _KERNEL
+#include <sys/systm.h>
+#endif
+#include <sys/types.h>
+
+/*
+ * seq_t may be included in structs visible to userspace
+ */
+typedef uint32_t seq_t;
+
+#ifdef _KERNEL
/*
* Typical usage:
@@ -54,10 +64,7 @@
* foo(lobj);
*/
-typedef uint32_t seq_t;
-
/* A hack to get MPASS macro */
-#include <sys/systm.h>
#include <sys/lock.h>
#include <machine/cpu.h>
More information about the svn-src-all
mailing list