[vbox-dev] [PATCH 4/7] Additions: linux/drm: Fix checkpatch warning in vbox_hgsmi.c
Hans de Goede
hdegoede at redhat.com
Thu Jun 8 19:08:11 UTC 2017
Fix:
CHECK: Alignment should match open parenthesis
#123: FILE: drivers/staging/vboxvideo/vbox_hgsmi.c:123:
offset = gen_pool_virt_to_phys(guest_pool,
(unsigned long)buf - sizeof(HGSMIBUFFERHEADER));
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/VBox/Additions/linux/drm/vbox_hgsmi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/VBox/Additions/linux/drm/vbox_hgsmi.c b/src/VBox/Additions/linux/drm/vbox_hgsmi.c
index c074db7e..eff5618c 100644
--- a/src/VBox/Additions/linux/drm/vbox_hgsmi.c
+++ b/src/VBox/Additions/linux/drm/vbox_hgsmi.c
@@ -119,8 +119,8 @@ int hgsmi_buffer_submit(struct gen_pool *guest_pool, void *buf)
{
phys_addr_t offset;
- offset = gen_pool_virt_to_phys(guest_pool,
- (unsigned long)buf - sizeof(HGSMIBUFFERHEADER));
+ offset = gen_pool_virt_to_phys(guest_pool, (unsigned long)buf -
+ sizeof(HGSMIBUFFERHEADER));
outl(offset, VGA_PORT_HGSMI_GUEST);
/* Make the compiler aware that the host has changed memory. */
mb();
--
2.13.0
More information about the vbox-dev
mailing list