Skip to contentSkip to conversation

drm/gpu: Fix Missing blank line after declarations

PATCH Applied Bhanusree 2 participants 2 messages Oct 25, 2019

Subsystems (2)
lore
Share & tools
lore

Bhanusree

author
#0 lore raw

PATCH 1/2 drm/gpu: Fix Missing blank line after declarations

-Insert a blank line after the declarations.
-Issue found using checkpatch.pl

---
 drivers/gpu/drm/drm_cache.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/drm_cache.c +2 -0
index e574261..12f8d1b 100644
@@ -92,6 +92,7 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
 
 #elif defined(__powerpc__)
 	unsigned long i;
+
 	for (i = 0; i < num_pages; i++) {
 		struct page *page = pages[i];
 		void *page_virtual;
@@ -157,6 +158,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)
 	if (static_cpu_has(X86_FEATURE_CLFLUSH)) {
 		const int size = boot_cpu_data.x86_clflush_size;
 		void *end = addr + length;
+
 		addr = (void *)(((unsigned long)addr) & -size);
 		mb();
 		for (; addr < end; addr += size)
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 4 lines · Bhanusree
(quoted diff) +0 -2
-Insert a blank line after the declarations.
-Issue found using checkpatch.pl

Applied, thanks for your patch.
-Daniel

Quoted 27 lines
---
 drivers/gpu/drm/drm_cache.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/drm_cache.c +2 -0
index e574261..12f8d1b 100644
@@ -92,6 +92,7 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
 
 #elif defined(__powerpc__)
 	unsigned long i;
+
 	for (i = 0; i < num_pages; i++) {
 		struct page *page = pages[i];
 		void *page_virtual;
@@ -157,6 +158,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)
 	if (static_cpu_has(X86_FEATURE_CLFLUSH)) {
 		const int size = boot_cpu_data.x86_clflush_size;
 		void *end = addr + length;
+
 		addr = (void *)(((unsigned long)addr) & -size);
 		mb();
 		for (; addr < end; addr += size)
Signature · 1 line
2.7.4
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel