All of lore.kernel.org
 help / color / mirror / Atom feed
* [miquelraynal:nvmem-layouts-and-of-cleanup 34/35] include/linux/of_device.h:59:1: error: non-void function does not return a value in all control paths
@ 2023-03-08  1:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-08  1:12 UTC (permalink / raw)
  To: Miquel Raynal; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/miquelraynal/linux-0day.git nvmem-layouts-and-of-cleanup
head:   d8752324726fdde6bb205a5aa95ae8ff7d84eff7
commit: a45923134df95195ab31640803313c5225274a2a [34/35] of: module: Mutate of_device_uevent_modalias() into two helpers
config: i386-randconfig-a015-20230306 (https://download.01.org/0day-ci/archive/20230308/202303080934.iCaF59Gr-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/miquelraynal/linux-0day/commit/a45923134df95195ab31640803313c5225274a2a
        git remote add miquelraynal https://github.com/miquelraynal/linux-0day.git
        git fetch --no-tags miquelraynal nvmem-layouts-and-of-cleanup
        git checkout a45923134df95195ab31640803313c5225274a2a
        # 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=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/char/tpm/

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/202303080934.iCaF59Gr-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/char/tpm/tpm_tis_spi_main.c:31:
>> include/linux/of_device.h:59:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
   }
   ^
   In file included from drivers/char/tpm/tpm_tis_spi_main.c:35:
   In file included from drivers/char/tpm/tpm.h:28:
   include/linux/tpm_eventlog.h:167:6: warning: variable 'mapping_size' set but not used [-Wunused-but-set-variable]
           int mapping_size;
               ^
   1 warning and 1 error generated.


vim +59 include/linux/of_device.h

    52	
    53	static inline int of_device_uevent_modalias(const struct device *dev,
    54						    struct kobj_uevent_env *env)
    55	{
    56		if (!dev || !dev->of_node || dev->of_node_reused)
    57	
    58			return of_uevent_modalias(dev->of_node, env);
  > 59	}
    60	

-- 
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-03-08  1:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-08  1:12 [miquelraynal:nvmem-layouts-and-of-cleanup 34/35] include/linux/of_device.h:59:1: error: non-void function does not return a value in all control paths 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.