Re: [PATCH] ksmbd: fix non-IPv6 build
From: Namjae Jeon
Date: Tue Feb 10 2026 - 09:32:48 EST
On Tue, Feb 10, 2026 at 11:12 PM Arnd Bergmann <arnd@xxxxxxxxxx> wrote:
>
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The newly added procfs code fails to build when CONFIG_IPv6 is disabled:
>
> fs/smb/server/connection.c: In function 'proc_show_clients':
> fs/smb/server/connection.c:47:58: error: 'struct ksmbd_conn' has no member named 'inet6_addr'; did you mean 'inet_addr'?
> 47 | seq_printf(m, "%-20pI6c", &conn->inet6_addr);
> | ^~~~~~~~~~
> | inet_addr
> make[7]: *** [scripts/Makefile.build:279: fs/smb/server/connection.o] Error 1
> fs/smb/server/mgmt/user_session.c: In function 'show_proc_sessions':
> fs/smb/server/mgmt/user_session.c:215:65: error: 'struct ksmbd_conn' has no member named 'inet6_addr'; did you mean 'inet_addr'?
> 215 | seq_printf(m, " %-40pI6c", &chan->conn->inet6_addr);
> | ^~~~~~~~~~
> | inet_addr
>
> Rearrange the condition to allow adding a simple preprocessor conditional.
>
> Fixes: b38f99c1217a ("ksmbd: add procfs interface for runtime monitoring and statistics")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Applied it to #ksmbd-for-next-next.
Thanks!