All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'?
@ 2023-04-07  2:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-07  2:25 UTC (permalink / raw)
  To: Michael Roth; +Cc: oe-kbuild-all, Sean Christopherson, Peter Gonda

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-07  2:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07  2:25 [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'? 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.