[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] consolidate GRANT_INVALID_REF definitions
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1331551618 -3600 # Node ID 1a12d75a97bdea29e646956e1b4483f7e37b6076 # Parent 0db21b31377ffd8e08d5aa43e346be6a8e9a304f consolidate GRANT_INVALID_REF definitions No need for each frontend to define this for itself, the more that this really is a property of the gnttab.c code. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 0db21b31377f -r 1a12d75a97bd drivers/char/tpm/tpm_xen.c --- a/drivers/char/tpm/tpm_xen.c Wed Mar 07 14:33:13 2012 +0100 +++ b/drivers/char/tpm/tpm_xen.c Mon Mar 12 12:26:58 2012 +0100 @@ -109,8 +109,6 @@ #define WPRINTK(fmt, args...) \ printk(KERN_WARNING "xen_tpm_fr: " fmt, ##args) -#define GRANT_INVALID_REF 0 - static inline int tx_buffer_copy(struct tx_buffer *txb, const u8 *src, int len, diff -r 0db21b31377f -r 1a12d75a97bd drivers/xen/blkfront/blkfront.c --- a/drivers/xen/blkfront/blkfront.c Wed Mar 07 14:33:13 2012 +0100 +++ b/drivers/xen/blkfront/blkfront.c Mon Mar 12 12:26:58 2012 +0100 @@ -60,7 +60,6 @@ #define MAXIMUM_OUTSTANDING_BLOCK_REQS \ (BLKIF_MAX_SEGMENTS_PER_REQUEST * BLK_RING_SIZE) -#define GRANT_INVALID_REF 0 static void connect(struct blkfront_info *); static void blkfront_closing(struct blkfront_info *); diff -r 0db21b31377f -r 1a12d75a97bd drivers/xen/netfront/netfront.c --- a/drivers/xen/netfront/netfront.c Wed Mar 07 14:33:13 2012 +0100 +++ b/drivers/xen/netfront/netfront.c Mon Mar 12 12:26:58 2012 +0100 @@ -147,8 +147,6 @@ #define ethtool_op_set_tso(dev, data) (-ENOSYS) #endif -#define GRANT_INVALID_REF 0 - struct netfront_rx_info { struct netif_rx_response rx; struct netif_extra_info extras[XEN_NETIF_EXTRA_TYPE_MAX - 1]; diff -r 0db21b31377f -r 1a12d75a97bd drivers/xen/pcifront/xenbus.c --- a/drivers/xen/pcifront/xenbus.c Wed Mar 07 14:33:13 2012 +0100 +++ b/drivers/xen/pcifront/xenbus.c Mon Mar 12 12:26:58 2012 +0100 @@ -15,7 +15,6 @@ #define __init_refok #endif -#define INVALID_GRANT_REF (0) #define INVALID_EVTCHN (-1) static struct pcifront_device *alloc_pdev(struct xenbus_device *xdev) @@ -47,7 +46,7 @@ spin_lock_init(&pdev->sh_info_lock); pdev->evtchn = INVALID_EVTCHN; - pdev->gnt_ref = INVALID_GRANT_REF; + pdev->gnt_ref = GRANT_INVALID_REF; pdev->irq = -1; INIT_WORK(&pdev->op_work, pcifront_do_aer, pdev); @@ -73,7 +72,7 @@ if (pdev->evtchn != INVALID_EVTCHN) xenbus_free_evtchn(pdev->xdev, pdev->evtchn); - if (pdev->gnt_ref != INVALID_GRANT_REF) + if (pdev->gnt_ref != GRANT_INVALID_REF) gnttab_end_foreign_access(pdev->gnt_ref, (unsigned long)pdev->sh_info); else diff -r 0db21b31377f -r 1a12d75a97bd drivers/xen/scsifront/common.h --- a/drivers/xen/scsifront/common.h Wed Mar 07 14:33:13 2012 +0100 +++ b/drivers/xen/scsifront/common.h Mon Mar 12 12:26:58 2012 +0100 @@ -61,7 +61,6 @@ #include <xen/platform-compat.h> #endif -#define GRANT_INVALID_REF 0 #define VSCSI_IN_ABORT 1 #define VSCSI_IN_RESET 2 diff -r 0db21b31377f -r 1a12d75a97bd drivers/xen/usbfront/xenbus.c --- a/drivers/xen/usbfront/xenbus.c Wed Mar 07 14:33:13 2012 +0100 +++ b/drivers/xen/usbfront/xenbus.c Mon Mar 12 12:26:58 2012 +0100 @@ -45,8 +45,6 @@ #include "usbfront.h" -#define GRANT_INVALID_REF 0 - static void destroy_rings(struct usbfront_info *info) { if (info->irq) diff -r 0db21b31377f -r 1a12d75a97bd include/xen/gnttab.h --- a/include/xen/gnttab.h Wed Mar 07 14:33:13 2012 +0100 +++ b/include/xen/gnttab.h Mon Mar 12 12:26:58 2012 +0100 @@ -44,6 +44,8 @@ #include <xen/interface/grant_table.h> #include <xen/features.h> +#define GRANT_INVALID_REF 0 + struct gnttab_free_callback { struct gnttab_free_callback *next; void (*fn)(void *); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |