Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 1 | #ifndef _KERNEL_H |
| 2 | #define _KERNEL_H |
| 3 | |
Matthew Wilcox | ab3a1ff | 2016-12-16 15:11:05 -0500 | [diff] [blame] | 4 | #include "../../include/linux/kernel.h" |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 5 | #include <string.h> |
| 6 | #include <stdio.h> |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 7 | #include <limits.h> |
| 8 | |
Matthew Wilcox | c68a2aa | 2016-12-16 11:52:43 -0500 | [diff] [blame] | 9 | #include <linux/compiler.h> |
| 10 | #include <linux/err.h> |
| 11 | #include <linux/bitops.h> |
| 12 | #include <linux/log2.h> |
Ross Zwisler | 21ef533 | 2016-05-20 17:02:26 -0700 | [diff] [blame] | 13 | #include "../../../include/linux/kconfig.h" |
Matthew Wilcox | d42cb1a | 2016-05-20 17:01:39 -0700 | [diff] [blame] | 14 | |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 15 | #define printk printf |
Matthew Wilcox | f518b16 | 2016-05-20 17:01:36 -0700 | [diff] [blame] | 16 | #define pr_debug printk |
Matthew Wilcox | 0a835c4 | 2016-12-20 10:27:56 -0500 | [diff] [blame] | 17 | #define pr_cont printk |
Matthew Wilcox | f518b16 | 2016-05-20 17:01:36 -0700 | [diff] [blame] | 18 | |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 19 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
| 20 | |
Matthew Wilcox | 1366c37 | 2016-03-17 14:21:45 -0700 | [diff] [blame] | 21 | #endif /* _KERNEL_H */ |