From: kernel test robot <lkp@intel.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 8 Mar 2023 09:12:01 +0800 [thread overview]
Message-ID: <202303080934.iCaF59Gr-lkp@intel.com> (raw)
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
reply other threads:[~2023-03-08 1:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202303080934.iCaF59Gr-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=miquel.raynal@bootlin.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.