svn commit: r302858 - head/sys/sys
John Baldwin
jhb at FreeBSD.org
Thu Jul 14 23:14:11 UTC 2016
Author: jhb
Date: Thu Jul 14 23:14:10 2016
New Revision: 302858
URL: https://svnweb.freebsd.org/changeset/base/302858
Log:
Move nested include of <sys/queue.h> inside _KERNEL.
This removes namespace pollution for userland brought in by r299122.
PR: 210319
Submitted by: knu
MFC after: 1 week
Modified:
head/sys/sys/cpuset.h
Modified: head/sys/sys/cpuset.h
==============================================================================
--- head/sys/sys/cpuset.h Thu Jul 14 20:17:08 2016 (r302857)
+++ head/sys/sys/cpuset.h Thu Jul 14 23:14:10 2016 (r302858)
@@ -35,7 +35,6 @@
#include <sys/_cpuset.h>
#include <sys/bitset.h>
-#include <sys/queue.h>
#define _NCPUBITS _BITSET_BITS
#define _NCPUWORDS __bitset_words(CPU_SETSIZE)
@@ -92,6 +91,8 @@
#define CPUSET_DEFAULT 0
#ifdef _KERNEL
+#include <sys/queue.h>
+
LIST_HEAD(setlist, cpuset);
/*
More information about the svn-src-all
mailing list