Re: [renesas-drivers:topic/renesas-overlays 1/86] drivers//of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2017-07-18 Thread Geert Uytterhoeven
On Tue, Jul 18, 2017 at 8:44 AM, Geert Uytterhoeven
 wrote:
> On Mon, Jul 17, 2017 at 7:58 PM, kbuild test robot
>  wrote:
>> tree:   
>> https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
>> topic/renesas-overlays
>> head:   8361d7e7432d1937f94e1863211fb3f852e37f36
>> commit: 1ba23467c1d052c0b5c35436c034f0fb7103eeaf [1/86] OF: DT-Overlay 
>> configfs interface (v7)
>> config: sparc64-allmodconfig (attached as .config)
>> compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
>> reproduce:
>> wget 
>> https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
>> ~/bin/make.cross
>> chmod +x ~/bin/make.cross
>> git checkout 1ba23467c1d052c0b5c35436c034f0fb7103eeaf
>> # save the attached .config to linux build tree
>> make.cross ARCH=sparc64
>>
>> All errors (new ones prefixed by >>):
>>
>>drivers//of/configfs.c: In function 'create_overlay':
 drivers//of/configfs.c:48:2: error: implicit declaration of function 
 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
>>  of_fdt_unflatten_tree(blob, NULL, >overlay);
>>  ^
>>cc1: some warnings being treated as errors
>
> Apparently OF_OVERLAY should depend on OF_FLATTREE.

Oops, I meant CONFIG_OF_CONFIGFS.
But that causes warnings due to recursive dependencies:

drivers/of/Kconfig:59:error: recursive dependency detected!
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/of/Kconfig:59: symbol OF_EARLY_FLATTREE is selected by OF_UNITTEST
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/of/Kconfig:14: symbol OF_UNITTEST depends on OF_IRQ
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/of/Kconfig:83: symbol OF_IRQ depends on IRQ_DOMAIN
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
kernel/irq/Kconfig:63: symbol IRQ_DOMAIN is selected by GENERIC_IRQ_CHIP
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
kernel/irq/Kconfig:58: symbol GENERIC_IRQ_CHIP is selected by GPIO_DWAPB
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/gpio/Kconfig:160: symbol GPIO_DWAPB depends on GPIOLIB
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/gpio/Kconfig:13: symbol GPIOLIB is selected by PINCTRL_STM32
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/pinctrl/stm32/Kconfig:3: symbol PINCTRL_STM32 is selected by
PINCTRL_STM32F429
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/pinctrl/stm32/Kconfig:11: symbol PINCTRL_STM32F429 depends on
IRQ_DOMAIN_HIERARCHY
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
kernel/irq/Kconfig:67: symbol IRQ_DOMAIN_HIERARCHY is selected by
GENERIC_MSI_IRQ_DOMAIN
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
kernel/irq/Kconfig:80: symbol GENERIC_MSI_IRQ_DOMAIN is selected by MV_XOR_V2
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/dma/Kconfig:358: symbol MV_XOR_V2 depends on DMADEVICES
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/dma/Kconfig:5: symbol DMADEVICES is selected by CRYPTO_DEV_CCP_DD
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
drivers/crypto/ccp/Kconfig:1: symbol CRYPTO_DEV_CCP_DD depends on CRYPTO
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
crypto/Kconfig:15: symbol CRYPTO is selected by IP_SCTP
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
net/sctp/Kconfig:5: symbol IP_SCTP is selected by DLM
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
fs/dlm/Kconfig:1: symbol DLM depends on SYSFS
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"
fs/sysfs/Kconfig:1: symbol SYSFS is selected by CONFIGFS_FS
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection 

Re: [renesas-drivers:topic/renesas-overlays 1/86] drivers//of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2017-07-18 Thread Geert Uytterhoeven
On Mon, Jul 17, 2017 at 7:58 PM, kbuild test robot
 wrote:
> tree:   
> https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
> topic/renesas-overlays
> head:   8361d7e7432d1937f94e1863211fb3f852e37f36
> commit: 1ba23467c1d052c0b5c35436c034f0fb7103eeaf [1/86] OF: DT-Overlay 
> configfs interface (v7)
> config: sparc64-allmodconfig (attached as .config)
> compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
> reproduce:
> wget 
> https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
> ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 1ba23467c1d052c0b5c35436c034f0fb7103eeaf
> # save the attached .config to linux build tree
> make.cross ARCH=sparc64
>
> All errors (new ones prefixed by >>):
>
>drivers//of/configfs.c: In function 'create_overlay':
>>> drivers//of/configfs.c:48:2: error: implicit declaration of function 
>>> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
>  of_fdt_unflatten_tree(blob, NULL, >overlay);
>  ^
>cc1: some warnings being treated as errors

Apparently OF_OVERLAY should depend on OF_FLATTREE.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds


[renesas-drivers:topic/renesas-overlays 1/86] drivers//of/configfs.c:48:2: error: implicit declaration of function 'of_fdt_unflatten_tree'

2017-07-17 Thread kbuild test robot
tree:   
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git 
topic/renesas-overlays
head:   8361d7e7432d1937f94e1863211fb3f852e37f36
commit: 1ba23467c1d052c0b5c35436c034f0fb7103eeaf [1/86] OF: DT-Overlay configfs 
interface (v7)
config: sparc64-allmodconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget 
https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1ba23467c1d052c0b5c35436c034f0fb7103eeaf
# save the attached .config to linux build tree
make.cross ARCH=sparc64 

All errors (new ones prefixed by >>):

   drivers//of/configfs.c: In function 'create_overlay':
>> drivers//of/configfs.c:48:2: error: implicit declaration of function 
>> 'of_fdt_unflatten_tree' [-Werror=implicit-function-declaration]
 of_fdt_unflatten_tree(blob, NULL, >overlay);
 ^
   cc1: some warnings being treated as errors

vim +/of_fdt_unflatten_tree +48 drivers//of/configfs.c

42  
43  static int create_overlay(struct cfs_overlay_item *overlay, void *blob)
44  {
45  int err;
46  
47  /* unflatten the tree */
  > 48  of_fdt_unflatten_tree(blob, NULL, >overlay);
49  if (overlay->overlay == NULL) {
50  pr_err("%s: failed to unflatten tree\n", __func__);
51  err = -EINVAL;
52  goto out_err;
53  }
54  pr_debug("%s: unflattened OK\n", __func__);
55  
56  /* mark it as detached */
57  of_node_set_flag(overlay->overlay, OF_DETACHED);
58  
59  /* perform resolution */
60  err = of_resolve_phandles(overlay->overlay);
61  if (err != 0) {
62  pr_err("%s: Failed to resolve tree\n", __func__);
63  goto out_err;
64  }
65  pr_debug("%s: resolved OK\n", __func__);
66  
67  err = of_overlay_create(overlay->overlay);
68  if (err < 0) {
69  pr_err("%s: Failed to create overlay (err=%d)\n",
70  __func__, err);
71  goto out_err;
72  }
73  overlay->ov_id = err;
74  
75  out_err:
76  return err;
77  }
78  

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


.config.gz
Description: application/gzip