svn commit: r303228 - stable/11/sys/sys

John Baldwin jhb at FreeBSD.org
Sat Jul 23 17:38:00 UTC 2016


Author: jhb
Date: Sat Jul 23 17:37:59 2016
New Revision: 303228
URL: https://svnweb.freebsd.org/changeset/base/303228

Log:
  MFC 302858: Move nested include of <sys/queue.h> inside _KERNEL.
  
  This removes namespace pollution for userland brought in by r299122.
  
  PR:		210319
  Approved by:	re (kib)

Modified:
  stable/11/sys/sys/cpuset.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/sys/cpuset.h
==============================================================================
--- stable/11/sys/sys/cpuset.h	Sat Jul 23 17:36:17 2016	(r303227)
+++ stable/11/sys/sys/cpuset.h	Sat Jul 23 17:37:59 2016	(r303228)
@@ -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-stable mailing list