From: Rosen Penev <rosenp@gmail.com>
To: linux-mtd@lists.infradead.org
Subject: [PATCH 2/5] mtd-utils: rbtree: just include stddef.h
Date: Sun, 26 Oct 2025 13:00:46 -0700 [thread overview]
Message-ID: <20251026200049.25152-2-rosenp@gmail.com> (raw)
In-Reply-To: <20251026200049.25152-1-rosenp@gmail.com>
There's nothing specific in the linux headers that's needed.
Signed-off-by: Rosen Penev <rosenp@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
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2025-10-26 20:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-26 20:00 [PATCH 1/5] mtd-utils: don't include features.h Rosen Penev
2025-10-26 20:00 ` Rosen Penev [this message]
2025-10-26 20:00 ` [PATCH 3/5] mtd-utils: reduce linux/types.h usage Rosen Penev
2025-10-26 20:00 ` [PATCH 4/5] mtd-utils: serve_image: fix _POSIX_C_SOURCE Rosen Penev
2025-10-26 20:00 ` [PATCH 5/5] mtd-utils: add GNU_SOURCE define to c files Rosen Penev
2025-11-28 20:43 ` David Oberhollenzer
2025-11-28 20:50 ` Rosen Penev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251026200049.25152-2-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.