All of lore.kernel.org
 help / color / mirror / Atom feed
* [linusw-gpio:gpiochip-no-driver-h 5/5] arch/arm/mach-orion5x/board-rd88f5182.c:107:6: error: call to undeclared function 'of_machine_is_compatible'; ISO C99 and later do not support implicit function declarations
@ 2023-01-28 16:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-28 16:32 UTC (permalink / raw)
  To: Linus Walleij; +Cc: llvm, oe-kbuild-all, linux-gpio

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpiochip-no-driver-h
head:   df771cce328bbd37333797d0df3471c2e03ecb03
commit: df771cce328bbd37333797d0df3471c2e03ecb03 [5/5] gpio: Make the legacy <linux/gpio.h> consumer-only
config: arm-mvebu_v5_defconfig (https://download.01.org/0day-ci/archive/20230129/202301290051.LqXniYxY-lkp@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 4196ca3278f78c6e19246e54ab0ecb364e37d66a)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/commit/?id=df771cce328bbd37333797d0df3471c2e03ecb03
        git remote add linusw-gpio https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git
        git fetch --no-tags linusw-gpio gpiochip-no-driver-h
        git checkout df771cce328bbd37333797d0df3471c2e03ecb03
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/arm/mach-orion5x/board-rd88f5182.c:107:6: error: call to undeclared function 'of_machine_is_compatible'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           if (of_machine_is_compatible("marvell,rd-88f5182-nas"))
               ^
   1 error generated.


vim +/of_machine_is_compatible +107 arch/arm/mach-orion5x/board-rd88f5182.c

065194a06b4187 Thomas Petazzoni 2014-04-22  104  
065194a06b4187 Thomas Petazzoni 2014-04-22  105  static int __init rd88f5182_pci_init(void)
065194a06b4187 Thomas Petazzoni 2014-04-22  106  {
065194a06b4187 Thomas Petazzoni 2014-04-22 @107  	if (of_machine_is_compatible("marvell,rd-88f5182-nas"))
065194a06b4187 Thomas Petazzoni 2014-04-22  108  		pci_common_init(&rd88f5182_pci);
065194a06b4187 Thomas Petazzoni 2014-04-22  109  
065194a06b4187 Thomas Petazzoni 2014-04-22  110  	return 0;
065194a06b4187 Thomas Petazzoni 2014-04-22  111  }
065194a06b4187 Thomas Petazzoni 2014-04-22  112  

:::::: The code at line 107 was first introduced by commit
:::::: 065194a06b4187f9c1f4a37951904534291fb85b ARM: orion5x: convert RD-88F5182 to Device Tree

:::::: TO: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
:::::: CC: Jason Cooper <jason@lakedaemon.net>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-28 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-28 16:32 [linusw-gpio:gpiochip-no-driver-h 5/5] arch/arm/mach-orion5x/board-rd88f5182.c:107:6: error: call to undeclared function 'of_machine_is_compatible'; ISO C99 and later do not support implicit function declarations kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.