Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/kunit-kselftests 21/23] lib/kunit/uapi-preinit.c:44:1: warning: non-void function does not return a value
Date: Wed, 5 Feb 2025 07:40:24 +0800	[thread overview]
Message-ID: <202502050735.7LA0CNx0-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-02-04 23:41 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=202502050735.7LA0CNx0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=thomas.weissschuh@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox