Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jul 2016 23:14:10 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302858 - head/sys/sys
Message-ID:  <201607142314.u6ENEAKF038786@repo.freebsd.org>

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



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