linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Cc: Sandipan Das <sandipan@linux.ibm.com>,
	clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	linuxppc-dev@lists.ozlabs.org
Subject: [powerpc:next-test 146/304] arch/powerpc/mm/book3s64/pkeys.c:284:20: error: unused function 'update_current_thread_amr'
Date: Wed, 16 Dec 2020 20:27:06 +0800	[thread overview]
Message-ID: <202012162004.VIw3YIiT-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2318 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test
head:   c15d1f9d03a0f4f68bf52dffdd541c8054e6de35
commit: 48a8ab4eeb8271f2a0e2ca3cf80844a59acca153 [146/304] powerpc/book3s64/pkeys: Don't update SPRN_AMR when in kernel mode.
config: powerpc-randconfig-r034-20201216 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 71601d2ac9954cb59c443cb3ae442cb106df35d4)
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 powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=48a8ab4eeb8271f2a0e2ca3cf80844a59acca153
        git remote add powerpc https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
        git fetch --no-tags powerpc next-test
        git checkout 48a8ab4eeb8271f2a0e2ca3cf80844a59acca153
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/powerpc/mm/book3s64/pkeys.c:284:20: error: unused function 'update_current_thread_amr' [-Werror,-Wunused-function]
   static inline void update_current_thread_amr(u64 value)
                      ^
>> arch/powerpc/mm/book3s64/pkeys.c:289:20: error: unused function 'update_current_thread_iamr' [-Werror,-Wunused-function]
   static inline void update_current_thread_iamr(u64 value)
                      ^
   2 errors generated.


vim +/update_current_thread_amr +284 arch/powerpc/mm/book3s64/pkeys.c

   283	
 > 284	static inline void update_current_thread_amr(u64 value)
   285	{
   286		current->thread.regs->amr = value;
   287	}
   288	
 > 289	static inline void update_current_thread_iamr(u64 value)
   290	{
   291		if (!likely(pkey_execute_disable_supported))
   292			return;
   293	
   294		current->thread.regs->iamr = value;
   295	}
   296	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42892 bytes --]

                 reply	other threads:[~2020-12-16 12:30 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=202012162004.VIw3YIiT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aneesh.kumar@linux.ibm.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=sandipan@linux.ibm.com \
    /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;
as well as URLs for NNTP newsgroup(s).