[vbox-dev] [PATCH 1/2] Additions: linux/drm: Change vbox_prime.c to kernel coding style
Hans de Goede
hdegoede at redhat.com
Fri Jun 9 07:48:45 UTC 2017
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 at redhat.com>
---
src/VBox/Additions/linux/drm/vbox_prime.c | 44 +++++++++++++++----------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/src/VBox/Additions/linux/drm/vbox_prime.c b/src/VBox/Additions/linux/drm/vbox_prime.c
index 5c47ec6a..7216b642 100644
--- a/src/VBox/Additions/linux/drm/vbox_prime.c
+++ b/src/VBox/Additions/linux/drm/vbox_prime.c
@@ -25,55 +25,55 @@
#include "vbox_drv.h"
-/* Based on qxl_prime.c:
+/*
+ * Based on qxl_prime.c:
* Empty Implementations as there should not be any other driver for a virtual
- * device that might share buffers with vboxvideo */
+ * device that might share buffers with vboxvideo
+ */
int vbox_gem_prime_pin(struct drm_gem_object *obj)
{
- WARN_ONCE(1, "not implemented");
- return -ENOSYS;
+ WARN_ONCE(1, "not implemented");
+ return -ENOSYS;
}
void vbox_gem_prime_unpin(struct drm_gem_object *obj)
{
- WARN_ONCE(1, "not implemented");
+ WARN_ONCE(1, "not implemented");
}
-
struct sg_table *vbox_gem_prime_get_sg_table(struct drm_gem_object *obj)
{
- WARN_ONCE(1, "not implemented");
- return ERR_PTR(-ENOSYS);
+ WARN_ONCE(1, "not implemented");
+ return ERR_PTR(-ENOSYS);
}
-struct drm_gem_object *vbox_gem_prime_import_sg_table(
- struct drm_device *dev,
+struct drm_gem_object *vbox_gem_prime_import_sg_table(struct drm_device *dev,
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
- size_t size,
+ size_t size,
#else
- struct dma_buf_attachment *attach,
+ struct dma_buf_attachment
+ *attach,
#endif
- struct sg_table *table)
+ struct sg_table *table)
{
- WARN_ONCE(1, "not implemented");
- return ERR_PTR(-ENOSYS);
+ WARN_ONCE(1, "not implemented");
+ return ERR_PTR(-ENOSYS);
}
void *vbox_gem_prime_vmap(struct drm_gem_object *obj)
{
- WARN_ONCE(1, "not implemented");
- return ERR_PTR(-ENOSYS);
+ WARN_ONCE(1, "not implemented");
+ return ERR_PTR(-ENOSYS);
}
void vbox_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr)
{
- WARN_ONCE(1, "not implemented");
+ WARN_ONCE(1, "not implemented");
}
-int vbox_gem_prime_mmap(struct drm_gem_object *obj,
- struct vm_area_struct *area)
+int vbox_gem_prime_mmap(struct drm_gem_object *obj, struct vm_area_struct *area)
{
- WARN_ONCE(1, "not implemented");
- return -ENOSYS;
+ WARN_ONCE(1, "not implemented");
+ return -ENOSYS;
}
--
2.13.0
More information about the vbox-dev
mailing list