Skip to content
Permalink
Browse files
list: Replace kernel.h with the necessary inclusions
When kernel.h is used in the headers it adds a lot into dependency hell,
especially when there are circular dependencies are involved.

Replace kernel.h inclusion with the list of what is really being used.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
andy-shev authored and intel-lab-lkp committed Oct 13, 2021
1 parent 77f1332 commit 4797f8ad0f7b6807a7af02543f77c0ee1b340537
Showing 1 changed file with 3 additions and 1 deletion.
@@ -2,11 +2,13 @@
#ifndef _LINUX_LIST_H
#define _LINUX_LIST_H

#include <linux/container_of.h>
#include <linux/types.h>
#include <linux/stddef.h>
#include <linux/poison.h>
#include <linux/const.h>
#include <linux/kernel.h>

#include <asm/barrier.h>

/*
* Circular doubly linked list implementation.

0 comments on commit 4797f8a

Please sign in to comment.