[linux-next:master 10178/10976] include/linux/of_address.h:111:12: error: 'of_property_read_reg' defined but not used

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   7d8214bba44c1aa6a75921a09a691945d26a8d43
commit: 87b764b15f9a0279991f9518f561d25cab0cf1be [10178/10976] of/address: Add of_property_read_reg() helper
config: sparc-defconfig (https://download.01.org/0day-ci/archive/20230412/202304122211.Sgzf52OW-lkp@xxxxxxxxx/config)
compiler: sparc-linux-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=87b764b15f9a0279991f9518f561d25cab0cf1be
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 87b764b15f9a0279991f9518f561d25cab0cf1be
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202304122211.Sgzf52OW-lkp@xxxxxxxxx/

Note: the linux-next/master HEAD 7d8214bba44c1aa6a75921a09a691945d26a8d43 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   In file included from arch/sparc/kernel/of_device_common.c:10:
>> include/linux/of_address.h:111:12: error: 'of_property_read_reg' defined but not used [-Werror=unused-function]
     111 | static int of_property_read_reg(struct device_node *np, int idx, u64 *addr, u64 *size)
         |            ^~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/of_property_read_reg +111 include/linux/of_address.h

   110	
 > 111	static int of_property_read_reg(struct device_node *np, int idx, u64 *addr, u64 *size)
   112	{
   113		return -ENOSYS;
   114	}
   115	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux