projects
/
cascardo
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8670c2
)
xen-pciback: use const and unsigned in bar_init()
author
Jan Beulich
<JBeulich@suse.com>
Wed, 6 Jul 2016 06:58:58 +0000
(
00:58
-0600)
committer
David Vrabel
<david.vrabel@citrix.com>
Wed, 6 Jul 2016 09:35:38 +0000
(10:35 +0100)
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-pciback/conf_space_header.c
patch
|
blob
|
history
diff --git
a/drivers/xen/xen-pciback/conf_space_header.c
b/drivers/xen/xen-pciback/conf_space_header.c
index
bfa610d
..
5fbfd9c
100644
(file)
--- 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)