* [thomas-weissschuh:b4/kunit-kselftests 21/23] lib/kunit/uapi-preinit.c:44:1: warning: non-void function does not return a value
@ 2025-02-04 23:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-04 23:40 UTC (permalink / raw)
To: Thomas Weißschuh; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/kunit-kselftests
head: c5dc664800bcb374e0ea3bcb152167b8dc1715c0
commit: 843542230b45c042286f208e66c0c473f03abd99 [21/23] kunit: uapi: Introduce preinit executable
config: x86_64-buildonly-randconfig-006-20250205 (https://download.01.org/0day-ci/archive/20250205/202502050735.7LA0CNx0-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250205/202502050735.7LA0CNx0-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502050735.7LA0CNx0-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/kunit/uapi-preinit.c:44:1: warning: non-void function does not return a value [-Wreturn-type]
44 | }
| ^
1 warning generated.
vim +44 lib/kunit/uapi-preinit.c
26
27 int main(int argc, char **argv, char **envp)
28 {
29 int ret;
30
31 ret = setup_api_mount("/proc", "proc");
32 if (ret)
33 exit_failure("mount /proc", ret);
34 ret = setup_api_mount("/sys", "sysfs");
35 if (ret)
36 exit_failure("mount /sys", ret);
37 ret = setup_api_mount("/dev", "devtmpfs");
38 if (ret && ((ret == -ENODEV) == IS_ENABLED(CONFIG_DEVTMPFS)))
39 exit_failure("mount /dev", ret);
40
41 ret = execve(argv[0], argv, envp);
42 if (ret)
43 exit_failure("execve", ret);
> 44 }
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-04 23:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 23:40 [thomas-weissschuh:b4/kunit-kselftests 21/23] lib/kunit/uapi-preinit.c:44:1: warning: non-void function does not return a value 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