llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Edward Srouji <edwards@nvidia.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH rdma-next 9/9] RDMA/core: Add command to set pinned FRMR handles
Date: Tue, 18 Nov 2025 02:18:32 +0800	[thread overview]
Message-ID: <202511180120.k49Kg82B-lkp@intel.com> (raw)
In-Reply-To: <20251116-frmr_pools-v1-9-5eb3c8f5c9c4@nvidia.com>

Hi Edward,

kernel test robot noticed the following build warnings:

[auto build test WARNING on d056bc45b62b5981ebcd18c4303a915490b8ebe9]

url:    https://github.com/intel-lab-lkp/linux/commits/Edward-Srouji/IB-core-Introduce-FRMR-pools/20251117-031555
base:   d056bc45b62b5981ebcd18c4303a915490b8ebe9
patch link:    https://lore.kernel.org/r/20251116-frmr_pools-v1-9-5eb3c8f5c9c4%40nvidia.com
patch subject: [PATCH rdma-next 9/9] RDMA/core: Add command to set pinned FRMR handles
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20251118/202511180120.k49Kg82B-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251118/202511180120.k49Kg82B-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/202511180120.k49Kg82B-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/infiniband/core/nldev.c:2943:12: warning: stack frame size (2112) exceeds limit (2048) in 'nldev_frmr_pools_set_doit' [-Wframe-larger-than]
    2943 | static int nldev_frmr_pools_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
         |            ^
   1 warning generated.


vim +/nldev_frmr_pools_set_doit +2943 drivers/infiniband/core/nldev.c

362ddee594f2a3 Michael Guralnik 2025-11-16  2942  
79939baf7a9de1 Michael Guralnik 2025-11-16 @2943  static int nldev_frmr_pools_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
79939baf7a9de1 Michael Guralnik 2025-11-16  2944  				     struct netlink_ext_ack *extack)
79939baf7a9de1 Michael Guralnik 2025-11-16  2945  {
79939baf7a9de1 Michael Guralnik 2025-11-16  2946  	struct nlattr *tb[RDMA_NLDEV_ATTR_MAX];
79939baf7a9de1 Michael Guralnik 2025-11-16  2947  	struct ib_device *device;
79939baf7a9de1 Michael Guralnik 2025-11-16  2948  	u32 aging_period;
79939baf7a9de1 Michael Guralnik 2025-11-16  2949  	int err;
79939baf7a9de1 Michael Guralnik 2025-11-16  2950  
79939baf7a9de1 Michael Guralnik 2025-11-16  2951  	err = nlmsg_parse(nlh, 0, tb, RDMA_NLDEV_ATTR_MAX - 1, nldev_policy,
79939baf7a9de1 Michael Guralnik 2025-11-16  2952  			  extack);
79939baf7a9de1 Michael Guralnik 2025-11-16  2953  	if (err)
79939baf7a9de1 Michael Guralnik 2025-11-16  2954  		return err;
79939baf7a9de1 Michael Guralnik 2025-11-16  2955  
79939baf7a9de1 Michael Guralnik 2025-11-16  2956  	if (!tb[RDMA_NLDEV_ATTR_DEV_INDEX])
79939baf7a9de1 Michael Guralnik 2025-11-16  2957  		return -EINVAL;
79939baf7a9de1 Michael Guralnik 2025-11-16  2958  
79939baf7a9de1 Michael Guralnik 2025-11-16  2959  	device = ib_device_get_by_index(
79939baf7a9de1 Michael Guralnik 2025-11-16  2960  		sock_net(skb->sk), nla_get_u32(tb[RDMA_NLDEV_ATTR_DEV_INDEX]));
79939baf7a9de1 Michael Guralnik 2025-11-16  2961  	if (!device)
79939baf7a9de1 Michael Guralnik 2025-11-16  2962  		return -EINVAL;
79939baf7a9de1 Michael Guralnik 2025-11-16  2963  
9ad54ccf068d69 Michael Guralnik 2025-11-16  2964  	if (tb[RDMA_NLDEV_ATTR_FRMR_POOLS_AGING_PERIOD]) {
9ad54ccf068d69 Michael Guralnik 2025-11-16  2965  		aging_period = nla_get_u32(
9ad54ccf068d69 Michael Guralnik 2025-11-16  2966  			tb[RDMA_NLDEV_ATTR_FRMR_POOLS_AGING_PERIOD]);
79939baf7a9de1 Michael Guralnik 2025-11-16  2967  		err = ib_frmr_pools_set_aging_period(device, aging_period);
9ad54ccf068d69 Michael Guralnik 2025-11-16  2968  		goto done;
9ad54ccf068d69 Michael Guralnik 2025-11-16  2969  	}
79939baf7a9de1 Michael Guralnik 2025-11-16  2970  
9ad54ccf068d69 Michael Guralnik 2025-11-16  2971  	if (tb[RDMA_NLDEV_ATTR_FRMR_POOL_PINNED_HANDLES])
9ad54ccf068d69 Michael Guralnik 2025-11-16  2972  		err = nldev_frmr_pools_set_pinned(device, tb, extack);
9ad54ccf068d69 Michael Guralnik 2025-11-16  2973  
9ad54ccf068d69 Michael Guralnik 2025-11-16  2974  done:
79939baf7a9de1 Michael Guralnik 2025-11-16  2975  	ib_device_put(device);
79939baf7a9de1 Michael Guralnik 2025-11-16  2976  	return err;
79939baf7a9de1 Michael Guralnik 2025-11-16  2977  }
79939baf7a9de1 Michael Guralnik 2025-11-16  2978  

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

           reply	other threads:[~2025-11-17 18:19 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20251116-frmr_pools-v1-9-5eb3c8f5c9c4@nvidia.com>]

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=202511180120.k49Kg82B-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=edwards@nvidia.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;
as well as URLs for NNTP newsgroup(s).