of: Fix missing includes
PATCH 1/1 of: Fix missing includes
This patch fixes missing includes from a number of .c files because the code (wrongfully) depended on prom.h including them. The include of linux/of_address.h was removed in microblaze prom.h in commit "of/address: Clean up function declarations" (sha1 id 22ae782f8), but not fixed in some users. This patch fixes them up.
---
Hi Michal, here's my patch that fixes the microblaze include issues. I've got it in my merge-devicetree branch which I'll be asking Linus to pull on tommorrow after it has been through cross-arch build testing (unless I hear otherwise from you).
Cheers,
g.
arch/microblaze/pci/pci-common.c | 3 ++- arch/microblaze/pci/xilinx_pci.c | 1 + drivers/char/xilinx_hwicap/xilinx_hwicap.c | 1 + drivers/serial/of_serial.c | 3 +-- 4 files changed, 5 insertions(+), 3 deletions(-)
arch/microblaze/pci/pci-common.c +2 -1
@@ -27,10 +27,11 @@#include <linux/irq.h> #include <linux/vmalloc.h> #include <linux/slab.h> +#include <linux/of.h> +#include <linux/of_address.h> #include <asm/processor.h> #include <asm/io.h> -#include <asm/prom.h> #include <asm/pci-bridge.h> #include <asm/byteorder.h>
arch/microblaze/pci/xilinx_pci.c +1 -0
@@ -16,6 +16,7 @@#include <linux/ioport.h> #include <linux/of.h> +#include <linux/of_address.h> #include <linux/pci.h> #include <asm/io.h>
drivers/char/xilinx_hwicap/xilinx_hwicap.c +1 -0
@@ -94,6 +94,7 @@#ifdef CONFIG_OF /* For open firmware. */ +#include <linux/of_address.h> #include <linux/of_device.h> #include <linux/of_platform.h> #endif
drivers/serial/of_serial.c +1 -2
@@ -14,11 +14,10 @@#include <linux/slab.h> #include <linux/serial_core.h> #include <linux/serial_8250.h> +#include <linux/of_address.h> #include <linux/of_platform.h> #include <linux/nwpserial.h> -#include <asm/prom.h> -struct of_serial_info {int type;int line;
Quoted 6 lines · Grant Likely
This patch fixes missing includes from a number of .c files because the code (wrongfully) depended on
prom.hincluding them. The include oflinux/of_address.hwas removed in microblazeprom.hin commit "of/address: Clean up function declarations" (sha1 id22ae782f8), but not fixed in some users. This patch fixes them up.
Quoted 7 lines
Signed-off-by Grant Likely <[email protected]>---
Hi Michal, here's my patch that fixes the microblaze include issues. I've got it in my merge-devicetree branch which I'll be asking Linus to pull on tommorrow after it has been through cross-arch build testing (unless I hear otherwise from you).
Miohal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian
Quoted 11 lines · Michal Simek
Quoted 10 lines · Grant Likely
This patch fixes missing includes from a number of .c files because the code (wrongfully) depended on
prom.hincluding them. The include oflinux/of_address.hwas removed in microblazeprom.hin commit "of/address: Clean up function declarations" (sha1 id22ae782f8), but not fixed in some users. This patch fixes them up.Signed-off-by Grant Likely <[email protected]>---
Quoted 7 lines
Quoted 5 lines
Hi Michal, here's my patch that fixes the microblaze include issues. I've got it in my merge-devicetree branch which I'll be asking Linus to pull on tommorrow after it has been through cross-arch build testing (unless I hear
otherwise from you).Tested-by Michal Simek <[email protected]>
Thanks.
Quoted 1 line
Miohal
Who is Miohal, and why is he at your keyboard? :-D
g.
Michal Simek
maintainerQuoted 16 lines · Grant Likely
Quoted 15 lines · Michal Simek
Quoted 14 lines · Grant Likely
This patch fixes missing includes from a number of .c files because the code (wrongfully) depended on
prom.hincluding them. The include oflinux/of_address.hwas removed in microblazeprom.hin commit "of/address: Clean up function declarations" (sha1 id22ae782f8), but not fixed in some users. This patch fixes them up.Signed-off-by Grant Likely <[email protected]>---
Hi Michal, here's my patch that fixes the microblaze include issues. I've got it in my merge-devicetree branch which I'll be asking Linus to pull on tommorrow after it has been through cross-arch build testing (unless I hear
otherwise from you).
Quoted 7 lines
Quoted 1 line
Tested-by Michal Simek <[email protected]>Thanks.
Quoted 1 line
Miohal
Who is Miohal, and why is he at your keyboard? :-D
I tried to use my new nickname but it seems you don't like it that's why I will use only my given name. :-)
Cheers,
Michal
Signature · 4 lines
Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian