Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "D. Wythe" <alibuda@linux.alibaba.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC PATCH net-next] net/smc: Introduce a hook to modify syn_smc at runtime
Date: Sun, 22 Sep 2024 08:20:57 +0800	[thread overview]
Message-ID: <202409220838.lnpJlKYJ-lkp@intel.com> (raw)
In-Reply-To: <1726654204-61655-1-git-send-email-alibuda@linux.alibaba.com>

Hi Wythe,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/D-Wythe/net-smc-Introduce-a-hook-to-modify-syn_smc-at-runtime/20240918-181133
base:   net-next/main
patch link:    https://lore.kernel.org/r/1726654204-61655-1-git-send-email-alibuda%40linux.alibaba.com
patch subject: [RFC PATCH net-next] net/smc: Introduce a hook to modify syn_smc at runtime
config: i386-buildonly-randconfig-003-20240922 (https://download.01.org/0day-ci/archive/20240922/202409220838.lnpJlKYJ-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240922/202409220838.lnpJlKYJ-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/202409220838.lnpJlKYJ-lkp@intel.com/

All errors (new ones prefixed by >>):

>> net/smc/af_smc.c:194:36: error: no member named 'skc_v6_daddr' in 'struct sock_common'
     194 |                 rmt6_sockaddr->sin6_addr = ireq->ir_v6_rmt_addr;
         |                                            ~~~~~~^~~~~~~~~~~~~~
   include/net/inet_sock.h:74:42: note: expanded from macro 'ir_v6_rmt_addr'
      74 | #define ir_v6_rmt_addr          req.__req_common.skc_v6_daddr
         |                                                  ^
   1 error generated.


vim +194 net/smc/af_smc.c

   167	
   168	static void smc_openreq_init(struct request_sock *req,
   169				     const struct tcp_options_received *rx_opt,
   170				     struct sk_buff *skb, const struct sock *sk)
   171	{
   172		struct inet_request_sock *ireq = inet_rsk(req);
   173		struct sockaddr_storage rmt_sockaddr = {0};
   174		const struct smc_sock *smc;
   175	
   176		smc = smc_clcsock_user_data(sk);
   177	
   178		if (!smc)
   179			return;
   180	
   181		if (smc->limit_smc_hs && workqueue_congested(WORK_CPU_UNBOUND, smc_hs_wq))
   182			goto out_no_smc;
   183	
   184		rmt_sockaddr.ss_family = sk->sk_family;
   185	
   186		if (rmt_sockaddr.ss_family == AF_INET) {
   187			struct sockaddr_in *rmt4_sockaddr =  (struct sockaddr_in *)&rmt_sockaddr;
   188	
   189			rmt4_sockaddr->sin_addr.s_addr = ireq->ir_rmt_addr;
   190			rmt4_sockaddr->sin_port	= ireq->ir_rmt_port;
   191		} else {
   192			struct sockaddr_in6 *rmt6_sockaddr =  (struct sockaddr_in6 *)&rmt_sockaddr;
   193	
 > 194			rmt6_sockaddr->sin6_addr = ireq->ir_v6_rmt_addr;
   195			rmt6_sockaddr->sin6_port = ireq->ir_rmt_port;
   196		}
   197	
   198		ireq->smc_ok = select_syn_smc(sk, (struct sockaddr *)&rmt_sockaddr);
   199		return;
   200	out_no_smc:
   201		ireq->smc_ok = 0;
   202		return;
   203	}
   204	

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

       reply	other threads:[~2024-09-22  0:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1726654204-61655-1-git-send-email-alibuda@linux.alibaba.com>
2024-09-22  0:20 ` kernel test robot [this message]
2024-09-22  1:33 ` [RFC PATCH net-next] net/smc: Introduce a hook to modify syn_smc at runtime kernel test robot

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=202409220838.lnpJlKYJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alibuda@linux.alibaba.com \
    --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