summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-06-30 11:24:26 +0200
committerUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-07-03 07:38:15 +0200
commit2fb03de5256989d603f68dc07f06b6dbd72a9d92 (patch)
treeaeb1e4fc3f958cc7ca5e0414bad3d8ac2b3dd70b
parent4c8f323b9e1517ea97bfdb2bc6f3c246f7d43eac (diff)
downloadlinux-stable-2fb03de5256989d603f68dc07f06b6dbd72a9d92.tar.gz
linux-stable-2fb03de5256989d603f68dc07f06b6dbd72a9d92.zip
of: Explicitly include <linux/types.h> and <linux/err.h>
<linux/of_platform.h> uses resource_size_t and relies on the transitive include <linux/mod_devicetable.h> -> <linux/types.h>. It also uses error constants and thus relying on the include chain <linux/mod_devicetable.h> -> <linux/uuid.h> -> <linux/string.h> -> <linux/err.h>. With the plan to split <linux/mod_devicetable.h> per subsystem and then only letting of_platform.h include the of-specific bits (which don't require these two headers), add the needed includes explicitly to keep the header self-contained. Acked-by: Danilo Krummrich <dakr@kernel.org> Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://patch.msgid.link/a730991bc8813cf70c2445064ea425291538f709.1782808461.git.u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
-rw-r--r--include/linux/of_platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index 17471ef8e092..48f73af88dd7 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -6,6 +6,8 @@
* <benh@kernel.crashing.org>
*/
+#include <linux/types.h>
+#include <linux/err.h>
#include <linux/mod_devicetable.h>
struct device;