All of lore.kernel.org
 help / color / mirror / Atom feed
* [samba-ksmbd:ksmbd-for-next-next 2/2] fs/smb/server/mgmt/user_session.c:98:58: error: 'struct ksmbd_conn' has no member named 'inet6_addr'; did you mean 'inet_addr'?
@ 2026-01-27  8:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-27  8:42 UTC (permalink / raw)
  To: Bahubali B Gumaji; +Cc: 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: mips-randconfig-r064-20260127 (https://download.01.org/0day-ci/archive/20260127/202601271646.P2vIDioZ-lkp@intel.com/config)
compiler: mips64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260127/202601271646.P2vIDioZ-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/202601271646.P2vIDioZ-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/smb/server/mgmt/user_session.c: In function 'show_proc_session':
>> fs/smb/server/mgmt/user_session.c:98:58: error: 'struct ksmbd_conn' has no member named 'inet6_addr'; did you mean 'inet_addr'?
      seq_printf(m, "%-20s\t%pI6c\n", "client", &chan->conn->inet6_addr);
                                                             ^~~~~~~~~~
                                                             inet_addr
   fs/smb/server/mgmt/user_session.c: In function 'show_proc_sessions':
   fs/smb/server/mgmt/user_session.c:207:44: error: 'struct ksmbd_conn' has no member named 'inet6_addr'; did you mean 'inet_addr'?
       seq_printf(m, " %-40pI6c", &chan->conn->inet6_addr);
                                               ^~~~~~~~~~
                                               inet_addr


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-27  8:43 UTC | newest]

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.