Skip to content

Commit 077ca04

Browse files
committed
lib/genalloc: Explicitly include correct DT includes
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Link: https://lore.kernel.org/r/20230714175056.4066297-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 6f75dff commit 077ca04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/genalloc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
#include <linux/rculist.h>
3333
#include <linux/interrupt.h>
3434
#include <linux/genalloc.h>
35-
#include <linux/of_device.h>
35+
#include <linux/of.h>
36+
#include <linux/of_platform.h>
37+
#include <linux/platform_device.h>
3638
#include <linux/vmalloc.h>
3739

3840
static inline size_t chunk_size(const struct gen_pool_chunk *chunk)

0 commit comments

Comments
 (0)