From: Jan Beulich Date: Wed, 6 Jul 2016 06:58:58 +0000 (-0600) Subject: xen-pciback: use const and unsigned in bar_init() X-Git-Tag: v4.1.12-92~55^2~25 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=74ef71073100ede29d7347e23ffe3921c9e920ac;p=users%2Fjedix%2Flinux-maple.git xen-pciback: use const and unsigned in bar_init() Signed-off-by: Jan Beulich Signed-off-by: David Vrabel (cherry picked from commit 585203609c894db11dea724b743c04d0c9927f39) Signed-off-by: Bob Liu Orabug: 24820937 --- diff --git a/drivers/xen/xen-pciback/conf_space_header.c b/drivers/xen/xen-pciback/conf_space_header.c index bfa610d024436..5fbfd9cfb6d63 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)