[PATCH 14/17] include/linux/: Include a smaller header if just for NULL
From: Alejandro Colomar
Date: Fri Nov 19 2021 - 06:37:54 EST
Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
include/linux/extable.h | 2 +-
include/linux/string.h | 2 +-
include/linux/ucs2_string.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/extable.h b/include/linux/extable.h
index 4ab9e78f313b..7650a7adce76 100644
--- a/include/linux/extable.h
+++ b/include/linux/extable.h
@@ -2,7 +2,7 @@
#ifndef _LINUX_EXTABLE_H
#define _LINUX_EXTABLE_H
-#include <linux/stddef.h> /* for NULL */
+#include <linux/NULL.h>
#include <linux/types.h>
struct module;
diff --git a/include/linux/string.h b/include/linux/string.h
index 2ddcd560659b..5a22a93c53f5 100644
--- a/include/linux/string.h
+++ b/include/linux/string.h
@@ -3,8 +3,8 @@
#define _LINUX_STRING_H_
#include <linux/compiler.h> /* for inline */
+#include <linux/NULL.h>
#include <linux/types.h> /* for size_t */
-#include <linux/stddef.h> /* for NULL */
#include <linux/errno.h> /* for E2BIG */
#include <linux/offsetof.h>
#include <linux/stdarg.h>
diff --git a/include/linux/ucs2_string.h b/include/linux/ucs2_string.h
index cf3ada3e820e..c05242de728e 100644
--- a/include/linux/ucs2_string.h
+++ b/include/linux/ucs2_string.h
@@ -2,8 +2,8 @@
#ifndef _LINUX_UCS2_STRING_H_
#define _LINUX_UCS2_STRING_H_
+#include <linux/NULL.h>
#include <linux/types.h> /* for size_t */
-#include <linux/stddef.h> /* for NULL */
typedef u16 ucs2_char_t;
--
2.33.1