* [PATCH] pwm: rcar: include linux/bitfield.h
@ 2025-04-03 13:23 Arnd Bergmann
2025-04-03 14:44 ` Uwe Kleine-König
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2025-04-03 13:23 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: Arnd Bergmann, linux-pwm, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
The use of FIELD_MAX() breaks in some configurations because of
a missing header:
drivers/pwm/pwm-rcar.c:114:12: error: call to undeclared function 'FIELD_MAX'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
114 | if (tmp > FIELD_MAX(RCAR_PWMCNT_CYC0_MASK))
| ^
Fixes: edd549f4956b ("pwm: rcar: Improve register calculation")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/pwm/pwm-rcar.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pwm/pwm-rcar.c b/drivers/pwm/pwm-rcar.c
index 19e5d0b849a6..578dbdd2d5a7 100644
--- a/drivers/pwm/pwm-rcar.c
+++ b/drivers/pwm/pwm-rcar.c
@@ -8,6 +8,7 @@
* - The hardware cannot generate a 0% duty cycle.
*/
+#include <linux/bitfield.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
--
2.39.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pwm: rcar: include linux/bitfield.h
2025-04-03 13:23 [PATCH] pwm: rcar: include linux/bitfield.h Arnd Bergmann
@ 2025-04-03 14:44 ` Uwe Kleine-König
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2025-04-03 14:44 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Arnd Bergmann, linux-pwm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
Hello Arnd,
On Thu, Apr 03, 2025 at 03:23:59PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> The use of FIELD_MAX() breaks in some configurations because of
> a missing header:
>
> drivers/pwm/pwm-rcar.c:114:12: error: call to undeclared function 'FIELD_MAX'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 114 | if (tmp > FIELD_MAX(RCAR_PWMCNT_CYC0_MASK))
> | ^
>
> Fixes: edd549f4956b ("pwm: rcar: Improve register calculation")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
I already fixed that in my pwm/for-next branch. I did exactly what you
did and squashed that in the offending commit.
Thanks for caring
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-03 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03 13:23 [PATCH] pwm: rcar: include linux/bitfield.h Arnd Bergmann
2025-04-03 14:44 ` Uwe Kleine-König
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.