VirtualBox

Ignore:
Timestamp:
Jun 14, 2017 1:16:54 PM (8 years ago)
Author:
vboxsync
Message:

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Additions: linux/drm: Change vbox_prime.c to kernel coding style

This is the result of running linux/scripts/Lindent + manual cleanups.
After this the file passes linux/scripts/checkpatch -f
except for the LINUX_VERSION_CODE checks.

This patch contains no functional changes, only coding style fixes,
including changing uintXX_t types to uXX.

Signed-off-by: Hans de Goede <hdegoede@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/vbox_prime.c

    r66544 r67405  
    2626#include "vbox_drv.h"
    2727
    28 /* Based on qxl_prime.c:
     28/*
     29 * Based on qxl_prime.c:
    2930 * Empty Implementations as there should not be any other driver for a virtual
    30  * device that might share buffers with vboxvideo */
     31 * device that might share buffers with vboxvideo
     32 */
    3133
    3234int vbox_gem_prime_pin(struct drm_gem_object *obj)
    3335{
    34     WARN_ONCE(1, "not implemented");
    35     return -ENOSYS;
     36        WARN_ONCE(1, "not implemented");
     37        return -ENOSYS;
    3638}
    3739
    3840void vbox_gem_prime_unpin(struct drm_gem_object *obj)
    3941{
    40     WARN_ONCE(1, "not implemented");
     42        WARN_ONCE(1, "not implemented");
    4143}
    42 
    4344
    4445struct sg_table *vbox_gem_prime_get_sg_table(struct drm_gem_object *obj)
    4546{
    46     WARN_ONCE(1, "not implemented");
    47     return ERR_PTR(-ENOSYS);
     47        WARN_ONCE(1, "not implemented");
     48        return ERR_PTR(-ENOSYS);
    4849}
    4950
    50 struct drm_gem_object *vbox_gem_prime_import_sg_table(
    51         struct drm_device *dev,
     51struct drm_gem_object *vbox_gem_prime_import_sg_table(struct drm_device *dev,
    5252#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
    53         size_t size,
     53                                                      size_t size,
    5454#else
    55         struct dma_buf_attachment *attach,
     55                                                      struct dma_buf_attachment
     56                                                      *attach,
    5657#endif
    57         struct sg_table *table)
     58                                                      struct sg_table *table)
    5859{
    59     WARN_ONCE(1, "not implemented");
    60     return ERR_PTR(-ENOSYS);
     60        WARN_ONCE(1, "not implemented");
     61        return ERR_PTR(-ENOSYS);
    6162}
    6263
    6364void *vbox_gem_prime_vmap(struct drm_gem_object *obj)
    6465{
    65     WARN_ONCE(1, "not implemented");
    66     return ERR_PTR(-ENOSYS);
     66        WARN_ONCE(1, "not implemented");
     67        return ERR_PTR(-ENOSYS);
    6768}
    6869
    6970void vbox_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
    7071{
    71     WARN_ONCE(1, "not implemented");
     72        WARN_ONCE(1, "not implemented");
    7273}
    7374
    74 int vbox_gem_prime_mmap(struct drm_gem_object *obj,
    75         struct vm_area_struct *area)
     75int vbox_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *area)
    7676{
    77     WARN_ONCE(1, "not implemented");
    78     return -ENOSYS;
     77        WARN_ONCE(1, "not implemented");
     78        return -ENOSYS;
    7979}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette