Skip to content

Commit bad8c4a

Browse files
committed
Merge tag 'for-linus-6.2-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip
Pull xen fixes from Juergen Gross: - two cleanup patches - a fix of a memory leak in the Xen pvfront driver - a fix of a locking issue in the Xen hypervisor console driver * tag 'for-linus-6.2-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: xen/pvcalls: free active map buffer on pvcalls_front_free_map hvc/xen: lock console list traversal x86/xen: Remove the unused function p2m_index() xen: make remove callback of xen driver void returned
2 parents 772d0e9 + f57034c commit bad8c4a

File tree

20 files changed

+54
-70
lines changed

20 files changed

+54
-70
lines changed

arch/x86/xen/p2m.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ static inline unsigned p2m_mid_index(unsigned long pfn)
134134
return (pfn / P2M_PER_PAGE) % P2M_MID_PER_PAGE;
135135
}
136136

137-
static inline unsigned p2m_index(unsigned long pfn)
138-
{
139-
return pfn % P2M_PER_PAGE;
140-
}
141-
142137
static void p2m_top_mfn_init(unsigned long *top)
143138
{
144139
unsigned i;

drivers/block/xen-blkback/xenbus.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ static int xen_vbd_create(struct xen_blkif *blkif, blkif_vdev_t handle,
524524
return 0;
525525
}
526526

527-
static int xen_blkbk_remove(struct xenbus_device *dev)
527+
static void xen_blkbk_remove(struct xenbus_device *dev)
528528
{
529529
struct backend_info *be = dev_get_drvdata(&dev->dev);
530530

@@ -547,8 +547,6 @@ static int xen_blkbk_remove(struct xenbus_device *dev)
547547
/* Put the reference we set in xen_blkif_alloc(). */
548548
xen_blkif_put(be->blkif);
549549
}
550-
551-
return 0;
552550
}
553551

554552
int xen_blkbk_flush_diskcache(struct xenbus_transaction xbt,

drivers/block/xen-blkfront.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,7 +2467,7 @@ static void blkback_changed(struct xenbus_device *dev,
24672467
}
24682468
}
24692469

2470-
static int blkfront_remove(struct xenbus_device *xbdev)
2470+
static void blkfront_remove(struct xenbus_device *xbdev)
24712471
{
24722472
struct blkfront_info *info = dev_get_drvdata(&xbdev->dev);
24732473

@@ -2488,7 +2488,6 @@ static int blkfront_remove(struct xenbus_device *xbdev)
24882488
}
24892489

24902490
kfree(info);
2491-
return 0;
24922491
}
24932492

24942493
static int blkfront_is_ready(struct xenbus_device *dev)

drivers/char/tpm/xen-tpmfront.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,13 @@ static int tpmfront_probe(struct xenbus_device *dev,
360360
return tpm_chip_register(priv->chip);
361361
}
362362

363-
static int tpmfront_remove(struct xenbus_device *dev)
363+
static void tpmfront_remove(struct xenbus_device *dev)
364364
{
365365
struct tpm_chip *chip = dev_get_drvdata(&dev->dev);
366366
struct tpm_private *priv = dev_get_drvdata(&chip->dev);
367367
tpm_chip_unregister(chip);
368368
ring_free(priv);
369369
dev_set_drvdata(&chip->dev, NULL);
370-
return 0;
371370
}
372371

373372
static int tpmfront_resume(struct xenbus_device *dev)

drivers/gpu/drm/xen/xen_drm_front.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ static int xen_drv_probe(struct xenbus_device *xb_dev,
717717
return xenbus_switch_state(xb_dev, XenbusStateInitialising);
718718
}
719719

720-
static int xen_drv_remove(struct xenbus_device *dev)
720+
static void xen_drv_remove(struct xenbus_device *dev)
721721
{
722722
struct xen_drm_front_info *front_info = dev_get_drvdata(&dev->dev);
723723
int to = 100;
@@ -751,7 +751,6 @@ static int xen_drv_remove(struct xenbus_device *dev)
751751

752752
xen_drm_drv_fini(front_info);
753753
xenbus_frontend_closed(dev);
754-
return 0;
755754
}
756755

