🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
4 messages
4 total messages Started by Christian Marangi Thu, 12 Nov 2026 13:13
[PATCH net-next 1/2] net: phy: use const char * const for phylink_an_mode_str
#15182
Author: Christian Marangi
Date: Thu, 12 Nov 2026 13:13
24 lines
11350 bytes
The local string array should use const char * const as reported by
checkpatch.pl. Use the correct type as to mute checkpatch warning.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
 drivers/net/phy/phylink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index e885da1c2831..bf1962e572f8 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -184,7 +184,7 @@ static int phylink_is_empty_linkmode(const unsigned long *linkmode)
 
 static const char *phylink_an_mode_str(unsigned int mode)
 {
-	static const char *modestr[] = {
+	static const char * const modestr[] = {
 		[MLO_AN_PHY] = "phy",
 		[MLO_AN_FIXED] = "fixed",
 		[MLO_AN_INBAND] = "inband",
-- 
2.55.0
Re: [PATCH net-next 1/2] net: phy: use const char * const for phylink_an_mode_str
#15976
Author: Andrew Lunn
Date: Fri, 13 Nov 2026 13:53
10 lines
8540 bytes
On Thu, Nov 12, 2026 at 02:13:56PM +0100, Christian Marangi wrote:
> The local string array should use const char * const as reported by
> checkpatch.pl. Use the correct type as to mute checkpatch warning.
> 
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Re: [PATCH net-next 1/2] net: phy: use const char * const for phylink_an_mode_str
#15830
Author: Christian Marangi
Date: Fri, 13 Nov 2026 13:54
17 lines
11764 bytes
On Fri, Nov 13, 2026 at 02:53:05PM +0100, Andrew Lunn wrote:
> On Thu, Nov 12, 2026 at 02:13:56PM +0100, Christian Marangi wrote:
> > The local string array should use const char * const as reported by
> > checkpatch.pl. Use the correct type as to mute checkpatch warning.
> > 
> > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> 
> Reviewed-by: Andrew Lunn <andrew@lunn.ch>
> 

I notice a more suited title would be to use net: phylink: ...

It's ok if I send v2 and fix the title (and keep your tag?)

-- 
	Ansuel
Re: [PATCH net-next 1/2] net: phy: use const char * const for phylink_an_mode_str
#17510
Author: patchwork-bot+netdevbpf
Date: Mon, 16 Nov 2026 23:30
25 lines
8727 bytes
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 12 Nov 2026 14:13:56 +0100 you wrote:
> The local string array should use const char * const as reported by
> checkpatch.pl. Use the correct type as to mute checkpatch warning.
> 
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> ---
>  drivers/net/phy/phylink.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - [net-next,1/2] net: phy: use const char * const for phylink_an_mode_str
    https://git.kernel.org/netdev/net-next/c/5a71c5cfb6ea
  - [net-next,2/2] net: phy: fix trivial whitespace/format issue
    https://git.kernel.org/netdev/net-next/c/0b2309c0e6ac

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads