Merge commit '7b3017805866b2bb36a092a3ea25ff0ec9b6fd9e' into experimental
Conflicts: datapath/hwtable-dummy/hwtable-dummy.c datapath/hwtable_dummy/Modules.mk datapath/hwtable_dummy/hwtable_dummy.c datapath/hwtable_nf2/hwtable_nf2.c utilities/dpctl.c Resolved above conflicts
This commit is contained in:
commit
1feb499bf3
126 files changed
+7964
-1829
No files matched your search
@@ -2,6 +2,7 @@
|
||||
#define __LINUX_KERNEL_WRAPPER_H 1
|
||||
|
||||
#include_next <linux/kernel.h>
|
||||
#include <linux/config.h>
|
||||
|
||||
/**
|
||||
* container_of - cast a member of a structure out to the containing structure
|
||||
@@ -40,4 +41,26 @@ int vprintk(const char *msg, ...)
|
||||
/* Force a compilation error if condition is true */
|
||||
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
|
||||
|
||||
/**
|
||||
* might_sleep - annotation for functions that can sleep
|
||||
*
|
||||
* this macro will print a stack trace if it is executed in an atomic
|
||||
* context (spinlock, irq-handler, ...).
|
||||
*
|
||||
* This is a useful debugging help to be able to catch problems early and not
|
||||
* be bitten later when the calling function happens to sleep when it is not
|
||||
* supposed to.
|
||||
*/
|
||||
#define might_resched() do { } while (0)
|
||||
|
||||
#ifdef CONFIG_DEBUG_SPINLOCK
|
||||
void __might_sleep(char *file, int line);
|
||||
# define might_sleep() \
|
||||
do { __might_sleep(__FILE__, __LINE__); might_resched(); } while (0)
|
||||
#else
|
||||
# define might_sleep() do { might_resched(); } while (0)
|
||||
#endif
|
||||
|
||||
#define might_sleep_if(cond) do { if (cond) might_sleep(); } while (0)
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,2 @@
|
||||
/* In Linux 2.6.26, part of list.h was broken out into rculist.h. */
|
||||
#include <linux/list.h>
|
||||
Reference in new issue
Block a user