Avoid including list.h in LinuxKPI headers.

list.h includes a number of FreeBSD headers as a workaround for the
LIST_HEAD name collision. To reduce pollution, avoid including list.h
in commonly used headers when it is not explicitly needed.

Reviewed by:	hselasky
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D11249
This commit is contained in:
Mark Johnston 2017-06-18 16:43:57 +00:00
parent 1d9f01b18e
commit 4eb18346d1
10 changed files with 6 additions and 4 deletions

View File

@ -32,7 +32,6 @@
#define _LINUX_COMPLETION_H_
#include <linux/errno.h>
#include <linux/wait.h>
struct completion {
unsigned int done;

View File

@ -49,7 +49,6 @@
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/jiffies.h>
#include <linux/wait.h>
#include <linux/log2.h>
#include <asm/byteorder.h>

View File

@ -35,6 +35,7 @@
#include <linux/kernel.h>
#include <linux/kref.h>
#include <linux/list.h>
#include <linux/slab.h>
struct kobject;

View File

@ -30,7 +30,6 @@
#define _LINUX_MM_TYPES_H_
#include <linux/types.h>
#include <linux/list.h>
#include <linux/page.h>
#include <linux/rwsem.h>

View File

@ -37,7 +37,6 @@
#include <sys/sched.h>
#include <sys/sleepqueue.h>
#include <linux/list.h>
#include <linux/compat.h>
#include <linux/completion.h>
#include <linux/pid.h>

View File

@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
#include <linux/device.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/wait.h>
#include <asm/atomic.h>

View File

@ -37,6 +37,7 @@
#include <linux/slab.h>
#include <linux/jhash.h>
#include <linux/kthread.h>
#include <linux/wait.h>
#include <rdma/ib_fmr_pool.h>

View File

@ -50,6 +50,7 @@
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/wait.h>
#include <netinet/tcp.h>
#include <sys/mutex.h>

View File

@ -40,6 +40,7 @@
#include <linux/dma-attrs.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/wait.h>
#include <sys/priv.h>
#include <sys/resourcevar.h>
#include <sys/vmmeter.h>

View File

@ -45,6 +45,7 @@
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/semaphore.h>
#include <linux/wait.h>
#include "mthca_provider.h"
#include "mthca_doorbell.h"