linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 10178/10976] include/linux/of_address.h:111:12: error: 'of_property_read_reg' defined but not used
@ 2023-04-12 14:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-12 14:19 UTC (permalink / raw)
  To: Rob Herring; +Cc: oe-kbuild-all, Linux Memory Management List

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@intel.com/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@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304122211.Sgzf52OW-lkp@intel.com/

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


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

only message in thread, other threads:[~2023-04-12 14:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12 14:19 [linux-next:master 10178/10976] include/linux/of_address.h:111:12: error: 'of_property_read_reg' defined but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox