Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1369631
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] drivers:hv: fix resource_size.cocci warnings |
| Date | 2016-04-02 00:20 +0200 |
| Message-ID | <rjfA6-2lK-21@gated-at.bofh.it> (permalink) |
| References | <rjfA6-2lK-13@gated-at.bofh.it> <rjeXo-1OQ-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
drivers/hv/vmbus_drv.c:1099:15-18: ERROR: Missing resource_size with fb_mmio
Use resource_size function on resource object
instead of explicit computation.
Generated by: scripts/coccinelle/api/resource_size.cocci
CC: Jake Oshins <jakeo@microsoft.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
vmbus_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -1096,7 +1096,7 @@ static int vmbus_acpi_remove(struct acpi
if (hyperv_mmio) {
if (fb_mmio) {
__release_region(hyperv_mmio, fb_mmio->start,
- fb_mmio->end - fb_mmio->start + 1);
+ resource_size(fb_mmio));
fb_mmio = NULL;
}
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 6/7] drivers:hv: Record MMIO range in use by frame buffer Jake Oshins <jakeo@microsoft.com> - 2016-04-01 23:40 +0200 Re: [PATCH v3 6/7] drivers:hv: Record MMIO range in use by frame buffer kbuild test robot <lkp@intel.com> - 2016-04-02 00:20 +0200 [PATCH] drivers:hv: fix resource_size.cocci warnings kbuild test robot <lkp@intel.com> - 2016-04-02 00:20 +0200
csiph-web