ARM: shmobile: add missing include of of.h
Subsystems (3)
PATCH 1/1 ARM: shmobile: add missing include of of.h
Fixes the following build warnings:
In file included from arch/arm/mach-shmobile/setup-r8a7779.c:25:0:include/linux/of_platform.h:107:13: warning: 'struct of_device_id' declared inside parameter list [enabled by default] include/linux/of_platform.h:107:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] include/linux/of_platform.h:107:13: warning: 'struct device_node' declared inside parameter list [enabled by default]
---
Hi Simon,
I'll just apply this directly if it's OK with you?
-Olof
arch/arm/mach-shmobile/setup-r8a7779.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-shmobile/setup-r8a7779.c +1 -0
@@ -22,6 +22,7 @@#include <linux/init.h> #include <linux/interrupt.h> #include <linux/irq.h> +#include <linux/of.h> #include <linux/of_platform.h> #include <linux/platform_data/gpio-rcar.h> #include <linux/platform_device.h>
Signature · 1 line
1.8.1.192.gc4361b8
PATCH 1/1 ARM: shmobile: add missing include of of.h
Quoted 7 lines · Olof Johansson
Fixes the following build warnings:
In file included from
arch/arm/mach-shmobile/setup-r8a7779.c:25:0:include/linux/of_platform.h:107:13: warning: 'structof_device_id' declared inside parameter list [enabled by default]include/linux/of_platform.h:107:13: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]include/linux/of_platform.h:107:13: warning: 'structdevice_node' declared inside parameter list [enabled by default]
Quoted 6 lines
Signed-off-by Olof Johansson <[email protected]>---
Hi Simon,
I'll just apply this directly if it's OK with you?
Its ok with me.
Quoted 29 lines
(quoted diff) +0
-1-Olof arch/arm/mach-shmobile/setup-r8a7779.c | 1 + 1 file changed, 1 insertion(+)arch/arm/mach-shmobile/setup-r8a7779.c +1
-0@@ -22,6 +22,7 @@#include <linux/init.h> #include <linux/interrupt.h> #include <linux/irq.h> +#include <linux/of.h> #include <linux/of_platform.h> #include <linux/platform_data/gpio-rcar.h> #include <linux/platform_device.h> Signature · 7 lines
1.8.1.192.gc4361b8 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel