lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210070743.NFSELm9Q-lkp@intel.com>
Date:   Fri, 7 Oct 2022 08:02:28 +0800
From:   kernel test robot <lkp@...el.com>
To:     Juergen Gross <jgross@...e.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        0day robot <lkp@...el.com>
Subject: arch/x86/xen/enlighten_pv.c:115:39: error:
 'xen_virtio_restricted_mem_acc' undeclared

tree:   https://github.com/intel-lab-lkp/linux/commits/Oleksandr-Tyshchenko/xen-virtio-Handle-PCI-devices-which-Host-controller-is-described-in-DT/20221007-014937
head:   66842eb068a356f13c310952a643f075a97a57e7
commit: 6535888bc127d9588ed59c1d58d0f59187872ddd xen/virtio: enable grant based virtio on x86
date:   6 hours ago
config: x86_64-randconfig-a016-20221003
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/6535888bc127d9588ed59c1d58d0f59187872ddd
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Oleksandr-Tyshchenko/xen-virtio-Handle-PCI-devices-which-Host-controller-is-described-in-DT/20221007-014937
        git checkout 6535888bc127d9588ed59c1d58d0f59187872ddd
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   arch/x86/xen/enlighten_pv.c: In function 'xen_pv_init_platform':
>> arch/x86/xen/enlighten_pv.c:115:39: error: 'xen_virtio_restricted_mem_acc' undeclared (first use in this function)
     115 |                 virtio_set_mem_acc_cb(xen_virtio_restricted_mem_acc);
         |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   arch/x86/xen/enlighten_pv.c:115:39: note: each undeclared identifier is reported only once for each function it appears in
   arch/x86/xen/enlighten_pv.c: At top level:
   arch/x86/xen/enlighten_pv.c:1189:34: warning: no previous prototype for 'xen_start_kernel' [-Wmissing-prototypes]
    1189 | asmlinkage __visible void __init xen_start_kernel(struct start_info *si)
         |                                  ^~~~~~~~~~~~~~~~


vim +/xen_virtio_restricted_mem_acc +115 arch/x86/xen/enlighten_pv.c

   110	
   111	static void __init xen_pv_init_platform(void)
   112	{
   113		/* PV guests can't operate virtio devices without grants. */
   114		if (IS_ENABLED(CONFIG_XEN_VIRTIO))
 > 115			virtio_set_mem_acc_cb(xen_virtio_restricted_mem_acc);
   116	
   117		populate_extra_pte(fix_to_virt(FIX_PARAVIRT_BOOTMAP));
   118	
   119		set_fixmap(FIX_PARAVIRT_BOOTMAP, xen_start_info->shared_info);
   120		HYPERVISOR_shared_info = (void *)fix_to_virt(FIX_PARAVIRT_BOOTMAP);
   121	
   122		/* xen clock uses per-cpu vcpu_info, need to init it for boot cpu */
   123		xen_vcpu_info_reset(0);
   124	
   125		/* pvclock is in shared info area */
   126		xen_init_time_ops();
   127	}
   128	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (166309 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