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-Url: https://git.stricted.de/?a=commitdiff_plain;h=585203609c894db11dea724b743c04d0c9927f39;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git xen-pciback: use const and unsigned in bar_init() Signed-off-by: Jan Beulich Signed-off-by: David Vrabel --- 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)