[PATCH 2/5] mtd-utils: rbtree: just include stddef.h

Rosen Penev rosenp at gmail.com
Sun Oct 26 13:00:46 PDT 2025


There's nothing specific in the linux headers that's needed.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 include/rbtree.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/rbtree.h b/include/rbtree.h
index 89926e7..e4a215d 100644
--- a/include/rbtree.h
+++ b/include/rbtree.h
@@ -94,8 +94,7 @@ static inline struct page * rb_insert_page_cache(struct inode * inode,
 #ifndef	_LINUX_RBTREE_H
 #define	_LINUX_RBTREE_H
 
-#include <linux/kernel.h>
-#include <linux/stddef.h>
+#include <stddef.h>
 
 struct rb_node
 {
-- 
2.51.1




More information about the linux-mtd mailing list