drm/omapdrm: include pinctrl/consumer.h where needed
Subsystems (4)
PATCH 1/2 drm/omapdrm: include pinctrl/consumer.h where needed
In some configurations, we can build the OMAP dss driver without implictly including the pinctrl consumer definitions, causing a build error:
gpu/drm/omapdrm/dss/dss.c: In function 'dss_runtime_suspend':gpu/drm/omapdrm/dss/dss.c:1268:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
This adds an explicit #include.
--- drivers/gpu/drm/omapdrm/dss/dss.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/omapdrm/dss/dss.c +1 -0
@@ -30,6 +30,7 @@#include <linux/delay.h> #include <linux/seq_file.h> #include <linux/clk.h> +#include <linux/pinctrl/consumer.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/gfp.h>
Signature · 6 lines
2.7.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/sti: include linux/seq_file.h where needed
The sti drm driver has a lot of debugfs interface that cause build errors in some configurations when seq_file.h is not included implicitly:
drm/sti/sti_mixer.c: In function 'mixer_dbg_ctl':drm/sti/sti_mixer.c:88:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration] drm/sti/sti_mixer.c:91:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] drm/sti/sti_gdp.c: In function 'gdp_dbg_ctl':drm/sti/sti_gdp.c:146:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration] drm/sti/sti_gdp.c:149:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration] drm/sti/sti_gdp.c: In function 'gdp_dbg_show':drm/sti/sti_gdp.c:208:32: error: dereferencing pointer to incomplete type 'struct seq_file'
This adds an explicit #include statement in all of the affected files.
--- drivers/gpu/drm/sti/sti_cursor.c | 2 ++ drivers/gpu/drm/sti/sti_gdp.c | 1 + drivers/gpu/drm/sti/sti_hda.c | 1 + drivers/gpu/drm/sti/sti_hqvdp.c | 1 + drivers/gpu/drm/sti/sti_mixer.c | 1 + drivers/gpu/drm/sti/sti_tvout.c | 1 + drivers/gpu/drm/sti/sti_vid.c | 1 + 7 files changed, 8 insertions(+)
drivers/gpu/drm/sti/sti_cursor.c +2 -0
@@ -6,6 +6,8 @@* License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> +#include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_gem_cma_helper.h>
drivers/gpu/drm/sti/sti_gdp.c +1 -0
@@ -5,6 +5,7 @@* for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h>
drivers/gpu/drm/sti/sti_hda.c +1 -0
@@ -8,6 +8,7 @@#include <linux/component.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/seq_file.h> #include <drm/drmP.h> #include <drm/drm_atomic_helper.h>
drivers/gpu/drm/sti/sti_hqvdp.c +1 -0
@@ -7,6 +7,7 @@#include <linux/component.h> #include <linux/firmware.h> #include <linux/reset.h> +#include <linux/seq_file.h> #include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h>
drivers/gpu/drm/sti/sti_mixer.c +1 -0
@@ -5,6 +5,7 @@* for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include "sti_compositor.h" #include "sti_mixer.h"
drivers/gpu/drm/sti/sti_tvout.c +1 -0
@@ -12,6 +12,7 @@#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/reset.h> +#include <linux/seq_file.h> #include <drm/drmP.h> #include <drm/drm_crtc_helper.h>
drivers/gpu/drm/sti/sti_vid.c +1 -0
@@ -3,6 +3,7 @@* Author: Fabien Dessenne <[email protected]> for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include <drm/drmP.h>
Signature · 6 lines
2.7.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 19 lines · Arnd Bergmann
In some configurations, we can build the OMAP dss driver without implictly including the pinctrl consumer definitions, causing a build error:
gpu/drm/omapdrm/dss/dss.c: In function 'dss_runtime_suspend':gpu/drm/omapdrm/dss/dss.c:1268:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]This adds an explicit #include.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/gpu/drm/omapdrm/dss/dss.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/omapdrm/dss/dss.c +0
-0
drivers/gpu/drm/omapdrm/dss/dss.c line 36
Quoted 7 lines
drivers/gpu/drm/omapdrm/dss/dss.c +1
-0@@ -30,6 +30,7 @@#include <linux/delay.h> #include <linux/seq_file.h> #include <linux/clk.h> +#include <linux/pinctrl/consumer.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h> #include <linux/gfp.h>
Thanks, queued for omapdrm fixes.
Tomi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/sti: include linux/seq_file.h where needed
In reply to Arnd Bergmann2016-05-09 23:51 GMT+02:00 Arnd Bergmann <[email protected]>:
Quoted 114 lines
The sti drm driver has a lot of debugfs interface that cause build errors in some configurations when
seq_file.his not included implicitly:
drm/sti/sti_mixer.c: In function 'mixer_dbg_ctl':drm/sti/sti_mixer.c:88:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration]drm/sti/sti_mixer.c:91:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration]drm/sti/sti_gdp.c: In function 'gdp_dbg_ctl':drm/sti/sti_gdp.c:146:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration]drm/sti/sti_gdp.c:149:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration]drm/sti/sti_gdp.c: In function 'gdp_dbg_show':drm/sti/sti_gdp.c:208:32: error: dereferencing pointer to incomplete type 'structseq_file'This adds an explicit #include statement in all of the affected files.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/gpu/drm/sti/sti_cursor.c | 2 ++ drivers/gpu/drm/sti/sti_gdp.c | 1 + drivers/gpu/drm/sti/sti_hda.c | 1 + drivers/gpu/drm/sti/sti_hqvdp.c | 1 + drivers/gpu/drm/sti/sti_mixer.c | 1 + drivers/gpu/drm/sti/sti_tvout.c | 1 + drivers/gpu/drm/sti/sti_vid.c | 1 + 7 files changed, 8 insertions(+)drivers/gpu/drm/sti/sti_cursor.c +2
-0@@ -6,6 +6,8 @@* License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> +#include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_gem_cma_helper.h> drivers/gpu/drm/sti/sti_gdp.c +1
-0@@ -5,6 +5,7 @@* for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h> drivers/gpu/drm/sti/sti_hda.c +1
-0@@ -8,6 +8,7 @@#include <linux/component.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/seq_file.h> #include <drm/drmP.h> #include <drm/drm_atomic_helper.h> drivers/gpu/drm/sti/sti_hqvdp.c +1
-0@@ -7,6 +7,7 @@#include <linux/component.h> #include <linux/firmware.h> #include <linux/reset.h> +#include <linux/seq_file.h> #include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h> drivers/gpu/drm/sti/sti_mixer.c +1
-0@@ -5,6 +5,7 @@* for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include "sti_compositor.h" #include "sti_mixer.h" drivers/gpu/drm/sti/sti_tvout.c +1
-0@@ -12,6 +12,7 @@#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/reset.h> +#include <linux/seq_file.h> #include <drm/drmP.h> #include <drm/drm_crtc_helper.h> drivers/gpu/drm/sti/sti_vid.c +1
-1@@ -3,6 +3,7 @@* Author: Fabien Dessenne <[email protected]> for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include <drm/drmP.h> --2.7.0
Signature · 11 lines
Benjamin Gaignard Graphic Working Group Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Daniel Vetter
AppliedRe: [PATCH 2/2] drm/sti: include linux/seq_file.h where needed
Quoted 19 lines · Benjamin Gaignard
2016-05-09 23:51 GMT+02:00 Arnd Bergmann <[email protected]>:
Quoted 16 lines
The sti drm driver has a lot of debugfs interface that cause build errors in some configurations when
seq_file.his not included implicitly:
drm/sti/sti_mixer.c: In function 'mixer_dbg_ctl':drm/sti/sti_mixer.c:88:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration]drm/sti/sti_mixer.c:91:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration]drm/sti/sti_gdp.c: In function 'gdp_dbg_ctl':drm/sti/sti_gdp.c:146:2: error: implicit declaration of function 'seq_puts' [-Werror=implicit-function-declaration]drm/sti/sti_gdp.c:149:4: error: implicit declaration of function 'seq_printf' [-Werror=implicit-function-declaration]drm/sti/sti_gdp.c: In function 'gdp_dbg_show':drm/sti/sti_gdp.c:208:32: error: dereferencing pointer to incomplete type 'structseq_file'This adds an explicit #include statement in all of the affected files.
Signed-off-by Arnd Bergmann <[email protected]>
Applied to drm-misc.
-Daniel
Quoted 109 lines
Quoted 98 lines
--- drivers/gpu/drm/sti/sti_cursor.c | 2 ++ drivers/gpu/drm/sti/sti_gdp.c | 1 + drivers/gpu/drm/sti/sti_hda.c | 1 + drivers/gpu/drm/sti/sti_hqvdp.c | 1 + drivers/gpu/drm/sti/sti_mixer.c | 1 + drivers/gpu/drm/sti/sti_tvout.c | 1 + drivers/gpu/drm/sti/sti_vid.c | 1 + 7 files changed, 8 insertions(+)drivers/gpu/drm/sti/sti_cursor.c +2
-0@@ -6,6 +6,8 @@* License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> +#include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h> #include <drm/drm_gem_cma_helper.h> drivers/gpu/drm/sti/sti_gdp.c +1
-0@@ -5,6 +5,7 @@* for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h> drivers/gpu/drm/sti/sti_hda.c +1
-0@@ -8,6 +8,7 @@#include <linux/component.h> #include <linux/module.h> #include <linux/platform_device.h> +#include <linux/seq_file.h> #include <drm/drmP.h> #include <drm/drm_atomic_helper.h> drivers/gpu/drm/sti/sti_hqvdp.c +1
-0@@ -7,6 +7,7 @@#include <linux/component.h> #include <linux/firmware.h> #include <linux/reset.h> +#include <linux/seq_file.h> #include <drm/drm_atomic.h> #include <drm/drm_fb_cma_helper.h> drivers/gpu/drm/sti/sti_mixer.c +1
-0@@ -5,6 +5,7 @@* for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include "sti_compositor.h" #include "sti_mixer.h" drivers/gpu/drm/sti/sti_tvout.c +1
-0@@ -12,6 +12,7 @@#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/reset.h> +#include <linux/seq_file.h> #include <drm/drmP.h> #include <drm/drm_crtc_helper.h> drivers/gpu/drm/sti/sti_vid.c +1
-1@@ -3,6 +3,7 @@* Author: Fabien Dessenne <[email protected]> for STMicroelectronics. * License terms: GNU General Public License (GPL), version 2 */ +#include <linux/seq_file.h> #include <drm/drmP.h> --2.7.0
Signature · 7 lines
Benjamin Gaignard Graphic Working Group Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
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