🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Randy Dunlap Thu, 08 Oct 2026 18:30
[PATCH net-next] net: natsemi: xtsonic: make probe function static
#850
Author: Randy Dunlap
Date: Thu, 08 Oct 2026 18:30
30 lines
6847 bytes
Avoid a build warning by making the probe function static:

drivers/net/ethernet/natsemi/xtsonic.c:200:5: warning: no previous prototype for 'xtsonic_probe' [-Wmissing-prototypes]
  200 | int xtsonic_probe(struct platform_device *pdev)

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@kernel.org>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: netdev@vger.kernel.org

 drivers/net/ethernet/natsemi/xtsonic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linext-2026-1007.orig/drivers/net/ethernet/natsemi/xtsonic.c
+++ linext-2026-1007/drivers/net/ethernet/natsemi/xtsonic.c
@@ -197,7 +197,7 @@ out:
  * Actually probing is superfluous but we're paranoid.
  */
 
-int xtsonic_probe(struct platform_device *pdev)
+static int xtsonic_probe(struct platform_device *pdev)
 {
 	struct net_device *dev;
 	struct sonic_local *lp;
Re: [PATCH net-next] net: natsemi: xtsonic: make probe function static
#1081
Author: Björn Töpel
Date: Fri, 09 Oct 2026 06:18
12 lines
5855 bytes
Randy Dunlap <rdunlap@infradead.org> writes:

> Avoid a build warning by making the probe function static:
>
> drivers/net/ethernet/natsemi/xtsonic.c:200:5: warning: no previous prototype for 'xtsonic_probe' [-Wmissing-prototypes]
>   200 | int xtsonic_probe(struct platform_device *pdev)
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>

Reviewed-by: Björn Töpel <bjorn@kernel.org>
Re: [PATCH net-next] net: natsemi: xtsonic: make probe function static
#2733
Author: patchwork-bot+netdevbpf
Date: Tue, 13 Oct 2026 10:50
24 lines
6284 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Thu,  8 Oct 2026 11:30:13 -0700 you wrote:
> Avoid a build warning by making the probe function static:
> 
> drivers/net/ethernet/natsemi/xtsonic.c:200:5: warning: no previous prototype for 'xtsonic_probe' [-Wmissing-prototypes]
>   200 | int xtsonic_probe(struct platform_device *pdev)
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> 
> [...]

Here is the summary with links:
  - [net-next] net: natsemi: xtsonic: make probe function static
    https://git.kernel.org/netdev/net-next/c/26a8396802ea

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