[input:test 1/1] include/linux/of.h:889:3: error: implicit declaration of function 'of_put_node'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git test
head:   f3b0c5a5f8f707e87f721308dbc1d5d1c7b9ae2e
commit: f3b0c5a5f8f707e87f721308dbc1d5d1c7b9ae2e [1/1] of: of_find_node_by_name - stop dropping reference to 'from' node
config: powerpc-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f3b0c5a5f8f707e87f721308dbc1d5d1c7b9ae2e
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   In file included from include/linux/irqdomain.h:34:0,
                    from arch/powerpc/include/asm/irq.h:12,
                    from include/linux/irq.h:26,
                    from arch/powerpc/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from arch/powerpc/platforms/cell/interrupt.c:32:
   arch/powerpc/platforms/cell/interrupt.c: In function 'setup_iic':
>> include/linux/of.h:889:3: error: implicit declaration of function 'of_put_node' [-Werror=implicit-function-declaration]
      of_put_node(_pdn);   \
      ^
   arch/powerpc/platforms/cell/interrupt.c:324:2: note: in expansion of macro 'for_each_node_by_name'
     for_each_node_by_name(dn, "interrupt-controller") {
     ^
   cc1: some warnings being treated as errors
--
   In file included from include/linux/irqdomain.h:34:0,
                    from arch/powerpc/include/asm/irq.h:12,
                    from include/linux/irq.h:26,
                    from arch/powerpc/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from arch/powerpc/platforms/cell/iommu.c:27:
   arch/powerpc/platforms/cell/iommu.c: In function 'cell_iommu_find_ioc':
>> include/linux/of.h:889:3: error: implicit declaration of function 'of_put_node' [-Werror=implicit-function-declaration]
      of_put_node(_pdn);   \
      ^
   arch/powerpc/platforms/cell/iommu.c:277:2: note: in expansion of macro 'for_each_node_by_name'
     for_each_node_by_name(np, "ioc") {
     ^
   cc1: some warnings being treated as errors
--
   In file included from include/linux/irqdomain.h:34:0,
                    from arch/powerpc/include/asm/irq.h:12,
                    from include/linux/irq.h:26,
                    from arch/powerpc/platforms/cell/setup.c:27:
   arch/powerpc/platforms/cell/setup.c: In function 'mpic_init_IRQ':
>> include/linux/of.h:889:3: error: implicit declaration of function 'of_put_node' [-Werror=implicit-function-declaration]
      of_put_node(_pdn);   \
      ^
   arch/powerpc/platforms/cell/setup.c:195:2: note: in expansion of macro 'for_each_node_by_name'
     for_each_node_by_name(dn, "interrupt-controller") {
     ^
   cc1: some warnings being treated as errors
--
   In file included from include/linux/irqdomain.h:34:0,
                    from arch/powerpc/include/asm/irq.h:12,
                    from include/linux/irq.h:26,
                    from arch/powerpc/include/asm/hardirq.h:5,
                    from include/linux/hardirq.h:8,
                    from include/linux/interrupt.h:12,
                    from arch/powerpc/platforms/cell/spider-pic.c:23:
   arch/powerpc/platforms/cell/spider-pic.c: In function 'spider_init_IRQ':
>> include/linux/of.h:889:3: error: implicit declaration of function 'of_put_node' [-Werror=implicit-function-declaration]
      of_put_node(_pdn);   \
      ^
   arch/powerpc/platforms/cell/spider-pic.c:346:2: note: in expansion of macro 'for_each_node_by_name'
     for_each_node_by_name(dn, "interrupt-controller") {
     ^
   cc1: some warnings being treated as errors

vim +/of_put_node +889 include/linux/of.h

   883	#define for_each_node_by_name(dn, name)			\
   884		for (dn = of_find_node_by_name(NULL, name);	\
   885		     dn;					\
   886		     ({						\
   887			struct device_node *_pdn = dn;		\
   888			dn = of_find_node_by_name(_pdn, name);	\
 > 889			of_put_node(_pdn);			\
   890		     })						\
   891		)
   892	#define for_each_node_by_type(dn, type) \

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux