public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bahubali B Gumaji <bahubali.bg@samsung.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Namjae Jeon <linkinjeon@kernel.org>,
	Hyunchul Lee <hyc.lee@gmail.com>,
	"Sang-Soo Lee" <constant.lee@samsung.com>
Subject: [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'?
Date: Tue, 27 Jan 2026 05:58:26 +0800	[thread overview]
Message-ID: <202601270536.sNP66ReK-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-01-26 21:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202601270536.sNP66ReK-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bahubali.bg@samsung.com \
    --cc=constant.lee@samsung.com \
    --cc=hyc.lee@gmail.com \
    --cc=linkinjeon@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox