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 <hdego...@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

_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
https://www.virtualbox.org/mailman/listinfo/vbox-dev

Reply via email to