summaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2016-07-06 00:58:58 -0600
committerDavid Vrabel <david.vrabel@citrix.com>2016-07-06 10:35:38 +0100
commit585203609c894db11dea724b743c04d0c9927f39 (patch)
tree4d13634e93f959c3bf5e6c6fe95ea86424acf12b /drivers/xen
parentc8670c22e04e4e42e752cc5b53922106b3eedbda (diff)
downloadop-kernel-dev-585203609c894db11dea724b743c04d0c9927f39.zip
op-kernel-dev-585203609c894db11dea724b743c04d0c9927f39.tar.gz
xen-pciback: use const and unsigned in bar_init()
Signed-off-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/xen-pciback/conf_space_header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-pciback/conf_space_header.c b/drivers/xen/xen-pciback/conf_space_header.c
index bfa610d..5fbfd9c 100644
--- a/drivers/xen/xen-pciback/conf_space_header.c
+++ b/drivers/xen/xen-pciback/conf_space_header.c
@@ -211,8 +211,8 @@ static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data)
static void *bar_init(struct pci_dev *dev, int offset)
{
- int pos;
- struct resource *res = dev->resource;
+ unsigned int pos;
+ const struct resource *res = dev->resource;
struct pci_bar_info *bar = kzalloc(sizeof(*bar), GFP_KERNEL);
if (!bar)
OpenPOWER on IntegriCloud