of/irq: export of_irq_count
PATCH 1/1 of/irq: export of_irq_count
Export of_irq_count, otherwise module build fail if of_irq_count is used
--- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+)
drivers/of/irq.c +1 -0
@@ -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
Signature · 1 line
1.9.1
PATCH 1/1 of/irq: export of_irq_count
Quoted 5 lines · On Thursday 15 October 2015 18:36:42 Zhangfei Gao wrote:
Export
of_irq_count, otherwise module build fail ifof_irq_countis usedSigned-off-by Zhangfei Gao <[email protected]>Signed-off-by John Garry <[email protected]>
Rob Herring
maintainerPATCH 1/1 of/irq: export of_irq_count
In reply to Zhangfei GaoQuoted 1 line · Zhangfei Gao
Export
of_irq_count, otherwise module build fail ifof_irq_countis used
Which module?
Quoted 22 lines
Signed-off-by Zhangfei Gao <[email protected]>Signed-off-by John Garry <[email protected]>--- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+)drivers/of/irq.c +1
-1@@ -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
PATCH 1/1 of/irq: export of_irq_count
Hi, Rob
Quoted 4 lines · Rob Herring
Quoted 1 line · Zhangfei Gao
Export
of_irq_count, otherwise module build fail ifof_irq_countis usedWhich 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
PATCH 1/1 of/irq: export of_irq_count
In reply to Rob HerringHi Rob
Quoted 4 lines · Rob Herring
Quoted 1 line · Zhangfei Gao
Export
of_irq_count, otherwise module build fail ifof_irq_countis usedWhich 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=i386All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
ERROR: "
of_irq_count" undefined!
Thanks