* [PATCH] of/irq: export of_irq_count
@ 2015-10-15 10:36 Zhangfei Gao
2015-10-15 11:22 ` Arnd Bergmann
2015-10-15 13:47 ` Rob Herring
0 siblings, 2 replies; 5+ messages in thread
From: Zhangfei Gao @ 2015-10-15 10:36 UTC (permalink / raw)
To: linux-arm-kernel
Export of_irq_count, otherwise module build fail if of_irq_count is used
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: John Garry <john.garry@huawei.com>
---
drivers/of/irq.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index 0c7f4cbe3434..0d149cc48cfe 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -448,6 +448,7 @@ int of_irq_count(struct device_node *dev)
return nr;
}
+EXPORT_SYMBOL_GPL(of_irq_count);
/**
* of_irq_to_resource_table - Fill in resource table with node's IRQ info
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH] of/irq: export of_irq_count
2015-10-15 10:36 [PATCH] of/irq: export of_irq_count Zhangfei Gao
@ 2015-10-15 11:22 ` Arnd Bergmann
2015-10-15 13:47 ` Rob Herring
1 sibling, 0 replies; 5+ messages in thread
From: Arnd Bergmann @ 2015-10-15 11:22 UTC (permalink / raw)
To: linux-arm-kernel
On Thursday 15 October 2015 18:36:42 Zhangfei Gao wrote:
> Export of_irq_count, otherwise module build fail if of_irq_count is used
>
> Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
> Signed-off-by: John Garry <john.garry@huawei.com>
>
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] of/irq: export of_irq_count
2015-10-15 10:36 [PATCH] of/irq: export of_irq_count Zhangfei Gao
2015-10-15 11:22 ` Arnd Bergmann
@ 2015-10-15 13:47 ` Rob Herring
2015-10-15 13:52 ` zhangfei
2015-11-18 14:28 ` zhangfei
1 sibling, 2 replies; 5+ messages in thread
From: Rob Herring @ 2015-10-15 13:47 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Oct 15, 2015 at 5:36 AM, Zhangfei Gao <zhangfei.gao@linaro.org> wrote:
> Export of_irq_count, otherwise module build fail if of_irq_count is used
Which module?
>
> Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
> Signed-off-by: John Garry <john.garry@huawei.com>
> ---
> drivers/of/irq.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/of/irq.c b/drivers/of/irq.c
> index 0c7f4cbe3434..0d149cc48cfe 100644
> --- a/drivers/of/irq.c
> +++ b/drivers/of/irq.c
> @@ -448,6 +448,7 @@ int of_irq_count(struct device_node *dev)
>
> return nr;
> }
> +EXPORT_SYMBOL_GPL(of_irq_count);
>
> /**
> * of_irq_to_resource_table - Fill in resource table with node's IRQ info
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] of/irq: export of_irq_count
2015-10-15 13:47 ` Rob Herring
@ 2015-10-15 13:52 ` zhangfei
2015-11-18 14:28 ` zhangfei
1 sibling, 0 replies; 5+ messages in thread
From: zhangfei @ 2015-10-15 13:52 UTC (permalink / raw)
To: linux-arm-kernel
Hi, Rob
On 10/15/2015 09:47 PM, Rob Herring wrote:
> On Thu, Oct 15, 2015 at 5:36 AM, Zhangfei Gao <zhangfei.gao@linaro.org> wrote:
>> Export of_irq_count, otherwise module build fail if of_irq_count is used
>
> Which module?
We are developing sas driver for hisilicon hip660 platform.
We using of_irq_count to get irq number, since there are many irqs.
When we testing with build module, find build error since of_irq_count
is not exported.
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH] of/irq: export of_irq_count
2015-10-15 13:47 ` Rob Herring
2015-10-15 13:52 ` zhangfei
@ 2015-11-18 14:28 ` zhangfei
1 sibling, 0 replies; 5+ messages in thread
From: zhangfei @ 2015-11-18 14:28 UTC (permalink / raw)
To: linux-arm-kernel
Hi Rob
On 10/15/2015 09:47 PM, Rob Herring wrote:
> On Thu, Oct 15, 2015 at 5:36 AM, Zhangfei Gao <zhangfei.gao@linaro.org> wrote:
>> Export of_irq_count, otherwise module build fail if of_irq_count is used
>
> Which module?
https://lkml.org/lkml/2015/11/17/572
What do you think about this patch?
There is ERROR reported from kbuild.
[auto build test ERROR on scsi/for-next]
[also build test ERROR on v4.4-rc1 next-20151116]
url:
https://github.com/0day-ci/linux/commits/John-Garry/HiSilicon-SAS-driver/20151116-215304
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git
for-next
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
>> ERROR: "of_irq_count" undefined!
Thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-18 14:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 10:36 [PATCH] of/irq: export of_irq_count Zhangfei Gao
2015-10-15 11:22 ` Arnd Bergmann
2015-10-15 13:47 ` Rob Herring
2015-10-15 13:52 ` zhangfei
2015-11-18 14:28 ` zhangfei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).