* [PATCH] drm/tidss: dispc: Explicitly include bitfield.h
@ 2025-09-02 21:15 Nathan Chancellor
2025-09-03 7:59 ` Maxime Ripard
2025-09-03 9:17 ` Tomi Valkeinen
0 siblings, 2 replies; 3+ messages in thread
From: Nathan Chancellor @ 2025-09-02 21:15 UTC (permalink / raw)
To: Jyri Sarha, Tomi Valkeinen, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann
Cc: dri-devel, patches, Nathan Chancellor
After a recent series to use FIELD_PREP and FIELD_MODIFY in
tidss_dispc.c, there are many errors when bitfield.h is not implicitly
included, such as when building allmodconfig for ARCH=hexagon:
drivers/gpu/drm/tidss/tidss_dispc.c:1116:2: error: call to undeclared function 'FIELD_MODIFY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1116 | VP_REG_FLD_MOD(dispc, hw_videoport, DISPC_VP_CONTROL, v,
| ^
drivers/gpu/drm/tidss/tidss_dispc.c:631:3: note: expanded from macro 'VP_REG_FLD_MOD'
631 | FIELD_MODIFY((mask), &_reg, (val)); \
| ^
drivers/gpu/drm/tidss/tidss_dispc.c:1140:2: error: call to undeclared function 'FIELD_MODIFY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1140 | FIELD_MODIFY(DISPC_VP_DSS_OLDI_CFG_MAP_MASK, &oldi_cfg,
| ^
drivers/gpu/drm/tidss/tidss_dispc.c:1203:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1203 | FIELD_PREP(DISPC_VP_TIMING_H_SYNC_PULSE_MASK, hsw - 1) |
| ^
...
Explicitly include bitfield.h to resolve the errors.
Fixes: 9accc8b10de8 ("drm/tidss: dispc: Get rid of FLD_VAL")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
index 97e2cd7b1e20..7c8c15a5c39b 100644
--- a/drivers/gpu/drm/tidss/tidss_dispc.c
+++ b/drivers/gpu/drm/tidss/tidss_dispc.c
@@ -4,6 +4,7 @@
* Author: Jyri Sarha <jsarha@ti.com>
*/
+#include <linux/bitfield.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/dma-mapping.h>
---
base-commit: 306734a1c76ce35fa613ea823a31ddbcdbf1eef5
change-id: 20250902-drm-tidss-fix-missing-bitfield-h-9b004e613a71
Best regards,
--
Nathan Chancellor <nathan@kernel.org>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/tidss: dispc: Explicitly include bitfield.h
2025-09-02 21:15 [PATCH] drm/tidss: dispc: Explicitly include bitfield.h Nathan Chancellor
@ 2025-09-03 7:59 ` Maxime Ripard
2025-09-03 9:17 ` Tomi Valkeinen
1 sibling, 0 replies; 3+ messages in thread
From: Maxime Ripard @ 2025-09-03 7:59 UTC (permalink / raw)
To: Nathan Chancellor
Cc: dri-devel, patches, Jyri Sarha, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Tomi Valkeinen
On Tue, 2 Sep 2025 14:15:50 -0700, Nathan Chancellor wrote:
> After a recent series to use FIELD_PREP and FIELD_MODIFY in
> tidss_dispc.c, there are many errors when bitfield.h is not implicitly
> included, such as when building allmodconfig for ARCH=hexagon:
>
> drivers/gpu/drm/tidss/tidss_dispc.c:1116:2: error: call to undeclared function 'FIELD_MODIFY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
>
> [ ... ]
Acked-by: Maxime Ripard <mripard@kernel.org>
Thanks!
Maxime
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/tidss: dispc: Explicitly include bitfield.h
2025-09-02 21:15 [PATCH] drm/tidss: dispc: Explicitly include bitfield.h Nathan Chancellor
2025-09-03 7:59 ` Maxime Ripard
@ 2025-09-03 9:17 ` Tomi Valkeinen
1 sibling, 0 replies; 3+ messages in thread
From: Tomi Valkeinen @ 2025-09-03 9:17 UTC (permalink / raw)
To: Nathan Chancellor
Cc: dri-devel, patches, Jyri Sarha, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann
Hi,
On 03/09/2025 00:15, Nathan Chancellor wrote:
> After a recent series to use FIELD_PREP and FIELD_MODIFY in
> tidss_dispc.c, there are many errors when bitfield.h is not implicitly
> included, such as when building allmodconfig for ARCH=hexagon:
>
> drivers/gpu/drm/tidss/tidss_dispc.c:1116:2: error: call to undeclared function 'FIELD_MODIFY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 1116 | VP_REG_FLD_MOD(dispc, hw_videoport, DISPC_VP_CONTROL, v,
> | ^
> drivers/gpu/drm/tidss/tidss_dispc.c:631:3: note: expanded from macro 'VP_REG_FLD_MOD'
> 631 | FIELD_MODIFY((mask), &_reg, (val)); \
> | ^
> drivers/gpu/drm/tidss/tidss_dispc.c:1140:2: error: call to undeclared function 'FIELD_MODIFY'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 1140 | FIELD_MODIFY(DISPC_VP_DSS_OLDI_CFG_MAP_MASK, &oldi_cfg,
> | ^
> drivers/gpu/drm/tidss/tidss_dispc.c:1203:10: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 1203 | FIELD_PREP(DISPC_VP_TIMING_H_SYNC_PULSE_MASK, hsw - 1) |
> | ^
> ...
>
> Explicitly include bitfield.h to resolve the errors.
>
> Fixes: 9accc8b10de8 ("drm/tidss: dispc: Get rid of FLD_VAL")
> Signed-off-by: Nathan Chancellor <nathan@kernel.org>
> ---
> drivers/gpu/drm/tidss/tidss_dispc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/tidss/tidss_dispc.c b/drivers/gpu/drm/tidss/tidss_dispc.c
> index 97e2cd7b1e20..7c8c15a5c39b 100644
> --- a/drivers/gpu/drm/tidss/tidss_dispc.c
> +++ b/drivers/gpu/drm/tidss/tidss_dispc.c
> @@ -4,6 +4,7 @@
> * Author: Jyri Sarha <jsarha@ti.com>
> */
>
> +#include <linux/bitfield.h>
> #include <linux/clk.h>
> #include <linux/delay.h>
> #include <linux/dma-mapping.h>
>
> ---
> base-commit: 306734a1c76ce35fa613ea823a31ddbcdbf1eef5
> change-id: 20250902-drm-tidss-fix-missing-bitfield-h-9b004e613a71
>
> Best regards,
> --
> Nathan Chancellor <nathan@kernel.org>
>
Thanks, pushed to drm-misc-next.
Tomi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-03 9:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-02 21:15 [PATCH] drm/tidss: dispc: Explicitly include bitfield.h Nathan Chancellor
2025-09-03 7:59 ` Maxime Ripard
2025-09-03 9:17 ` Tomi Valkeinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).