* [kas:lam 4/9] arch/x86/mm/tlb.c:173:4: warning: no previous prototype for function 'gen_lam'
@ 2021-01-28 20:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-28 20:44 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2275 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git lam
head: b2e76825799b4332068b4cdf35f5758c5071a35a
commit: 17396ca74a720874aacad37ea7e1cee825160141 [4/9] x86/mm: Introduce TIF_LAM_U57 and TIF_LAM_U48
config: x86_64-randconfig-a012-20210129 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 48bdd676a1d1338c10541460bf5beb69ac17e451)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git/commit/?id=17396ca74a720874aacad37ea7e1cee825160141
git remote add kas https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git
git fetch --no-tags kas lam
git checkout 17396ca74a720874aacad37ea7e1cee825160141
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/mm/tlb.c:173:4: warning: no previous prototype for function 'gen_lam' [-Wmissing-prototypes]
u8 gen_lam(struct task_struct *tsk, struct mm_struct *mm)
^
arch/x86/mm/tlb.c:173:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u8 gen_lam(struct task_struct *tsk, struct mm_struct *mm)
^
static
1 warning generated.
vim +/gen_lam +173 arch/x86/mm/tlb.c
172
> 173 u8 gen_lam(struct task_struct *tsk, struct mm_struct *mm)
174 {
175 struct thread_info *ti = task_thread_info(tsk);
176 if (!tsk)
177 return LAM_NONE;
178
179 if (test_ti_thread_flag(ti, TIF_LAM_U57))
180 return LAM_U57;
181 if (test_ti_thread_flag(ti, TIF_LAM_U48))
182 return LAM_U48;
183 return LAM_NONE;
184 }
185
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32838 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-28 20:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-28 20:44 [kas:lam 4/9] arch/x86/mm/tlb.c:173:4: warning: no previous prototype for function 'gen_lam' kernel test robot
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.