diff options
author | Jan Beulich <JBeulich@suse.com> | 2016-07-06 00:58:58 -0600 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-07-06 10:35:38 +0100 |
commit | 585203609c894db11dea724b743c04d0c9927f39 (patch) | |
tree | 4d13634e93f959c3bf5e6c6fe95ea86424acf12b /drivers/xen/xen-pciback | |
parent | c8670c22e04e4e42e752cc5b53922106b3eedbda (diff) | |
download | blackbird-op-linux-585203609c894db11dea724b743c04d0c9927f39.tar.gz blackbird-op-linux-585203609c894db11dea724b743c04d0c9927f39.zip |
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/xen-pciback')
-rw-r--r-- | drivers/xen/xen-pciback/conf_space_header.c | 4 |
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 bfa610d02443..5fbfd9cfb6d6 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) |