[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202211302356.MXNnMJYJ-lkp@intel.com>
Date: Wed, 30 Nov 2022 23:14:55 +0800
From: kernel test robot <lkp@...el.com>
To: Anastasia Belova <abelova@...ralinux.ru>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Anastasia Belova <abelova@...ralinux.ru>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Randy Dunlap <rdunlap@...radead.org>,
Florian Fainelli <f.fainelli@...il.com>,
Maxime Bizon <mbizon@...ebox.fr>,
Ralf Baechle <ralf@...ux-mips.org>, linux-mips@...r.kernel.org,
linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org
Subject: Re: [PATCH] MIPS: BCM63xx: Add check for NULL for clk in clk_enable
Hi Anastasia,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.1-rc7 next-20221130]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Anastasia-Belova/MIPS-BCM63xx-Add-check-for-NULL-for-clk-in-clk_enable/20221125-173305
patch link: https://lore.kernel.org/r/20221125092601.3703-1-abelova%40astralinux.ru
patch subject: [PATCH] MIPS: BCM63xx: Add check for NULL for clk in clk_enable
config: mips-buildonly-randconfig-r002-20221128
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 6e4cea55f0d1104408b26ac574566a0e4de48036)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/881e6b8fb4e5b8a496f5083d3cc6873a3df339b4
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Anastasia-Belova/MIPS-BCM63xx-Add-check-for-NULL-for-clk-in-clk_enable/20221125-173305
git checkout 881e6b8fb4e5b8a496f5083d3cc6873a3df339b4
# 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=mips SHELL=/bin/bash arch/mips/bcm63xx/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> arch/mips/bcm63xx/clk.c:365:3: error: non-void function 'clk_enable' should return a value [-Wreturn-type]
return;
^
1 error generated.
vim +/clk_enable +365 arch/mips/bcm63xx/clk.c
357
358
359 /*
360 * Linux clock API implementation
361 */
362 int clk_enable(struct clk *clk)
363 {
364 if (!clk)
> 365 return;
366
367 mutex_lock(&clocks_mutex);
368 clk_enable_unlocked(clk);
369 mutex_unlock(&clocks_mutex);
370 return 0;
371 }
372
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (110835 bytes)
Powered by blists - more mailing lists