757756
static const struct xenbus_device_id xen_driver_ids[] = {

drivers/input/misc/xen-kbdfront.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module_param_array(ptr_size, int, NULL, 0444);
5151
MODULE_PARM_DESC(ptr_size,
5252
"Pointing device width, height in pixels (default 800,600)");
5353

54-
static int xenkbd_remove(struct xenbus_device *);
54+
static void xenkbd_remove(struct xenbus_device *);
5555
static int xenkbd_connect_backend(struct xenbus_device *, struct xenkbd_info *);
5656
static void xenkbd_disconnect_backend(struct xenkbd_info *);
5757

@@ -404,7 +404,7 @@ static int xenkbd_resume(struct xenbus_device *dev)
404404
return xenkbd_connect_backend(dev, info);
405405
}
406406

407-
static int xenkbd_remove(struct xenbus_device *dev)
407+
static void xenkbd_remove(struct xenbus_device *dev)
408408
{
409409
struct xenkbd_info *info = dev_get_drvdata(&dev->dev);
410410

@@ -417,7 +417,6 @@ static int xenkbd_remove(struct xenbus_device *dev)
417417
input_unregister_device(info->mtouch);
418418
free_page((unsigned long)info->page);
419419
kfree(info);
420-
return 0;
421420
}
422421

423422
static int xenkbd_connect_backend(struct xenbus_device *dev,

drivers/net/xen-netback/xenbus.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ static int read_xenbus_vif_flags(struct backend_info *be)
977977
return 0;
978978
}
979979

980-
static int netback_remove(struct xenbus_device *dev)
980+
static void netback_remove(struct xenbus_device *dev)
981981
{
982982
struct backend_info *be = dev_get_drvdata(&dev->dev);
983983

@@ -992,7 +992,6 @@ static int netback_remove(struct xenbus_device *dev)
992992
kfree(be->hotplug_script);
993993
kfree(be);
994994
dev_set_drvdata(&dev->dev, NULL);
995-
return 0;
996995
}
997996

998997
/*

drivers/net/xen-netfront.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,7 +2646,7 @@ static void xennet_bus_close(struct xenbus_device *dev)
26462646
} while (!ret);
26472647
}
26482648

2649-
static int xennet_remove(struct xenbus_device *dev)
2649+
static void xennet_remove(struct xenbus_device *dev)
26502650
{
26512651
struct netfront_info *info = dev_get_drvdata(&dev->dev);
26522652

@@ -2662,8 +2662,6 @@ static int xennet_remove(struct xenbus_device *dev)
26622662
rtnl_unlock();
26632663
}
26642664
xennet_free_netdev(info->netdev);
2665-
2666-
return 0;
26672665
}
26682666

26692667
static const struct xenbus_device_id netfront_ids[] = {

drivers/pci/xen-pcifront.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,14 +1055,12 @@ static int pcifront_xenbus_probe(struct xenbus_device *xdev,
10551055
return err;
10561056
}
10571057

1058-
static int pcifront_xenbus_remove(struct xenbus_device *xdev)
1058+
static void pcifront_xenbus_remove(struct xenbus_device *xdev)
10591059
{
10601060
struct pcifront_device *pdev = dev_get_drvdata(&xdev->dev);
10611061

10621062
if (pdev)
10631063
free_pdev(pdev);
1064-
1065-
return 0;
10661064
}
10671065

10681066
static const struct xenbus_device_id xenpci_ids[] = {

drivers/scsi/xen-scsifront.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ static int scsifront_suspend(struct xenbus_device *dev)
995995
return err;
996996
}
997997

998-
static int scsifront_remove(struct xenbus_device *dev)
998+
static void scsifront_remove(struct xenbus_device *dev)
999999
{
10001000
struct vscsifrnt_info *info = dev_get_drvdata(&dev->dev);
10011001

@@ -1011,8 +1011,6 @@ static int scsifront_remove(struct xenbus_device *dev)
10111011

10121012
scsifront_free_ring(info);
10131013
scsi_host_put(info->host);
1014-
1015-
return 0;
10161014
}
10171015

10181016
static void scsifront_disconnect(struct vscsifrnt_info *info)

0 commit comments

Comments
 (0)