]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/tilcdc: add missing header dependencies
authorBaoyou Xie <baoyou.xie@linaro.org>
Thu, 8 Sep 2016 11:08:56 +0000 (19:08 +0800)
committerJyri Sarha <jsarha@ti.com>
Thu, 22 Sep 2016 20:50:08 +0000 (23:50 +0300)
We get 4 warnings when building kernel with W=1:
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:393:12: warning: no previous prototype for 'tilcdc_tfp410_init' [-Wmissing-prototypes]
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c:398:13: warning: no previous prototype for 'tilcdc_tfp410_fini' [-Wmissing-prototypes]
drivers/gpu/drm/tilcdc/tilcdc_panel.c:443:12: warning: no previous prototype for 'tilcdc_panel_init' [-Wmissing-prototypes]
drivers/gpu/drm/tilcdc/tilcdc_panel.c:448:13: warning: no previous prototype for 'tilcdc_panel_fini' [-Wmissing-prototypes]

In fact, these functions are declared in
drivers/gpu/drm/tilcdc/tilcdc_tfp410.h,
drivers/gpu/drm/tilcdc/tilcdc_panel.h,
so this patch adds missing header dependencies.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_panel.c
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c

index 7b3650901930ce0607d3db3211ef9a59a1be37aa..2134bb20fbe9d169c6f238ae57cc2685c6e17ea9 100644 (file)
@@ -25,6 +25,7 @@
 #include <drm/drm_atomic_helper.h>
 
 #include "tilcdc_drv.h"
+#include "tilcdc_panel.h"
 
 struct panel_module {
        struct tilcdc_module base;
index c6a70da6473dc9f14e413794fb9d58d86f4336c8..458043a539959ec08a867aaf98ea4274f78b6693 100644 (file)
@@ -23,6 +23,7 @@
 #include <drm/drm_atomic_helper.h>
 
 #include "tilcdc_drv.h"
+#include "tilcdc_tfp410.h"
 
 struct tfp410_module {
        struct tilcdc_module base;