tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head: 13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: b978e2a4614650242988b594a138b4112fd7e232 [18/44] RDMA/core: Track device memory
MRs
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable tmp
git checkout b978e2a4614650242988b594a138b4112fd7e232
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/core/uverbs_std_types_mr.c: In function
'ib_uverbs_handler_UVERBS_METHOD_DM_MR_REG':
> drivers/infiniband/core/uverbs_std_types_mr.c:138:2: error:
implicit declaration of function 'rdma_restrack_new'; did you mean
'rdma_restrack_get'? [-Werror=implicit-function-declaration]
138 |
rdma_restrack_new(&mr->res, RDMA_RESTRACK_MR);
| ^~~~~~~~~~~~~~~~~
| rdma_restrack_get
> drivers/infiniband/core/uverbs_std_types_mr.c:139:2: error:
implicit declaration of function 'rdma_restrack_set_name'; did you mean
'rdma_restrack_set_task'? [-Werror=implicit-function-declaration]
139 |
rdma_restrack_set_name(&mr->res, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~
| rdma_restrack_set_task
> drivers/infiniband/core/uverbs_std_types_mr.c:140:2: error:
implicit declaration of function 'rdma_restrack_add'; did you mean
'rdma_restrack_uadd'? [-Werror=implicit-function-declaration]
140 |
rdma_restrack_add(&mr->res);
| ^~~~~~~~~~~~~~~~~
| rdma_restrack_uadd
cc1: some warnings being treated as errors
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS &&
STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390
&& !MICROBLAZE && !ARM && !ARC && !X86
vim +138 drivers/infiniband/core/uverbs_std_types_mr.c
81
82 static int UVERBS_HANDLER(UVERBS_METHOD_DM_MR_REG)(
83 struct uverbs_attr_bundle *attrs)
84 {
85 struct ib_dm_mr_attr attr = {};
86 struct ib_uobject *uobj =
87 uverbs_attr_get_uobject(attrs, UVERBS_ATTR_REG_DM_MR_HANDLE);
88 struct ib_dm *dm =
89 uverbs_attr_get_obj(attrs, UVERBS_ATTR_REG_DM_MR_DM_HANDLE);
90 struct ib_pd *pd =
91 uverbs_attr_get_obj(attrs, UVERBS_ATTR_REG_DM_MR_PD_HANDLE);
92 struct ib_device *ib_dev = pd->device;
93
94 struct ib_mr *mr;
95 int ret;
96
97 if (!ib_dev->ops.reg_dm_mr)
98 return -EOPNOTSUPP;
99
100 ret = uverbs_copy_from(&attr.offset, attrs, UVERBS_ATTR_REG_DM_MR_OFFSET);
101 if (ret)
102 return ret;
103
104 ret = uverbs_copy_from(&attr.length, attrs,
105 UVERBS_ATTR_REG_DM_MR_LENGTH);
106 if (ret)
107 return ret;
108
109 ret = uverbs_get_flags32(&attr.access_flags, attrs,
110 UVERBS_ATTR_REG_DM_MR_ACCESS_FLAGS,
111 IB_ACCESS_SUPPORTED);
112 if (ret)
113 return ret;
114
115 if (!(attr.access_flags & IB_ZERO_BASED))
116 return -EINVAL;
117
118 ret = ib_check_mr_access(attr.access_flags);
119 if (ret)
120 return ret;
121
122 if (attr.offset > dm->length || attr.length > dm->length ||
123 attr.length > dm->length - attr.offset)
124 return -EINVAL;
125
126 mr = pd->device->ops.reg_dm_mr(pd, dm, &attr, attrs);
127 if (IS_ERR(mr))
128 return PTR_ERR(mr);
129
130 mr->device = pd->device;
131 mr->pd = pd;
132 mr->type = IB_MR_TYPE_DM;
133 mr->dm = dm;
134 mr->uobject = uobj;
135 atomic_inc(&pd->usecnt);
136 atomic_inc(&dm->usecnt);
137
138 rdma_restrack_new(&mr->res, RDMA_RESTRACK_MR);
139 rdma_restrack_set_name(&mr->res, NULL);
140 rdma_restrack_add(&mr->res);
141 uobj->object = mr;
142
143 ret = uverbs_copy_to(attrs, UVERBS_ATTR_REG_DM_MR_RESP_LKEY, &mr->lkey,
144 sizeof(mr->lkey));
145 if (ret)
146 goto err_dereg;
147
148 ret = uverbs_copy_to(attrs, UVERBS_ATTR_REG_DM_MR_RESP_RKEY,
149 &mr->rkey, sizeof(mr->rkey));
150 if (ret)
151 goto err_dereg;
152
153 return 0;
154
155 err_dereg:
156 ib_dereg_mr_user(mr, uverbs_get_cleared_udata(attrs));
157
158 return ret;
159 }
160
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org