diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-19 16:33:19 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-11-20 13:21:59 +0100 |
commit | 0fb2e646fd033c3a6389ef289d79150f93e683f8 (patch) | |
tree | 5f3a3268cdf3a3522bd6dc1050fc3c3b248fb6b0 | |
parent | 4383716ae61bc804cf08e65dc9669bade56ee816 (diff) |
linux/stddef.h, linux/NULL.h: Split NULL into a separate header
Include <linux/NULL.h> from <linux/stddef.h> for compatibility.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r-- | include/linux/NULL.h | 10 | ||||
-rw-r--r-- | include/linux/stddef.h | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/include/linux/NULL.h b/include/linux/NULL.h new file mode 100644 index 000000000000..f09d8baecc80 --- /dev/null +++ b/include/linux/NULL.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _LINUX_NULL_H +#define _LINUX_NULL_H + + +#undef NULL +#define NULL ((void *)0) + + +#endif /* _LINUX_NULL_H */ diff --git a/include/linux/stddef.h b/include/linux/stddef.h index c2e7e5051ef3..3f7ddcd5e0aa 100644 --- a/include/linux/stddef.h +++ b/include/linux/stddef.h @@ -5,14 +5,12 @@ #include <uapi/linux/stddef.h> +#include <linux/NULL.h> #include <linux/offsetof.h> #include <linux/offsetofend.h> #include <linux/sizeof_field.h> -#undef NULL -#define NULL ((void *)0) - enum { false = 0, true = 1 |