All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [kas:lam 4/9] arch/x86/mm/tlb.c:173:4: warning: no previous prototype for function 'gen_lam'
Date: Fri, 29 Jan 2021 04:44:09 +0800	[thread overview]
Message-ID: <202101290404.xyebcFLE-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-01-28 20:44 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=202101290404.xyebcFLE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.