Skip to contentSkip to conversation

drm: Update drm_cache.c to pull in the new drm_cache.h

PATCH Applied Chris Wilson 3 participants 3 messages Jan 21, 2017 – Jan 23, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Update drm_cache.c to pull in the new drm_cache.h

The prototypes were moved to a new header, but the function definitions were not updated to pull in the declarations.

drivers/gpu/drm/drm_cache.c:79:1: warning: no previous prototype for ‘drm_clflush_pages’ [-Wmissing-prototypes] drivers/gpu/drm/drm_cache.c:120:1: warning: no previous prototype for ‘drm_clflush_sg’ [-Wmissing-prototypes] drivers/gpu/drm/drm_cache.c:152:1: warning: no previous prototype for ‘drm_clflush_virt_range’ [-Wmissing-prototypes]

Fixes f9a87bd7d5b6 ("drm: Move drm_clflush prototypes to drm_cache header file")
Cc Gabriel Krisman Bertazi <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Daniel Vetter <[email protected]>
---
 drivers/gpu/drm/drm_cache.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_cache.c +3 -1
index 5066638928ec..c3b9aaccdf42 100644
@@ -29,7 +29,9 @@
  */
 
 #include <linux/export.h>
-#include <drm/drmP.h>
+#include <linux/highmem.h>
+
+#include <drm/drm_cache.h>
 
 #if defined(CONFIG_X86)
 #include <asm/smp.h>
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Chris Wilson

The prototypes were moved to a new header, but the function definitions were not updated to pull in the declarations.

drivers/gpu/drm/drm_cache.c:79:1: warning: no previous prototype for ‘drm_clflush_pages’ [-Wmissing-prototypes] drivers/gpu/drm/drm_cache.c:120:1: warning: no previous prototype for ‘drm_clflush_sg’ [-Wmissing-prototypes] drivers/gpu/drm/drm_cache.c:152:1: warning: no previous prototype for ‘drm_clflush_virt_range’ [-Wmissing-prototypes]

Quoted 5 lines
Fixes f9a87bd7d5b6 ("drm: Move drm_clflush prototypes to drm_cache header file")
Cc Gabriel Krisman Bertazi <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Daniel Vetter <[email protected]>

Patch is good, though I'm Embarrassed that I didn't have -Wmissing-prototypes enabled when testing this. Thanks Chris.

--
Gabriel Krisman Bertazi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 15 lines · Gabriel Krisman Bertazi
Quoted 7 lines · Chris Wilson

The prototypes were moved to a new header, but the function definitions were not updated to pull in the declarations.

drivers/gpu/drm/drm_cache.c:79:1: warning: no previous prototype for ‘drm_clflush_pages’ [-Wmissing-prototypes] drivers/gpu/drm/drm_cache.c:120:1: warning: no previous prototype for ‘drm_clflush_sg’ [-Wmissing-prototypes] drivers/gpu/drm/drm_cache.c:152:1: warning: no previous prototype for ‘drm_clflush_virt_range’ [-Wmissing-prototypes]

Quoted 5 lines
Fixes f9a87bd7d5b6 ("drm: Move drm_clflush prototypes to drm_cache header file")
Cc Gabriel Krisman Bertazi <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Daniel Vetter <[email protected]>
Quoted 4 lines

Patch is good, though I'm Embarrassed that I didn't have -Wmissing-prototypes enabled when testing this. Thanks Chris.

Applied to drm-misc, thx.
-Daniel

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