public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [samba-ksmbd:ksmbd-for-next-next 2/2] fs/smb/server/mgmt/user_session.c:98:58: error: no member named 'inet6_addr' in 'struct ksmbd_conn'; did you mean 'inet_addr'?
@ 2026-01-26 21:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-26 21:58 UTC (permalink / raw)
  To: Bahubali B Gumaji
  Cc: llvm, oe-kbuild-all, Namjae Jeon, Hyunchul Lee, Sang-Soo Lee

tree:   git://git.samba.org/ksmbd.git ksmbd-for-next-next
head:   8cc38d4af66aa19d0e67d4b148abd6c50de339f8
commit: 8cc38d4af66aa19d0e67d4b148abd6c50de339f8 [2/2] ksmbd: add procfs interface for runtime monitoring and statistics
config: i386-buildonly-randconfig-004-20260127 (https://download.01.org/0day-ci/archive/20260127/202601270536.sNP66ReK-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260127/202601270536.sNP66ReK-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601270536.sNP66ReK-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/smb/server/mgmt/user_session.c:98:58: error: no member named 'inet6_addr' in 'struct ksmbd_conn'; did you mean 'inet_addr'?
      98 |                 seq_printf(m, "%-20s\t%pI6c\n", "client", &chan->conn->inet6_addr);
         |                                                                        ^~~~~~~~~~
         |                                                                        inet_addr
   fs/smb/server/mgmt/../connection.h:53:12: note: 'inet_addr' declared here
      53 |                 __be32                  inet_addr;
         |                                         ^
   fs/smb/server/mgmt/user_session.c:207:44: error: no member named 'inet6_addr' in 'struct ksmbd_conn'; did you mean 'inet_addr'?
     207 |                         seq_printf(m, " %-40pI6c", &chan->conn->inet6_addr);
         |                                                                 ^~~~~~~~~~
         |                                                                 inet_addr
   fs/smb/server/mgmt/../connection.h:53:12: note: 'inet_addr' declared here
      53 |                 __be32                  inet_addr;
         |                                         ^
   2 errors generated.


vim +98 fs/smb/server/mgmt/user_session.c

    80	
    81	static int show_proc_session(struct seq_file *m, void *v)
    82	{
    83		struct ksmbd_session *sess;
    84		struct ksmbd_tree_connect *tree_conn;
    85		struct ksmbd_share_config *share_conf;
    86		struct channel *chan;
    87		unsigned long id;
    88		int i = 0;
    89	
    90		sess = (struct ksmbd_session *)m->private;
    91		ksmbd_user_session_get(sess);
    92	
    93		i = 0;
    94		xa_for_each(&sess->ksmbd_chann_list, id, chan) {
    95		if (chan->conn->inet_addr)
    96			seq_printf(m, "%-20s\t%pI4c\n", "client", &chan->conn->inet_addr);
    97		else
  > 98			seq_printf(m, "%-20s\t%pI6c\n", "client", &chan->conn->inet6_addr);
    99		seq_printf(m, "%-20s\t%s\n", "user", session_user_name(sess));
   100		seq_printf(m, "%-20s\t%llu\n", "id", sess->id);
   101		seq_printf(m, "%-20s\t%s\n", "state", session_state_string(sess));
   102	
   103		seq_printf(m, "%-20s\t", "capabilities");
   104		ksmbd_proc_show_flag_names(m,
   105					   ksmbd_sess_cap_const_names,
   106					   ARRAY_SIZE(ksmbd_sess_cap_const_names),
   107					   chan->conn->vals->req_capabilities);
   108	
   109		if (sess->sign) {
   110			seq_printf(m, "%-20s\t", "signing");
   111			ksmbd_proc_show_const_name(m, "%s\t",
   112						   ksmbd_signing_const_names,
   113						   ARRAY_SIZE(ksmbd_signing_const_names),
   114						   le16_to_cpu(chan->conn->signing_algorithm));
   115		} else if (sess->enc) {
   116			seq_printf(m, "%-20s\t", "encryption");
   117			ksmbd_proc_show_const_name(m, "%s\t",
   118						   ksmbd_cipher_const_names,
   119						   ARRAY_SIZE(ksmbd_cipher_const_names),
   120						   le16_to_cpu(chan->conn->cipher_type));
   121		}
   122			i++;
   123		}
   124	
   125		seq_printf(m, "%-20s\t%d\n", "channels", i);
   126	
   127		i = 0;
   128		xa_for_each(&sess->tree_conns, id, tree_conn) {
   129			share_conf = tree_conn->share_conf;
   130			seq_printf(m, "%-20s\t%s\t%8d", "share",
   131				   share_conf->name, tree_conn->id);
   132			if (test_share_config_flag(share_conf, KSMBD_SHARE_FLAG_PIPE))
   133				seq_printf(m, " %s ", "pipe");
   134			else
   135				seq_printf(m, " %s ", "disk");
   136			seq_putc(m, '\n');
   137		}
   138	
   139		ksmbd_user_session_put(sess);
   140		return 0;
   141	}
   142	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-26 21:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-26 21:58 [samba-ksmbd:ksmbd-for-next-next 2/2] fs/smb/server/mgmt/user_session.c:98:58: error: no member named 'inet6_addr' in 'struct ksmbd_conn'; did you mean 'inet_addr'? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox