From: kernel test robot <lkp@intel.com>
To: Wei Huang <wei.huang2@amd.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
Linux Memory Management List <linux-mm@kvack.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: [linux-next:master 8854/9522] arch/x86/kvm/mmu/mmu.c:3641:1: warning: unused label 'err_pml5'
Date: Sat, 21 Aug 2021 01:26:27 +0800 [thread overview]
Message-ID: <202108210120.1ALyEEEd-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2339 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 86ed57fd8c93fdfaabb4f58e78455180fa7d8a84
commit: 0b957702769ec28fc54afbba8f08e12cd94904f4 [8854/9522] KVM: x86/mmu: Support shadowing NPT when 5-level paging is enabled in host
config: i386-randconfig-r026-20210820 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0b957702769ec28fc54afbba8f08e12cd94904f4
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 0b957702769ec28fc54afbba8f08e12cd94904f4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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/kvm/mmu/mmu.c:3641:1: warning: unused label 'err_pml5' [-Wunused-label]
err_pml5:
^~~~~~~~~
>> arch/x86/kvm/mmu/mmu.c:3643:1: warning: unused label 'err_pml4' [-Wunused-label]
err_pml4:
^~~~~~~~~
arch/x86/kvm/mmu/mmu.c:240:1: warning: unused function 'is_cr4_la57' [-Wunused-function]
BUILD_MMU_ROLE_ACCESSOR(ext, cr4, la57);
^
arch/x86/kvm/mmu/mmu.c:229:20: note: expanded from macro 'BUILD_MMU_ROLE_ACCESSOR'
static inline bool is_##reg##_##name(struct kvm_mmu *mmu) \
^
<scratch space>:90:1: note: expanded from here
is_cr4_la57
^
3 warnings generated.
vim +/err_pml5 +3641 arch/x86/kvm/mmu/mmu.c
3635
3636 mmu->pae_root = pae_root;
3637 mmu->pml4_root = pml4_root;
3638 mmu->pml5_root = pml5_root;
3639
3640 return 0;
> 3641 err_pml5:
3642 free_page((unsigned long)pml4_root);
> 3643 err_pml4:
3644 free_page((unsigned long)pae_root);
3645 return -ENOMEM;
3646 }
3647
---
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: 34887 bytes --]
reply other threads:[~2021-08-20 17:26 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=202108210120.1ALyEEEd-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.org \
--cc=pbonzini@redhat.com \
--cc=wei.huang2@amd.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).