[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202301031300.T3Xt3ND3-lkp@intel.com>
Date: Tue, 3 Jan 2023 13:21:11 +0800
From: kernel test robot <lkp@...el.com>
To: Randy Dunlap <rdunlap@...radead.org>, linux-kernel@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Randy Dunlap <rdunlap@...radead.org>,
John Stultz <jstultz@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Stephen Boyd <sboyd@...nel.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...nel.org>
Subject: Re: [PATCH] time: fix various kernel-doc problems
Hi Randy,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/timers/core]
[also build test WARNING on tip/timers/nohz linus/master v6.2-rc2 next-20221226]
[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/Randy-Dunlap/time-fix-various-kernel-doc-problems/20230103-113048
patch link: https://lore.kernel.org/r/20230103032849.12723-1-rdunlap%40infradead.org
patch subject: [PATCH] time: fix various kernel-doc problems
config: x86_64-rhel-8.3-rust
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/intel-lab-lkp/linux/commit/856bf2d268b0558b5f99d7d077f2ab593b068899
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Randy-Dunlap/time-fix-various-kernel-doc-problems/20230103-113048
git checkout 856bf2d268b0558b5f99d7d077f2ab593b068899
# 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=x86_64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/time/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> kernel/time/tick-oneshot.c:106:5: warning: no previous prototype for function 'tick_check_oneshot_mode' [-Wmissing-prototypes]
int tick_check_oneshot_mode(void)
^
kernel/time/tick-oneshot.c:106:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int tick_check_oneshot_mode(void)
^
static
1 warning generated.
vim +/tick_check_oneshot_mode +106 kernel/time/tick-oneshot.c
100
101 /**
102 * tick_check_oneshot_mode - check whether the system is in oneshot mode
103 *
104 * returns 1 when either nohz or highres are enabled. otherwise 0.
105 */
> 106 int tick_check_oneshot_mode(void)
107 {
108 unsigned long flags;
109 int ret;
110
111 local_irq_save(flags);
112 ret = __this_cpu_read(tick_cpu_device.mode) == TICKDEV_MODE_ONESHOT;
113 local_irq_restore(flags);
114
115 return ret;
116 }
117
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (166837 bytes)
Powered by blists - more mailing lists