Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jul 2016 17:37:59 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r303228 - stable/11/sys/sys
Message-ID:  <201607231737.u6NHbx9j042163@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607231737.u6NHbx9j042163>