All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Michael Roth <michael.roth@amd.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Sean Christopherson <seanjc@google.com>,
	Peter Gonda <pgonda@google.com>
Subject: [sean-jc:x86/sev_selftests_for_peter 5/8] lib/kvm_util.c:1322:28: warning: implicit declaration of function '_vm_phy_pages_alloc'; did you mean 'vm_phy_pages_alloc'?
Date: Fri, 7 Apr 2023 10:25:01 +0800	[thread overview]
Message-ID: <202304071011.cKVNSMMd-lkp@intel.com> (raw)

Hi Michael,

First bad commit (maybe != root cause):

tree:   https://github.com/sean-jc/linux x86/sev_selftests_for_peter
head:   d379d4355a226bc2fdbce995a5bd05b96cd21778
commit: f38f34c440d70139caba733fef36ec07aab6cb02 [5/8] KVM: selftests: add support for protected vm_vaddr_* allocations
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
        # https://github.com/sean-jc/linux/commit/f38f34c440d70139caba733fef36ec07aab6cb02
        git remote add sean-jc https://github.com/sean-jc/linux
        git fetch --no-tags sean-jc x86/sev_selftests_for_peter
        git checkout f38f34c440d70139caba733fef36ec07aab6cb02
        make O=/tmp/kselftest headers
        make O=/tmp/kselftest -C tools/testing/selftests

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304071011.cKVNSMMd-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from lib/kvm_util.c:9:
   lib/kvm_util.c: In function '____vm_create':
   lib/kvm_util.c:223:46: error: 'nr_pages' undeclared (first use in this function)
     223 |                  vm_guest_mode_string(mode), nr_pages);
         |                                              ^~~~~~~~
   include/test_util.h:28:34: note: in definition of macro 'pr_debug'
      28 | #define pr_debug(...) _no_printf(__VA_ARGS__)
         |                                  ^~~~~~~~~~~
   lib/kvm_util.c:223:46: note: each undeclared identifier is reported only once for each function it appears in
     223 |                  vm_guest_mode_string(mode), nr_pages);
         |                                              ^~~~~~~~
   include/test_util.h:28:34: note: in definition of macro 'pr_debug'
      28 | #define pr_debug(...) _no_printf(__VA_ARGS__)
         |                                  ^~~~~~~~~~~
   lib/kvm_util.c: In function '____vm_vaddr_alloc':
>> lib/kvm_util.c:1322:28: warning: implicit declaration of function '_vm_phy_pages_alloc'; did you mean 'vm_phy_pages_alloc'? [-Wimplicit-function-declaration]
    1322 |         vm_paddr_t paddr = _vm_phy_pages_alloc(vm, pages,
         |                            ^~~~~~~~~~~~~~~~~~~
         |                            vm_phy_pages_alloc
   lib/kvm_util.c: In function 'addr_gpa2hva':
   lib/kvm_util.c:1477:32: error: 'gpa_tagged' undeclared (first use in this function)
    1477 |         gpa = vm_untag_gpa(vm, gpa_tagged);
         |                                ^~~~~~~~~~
   lib/kvm_util.c: At top level:
   cc1: note: unrecognized command-line option '-Wno-gnu-variable-sized-type-not-at-end' may have been intended to silence earlier diagnostics

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-04-07  2:25 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=202304071011.cKVNSMMd-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=michael.roth@amd.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pgonda@google.com \
    --cc=seanjc@google.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 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.