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:
parent
1d9f01b18e
commit
4eb18346d1
@ -32,7 +32,6 @@
|
||||
#define _LINUX_COMPLETION_H_
|
||||
|
||||
#include <linux/errno.h>
|
||||
#include <linux/wait.h>
|
||||
|
||||
struct completion {
|
||||
unsigned int done;
|
||||
|
@ -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>
|
||||
|
||||
|
@ -35,6 +35,7 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/kref.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
struct kobject;
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user