CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Luca Miccio <[email protected]>
CC: Juergen Gross <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Boris Ostrovsky <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   b00ed48bb0a7c295facf9036135a573a5cdbe7de
commit: 5b3353949e89d48b4faf54a9cc241ee5d70df615 xen: add support for 
initializing xenstore later as HVM domain
date:   11 days ago
:::::: branch date: 12 hours ago
:::::: commit date: 11 days ago
config: i386-randconfig-m021-20220530 
(https://download.01.org/0day-ci/archive/20220530/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

New smatch warnings:
drivers/xen/xenbus/xenbus_probe.c:755 xenbus_probe() warn: should 
'xen_store_gfn << 12' be a 64 bit type?
drivers/xen/xenbus/xenbus_probe.c:1064 xenbus_init() warn: 
'xen_store_interface' from ioremap() not released on lines: 1025.

Old smatch warnings:
drivers/xen/xenbus/xenbus_probe.c:1012 xenbus_init() warn: should 
'xen_store_gfn << 12' be a 64 bit type?

vim +755 drivers/xen/xenbus/xenbus_probe.c

4bac07c993d034 Jeremy Fitzhardinge 2007-07-17  749  
c4295ab0b485b8 Julien Grall        2021-02-10  750  static void 
xenbus_probe(void)
4bac07c993d034 Jeremy Fitzhardinge 2007-07-17  751  {
a947f0f8f7012a Stefano Stabellini  2010-10-04  752      xenstored_ready = 1;
4bac07c993d034 Jeremy Fitzhardinge 2007-07-17  753  
5b3353949e89d4 Luca Miccio         2022-05-13  754      if 
(!xen_store_interface) {
5b3353949e89d4 Luca Miccio         2022-05-13 @755              
xen_store_interface = xen_remap(xen_store_gfn << XEN_PAGE_SHIFT,
5b3353949e89d4 Luca Miccio         2022-05-13  756                              
                XEN_PAGE_SIZE);
5b3353949e89d4 Luca Miccio         2022-05-13  757              /*
5b3353949e89d4 Luca Miccio         2022-05-13  758               * Now it is 
safe to free the IRQ used for xenstore late
5b3353949e89d4 Luca Miccio         2022-05-13  759               * 
initialization. No need to unbind: it is about to be
5b3353949e89d4 Luca Miccio         2022-05-13  760               * bound again 
from xb_init_comms. Note that calling
5b3353949e89d4 Luca Miccio         2022-05-13  761               * 
unbind_from_irqhandler now would result in xen_evtchn_close()
5b3353949e89d4 Luca Miccio         2022-05-13  762               * being called 
and the event channel not being enabled again
5b3353949e89d4 Luca Miccio         2022-05-13  763               * afterwards, 
resulting in missed event notifications.
5b3353949e89d4 Luca Miccio         2022-05-13  764               */
5b3353949e89d4 Luca Miccio         2022-05-13  765              
free_irq(xs_init_irq, &xb_waitq);
5b3353949e89d4 Luca Miccio         2022-05-13  766      }
5b3353949e89d4 Luca Miccio         2022-05-13  767  
3499ba8198cad4 David Woodhouse     2021-01-13  768      /*
3499ba8198cad4 David Woodhouse     2021-01-13  769       * In the HVM case, 
xenbus_init() deferred its call to
3499ba8198cad4 David Woodhouse     2021-01-13  770       * xs_init() in case 
callbacks were not operational yet.
3499ba8198cad4 David Woodhouse     2021-01-13  771       * So do it now.
3499ba8198cad4 David Woodhouse     2021-01-13  772       */
3499ba8198cad4 David Woodhouse     2021-01-13  773      if 
(xen_store_domain_type == XS_HVM)
3499ba8198cad4 David Woodhouse     2021-01-13  774              xs_init();
3499ba8198cad4 David Woodhouse     2021-01-13  775  
4bac07c993d034 Jeremy Fitzhardinge 2007-07-17  776      /* Notify others that 
xenstore is up */
4bac07c993d034 Jeremy Fitzhardinge 2007-07-17  777      
blocking_notifier_call_chain(&xenstore_chain, 0, NULL);
4bac07c993d034 Jeremy Fitzhardinge 2007-07-17  778  }
4bac07c993d034 Jeremy Fitzhardinge 2007-07-17  779  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to