* [PATCH] net: pse-pd: tps23881: include missing bitfield.h header
@ 2024-08-07 7:54 Arnd Bergmann
2024-08-07 9:13 ` Oleksij Rempel
2024-08-08 16:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2024-08-07 7:54 UTC (permalink / raw)
To: Oleksij Rempel, Kory Maincent, Jakub Kicinski, Kyle Swenson
Cc: Arnd Bergmann, David S. Miller, Eric Dumazet, Paolo Abeni,
Thomas Petazzoni, Uwe Kleine-König, netdev, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
Using FIELD_GET() fails in configurations that don't already include
the header file indirectly:
drivers/net/pse-pd/tps23881.c: In function 'tps23881_i2c_probe':
drivers/net/pse-pd/tps23881.c:755:13: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
755 | if (FIELD_GET(TPS23881_REG_DEVID_MASK, ret) != TPS23881_DEVICE_ID) {
| ^~~~~~~~~
Fixes: 89108cb5c285 ("net: pse-pd: tps23881: Fix the device ID check")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/net/pse-pd/tps23881.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/pse-pd/tps23881.c b/drivers/net/pse-pd/tps23881.c
index f90db758554b..2ea75686a319 100644
--- a/drivers/net/pse-pd/tps23881.c
+++ b/drivers/net/pse-pd/tps23881.c
@@ -5,6 +5,7 @@
* Copyright (c) 2023 Bootlin, Kory Maincent <kory.maincent@bootlin.com>
*/
+#include <linux/bitfield.h>
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/i2c.h>
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: pse-pd: tps23881: include missing bitfield.h header
2024-08-07 7:54 [PATCH] net: pse-pd: tps23881: include missing bitfield.h header Arnd Bergmann
@ 2024-08-07 9:13 ` Oleksij Rempel
2024-08-08 15:36 ` Jakub Kicinski
2024-08-08 16:20 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 4+ messages in thread
From: Oleksij Rempel @ 2024-08-07 9:13 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Kory Maincent, Jakub Kicinski, Kyle Swenson, Arnd Bergmann,
David S. Miller, Eric Dumazet, Paolo Abeni, Thomas Petazzoni,
Uwe Kleine-König, netdev, linux-kernel
Hi Arnd,
Thank you for your patch.
I acked already other one:
https://lore.kernel.org/all/20240807071538.569784-1-guanjun@linux.alibaba.com/
On Wed, Aug 07, 2024 at 09:54:22AM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> Using FIELD_GET() fails in configurations that don't already include
> the header file indirectly:
>
> drivers/net/pse-pd/tps23881.c: In function 'tps23881_i2c_probe':
> drivers/net/pse-pd/tps23881.c:755:13: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
> 755 | if (FIELD_GET(TPS23881_REG_DEVID_MASK, ret) != TPS23881_DEVICE_ID) {
> | ^~~~~~~~~
>
> Fixes: 89108cb5c285 ("net: pse-pd: tps23881: Fix the device ID check")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Regards,
Oleksij
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: pse-pd: tps23881: include missing bitfield.h header
2024-08-07 9:13 ` Oleksij Rempel
@ 2024-08-08 15:36 ` Jakub Kicinski
0 siblings, 0 replies; 4+ messages in thread
From: Jakub Kicinski @ 2024-08-08 15:36 UTC (permalink / raw)
To: Oleksij Rempel
Cc: Arnd Bergmann, Kory Maincent, Kyle Swenson, Arnd Bergmann,
David S. Miller, Eric Dumazet, Paolo Abeni, Thomas Petazzoni,
Uwe Kleine-König, netdev, linux-kernel
On Wed, 7 Aug 2024 11:13:48 +0200 Oleksij Rempel wrote:
> I acked already other one:
> https://lore.kernel.org/all/20240807071538.569784-1-guanjun@linux.alibaba.com/
Thanks for the note, I totally missed the other patch scanning for just
fixes before the downstream PR.
I prefer Arnd's fix TBH, apart from not having the wrong tree in the
subject - the fixes tag is correctly formatted and includes are kept
alphabetical.
I'll "move" your ack here, hope that's fine.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: pse-pd: tps23881: include missing bitfield.h header
2024-08-07 7:54 [PATCH] net: pse-pd: tps23881: include missing bitfield.h header Arnd Bergmann
2024-08-07 9:13 ` Oleksij Rempel
@ 2024-08-08 16:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-08-08 16:20 UTC (permalink / raw)
To: Arnd Bergmann
Cc: o.rempel, kory.maincent, kuba, kyle.swenson, arnd, davem,
edumazet, pabeni, thomas.petazzoni, u.kleine-koenig, netdev,
linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 7 Aug 2024 09:54:22 +0200 you wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> Using FIELD_GET() fails in configurations that don't already include
> the header file indirectly:
>
> drivers/net/pse-pd/tps23881.c: In function 'tps23881_i2c_probe':
> drivers/net/pse-pd/tps23881.c:755:13: error: implicit declaration of function 'FIELD_GET' [-Wimplicit-function-declaration]
> 755 | if (FIELD_GET(TPS23881_REG_DEVID_MASK, ret) != TPS23881_DEVICE_ID) {
> | ^~~~~~~~~
>
> [...]
Here is the summary with links:
- net: pse-pd: tps23881: include missing bitfield.h header
https://git.kernel.org/netdev/net/c/a70b637db15b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-08 16:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 7:54 [PATCH] net: pse-pd: tps23881: include missing bitfield.h header Arnd Bergmann
2024-08-07 9:13 ` Oleksij Rempel
2024-08-08 15:36 ` Jakub Kicinski
2024-08-08 16:20 ` patchwork-bot+netdevbpf
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).