* [sashal-linux-stable:queue-4.14 27/27] drivers/infiniband/core/rdma_core.c:235:41: error: 'struct ib_uobject' has no member named 'ufile'
@ 2020-05-05 13:22 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-05 13:22 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2803 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.14
head: b6f6ed6459bac92ed210d106c80386b07e5f39c4
commit: b6f6ed6459bac92ed210d106c80386b07e5f39c4 [27/27] RDMA/core: Prevent mixed use of FDs between shared ufiles
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b6f6ed6459bac92ed210d106c80386b07e5f39c4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=7.5.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/core/rdma_core.c: In function 'lookup_get_fd_uobject':
>> drivers/infiniband/core/rdma_core.c:235:41: error: 'struct ib_uobject' has no member named 'ufile'
if (f->f_op != fd_type->fops || uobject->ufile != ufile) {
^~
>> drivers/infiniband/core/rdma_core.c:235:52: error: 'ufile' undeclared (first use in this function); did you mean 'file'?
if (f->f_op != fd_type->fops || uobject->ufile != ufile) {
^~~~~
file
drivers/infiniband/core/rdma_core.c:235:52: note: each undeclared identifier is reported only once for each function it appears in
vim +235 drivers/infiniband/core/rdma_core.c
212
213 static struct ib_uobject *lookup_get_fd_uobject(const struct uverbs_obj_type *type,
214 struct ib_ucontext *ucontext,
215 int id, bool exclusive)
216 {
217 struct file *f;
218 struct ib_uobject *uobject;
219 const struct uverbs_obj_fd_type *fd_type =
220 container_of(type, struct uverbs_obj_fd_type, type);
221
222 if (exclusive)
223 return ERR_PTR(-EOPNOTSUPP);
224
225 f = fget(id);
226 if (!f)
227 return ERR_PTR(-EBADF);
228
229 uobject = f->private_data;
230 /*
231 * fget(id) ensures we are not currently running uverbs_close_fd,
232 * and the caller is expected to ensure that uverbs_close_fd is never
233 * done while a call top lookup is possible.
234 */
> 235 if (f->f_op != fd_type->fops || uobject->ufile != ufile) {
236 fput(f);
237 return ERR_PTR(-EBADF);
238 }
239
240 uverbs_uobject_get(uobject);
241 return uobject;
242 }
243
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 23882 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-05 13:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 13:22 [sashal-linux-stable:queue-4.14 27/27] drivers/infiniband/core/rdma_core.c:235:41: error: 'struct ib_uobject' has no member named 'ufile' kbuild 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.