* [PATCH] of: Fix missing includes
@ 2010-08-17 6:00 Grant Likely
2010-08-17 7:45 ` Michal Simek
0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2010-08-17 6:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Michal Simek
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.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
---
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(-)
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 6ca8531..55ef532 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -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>
diff --git a/arch/microblaze/pci/xilinx_pci.c b/arch/microblaze/pci/xilinx_pci.c
index 7869a41..0687a42 100644
--- a/arch/microblaze/pci/xilinx_pci.c
+++ b/arch/microblaze/pci/xilinx_pci.c
@@ -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>
diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c
index 0ed763c..b663d57 100644
--- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c
+++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c
@@ -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
diff --git a/drivers/serial/of_serial.c b/drivers/serial/of_serial.c
index 659a695..2af8fd1 100644
--- a/drivers/serial/of_serial.c
+++ b/drivers/serial/of_serial.c
@@ -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;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] of: Fix missing includes
2010-08-17 6:00 [PATCH] of: Fix missing includes Grant Likely
@ 2010-08-17 7:45 ` Michal Simek
2010-08-17 7:48 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2010-08-17 7:45 UTC (permalink / raw)
To: Grant Likely; +Cc: linux-kernel
Grant Likely wrote:
> 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.
>
> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
> ---
>
> 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 <monstr@monstr.eu>
Miohal
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] of: Fix missing includes
2010-08-17 7:45 ` Michal Simek
@ 2010-08-17 7:48 ` Grant Likely
2010-08-17 7:52 ` Michal Simek
0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2010-08-17 7:48 UTC (permalink / raw)
To: monstr; +Cc: linux-kernel
On Tue, Aug 17, 2010 at 1:45 AM, Michal Simek <monstr@monstr.eu> wrote:
> Grant Likely wrote:
>>
>> 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.
>>
>> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
>> ---
>>
>> 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 <monstr@monstr.eu>
Thanks.
> Miohal
Who is Miohal, and why is he at your keyboard? :-D
g.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] of: Fix missing includes
2010-08-17 7:48 ` Grant Likely
@ 2010-08-17 7:52 ` Michal Simek
0 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2010-08-17 7:52 UTC (permalink / raw)
To: Grant Likely; +Cc: linux-kernel
Grant Likely wrote:
> On Tue, Aug 17, 2010 at 1:45 AM, Michal Simek <monstr@monstr.eu> wrote:
>> Grant Likely wrote:
>>> 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.
>>>
>>> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
>>> ---
>>>
>>> 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 <monstr@monstr.eu>
>
> Thanks.
>
>> 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
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-17 7:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 6:00 [PATCH] of: Fix missing includes Grant Likely
2010-08-17 7:45 ` Michal Simek
2010-08-17 7:48 ` Grant Likely
2010-08-17 7:52 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox