From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [dhowells-fs:ceph-iter 77/105] fs/ceph/xattr.c:1415:16: error: no member named 'length' in 'struct ceph_databuf'
Date: Thu, 18 Jan 2024 06:03:58 +0800 [thread overview]
Message-ID: <202401180545.om4l6lkx-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git ceph-iter
head: 2cf82c6e7baf6d3a2adc0692707028da395f1553
commit: 5f8e8cf45a6f84108c392fdf99ccab5c44d5bb79 [77/105] ceph: Convert ceph_mds_request::r_pagelist to a databuf
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240118/202401180545.om4l6lkx-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240118/202401180545.om4l6lkx-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/202401180545.om4l6lkx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/ceph/xattr.c:1415:16: error: no member named 'length' in 'struct ceph_databuf'
1415 | BUG_ON(dbuf->length <= sizeof(__le32));
| ~~~~ ^
include/asm-generic/bug.h:71:45: note: expanded from macro 'BUG_ON'
71 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0)
| ^~~~~~~~~
include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
1 error generated.
vim +1415 fs/ceph/xattr.c
1374
1375 #ifdef CONFIG_CEPH_FS_SECURITY_LABEL
1376 int ceph_security_init_secctx(struct dentry *dentry, umode_t mode,
1377 struct ceph_acl_sec_ctx *as_ctx)
1378 {
1379 struct ceph_databuf *dbuf = as_ctx->dbuf;
1380 const char *name;
1381 size_t name_len;
1382 int err;
1383
1384 err = security_dentry_init_security(dentry, mode, &dentry->d_name,
1385 &name, &as_ctx->sec_ctx,
1386 &as_ctx->sec_ctxlen);
1387 if (err < 0) {
1388 WARN_ON_ONCE(err != -EOPNOTSUPP);
1389 err = 0; /* do nothing */
1390 goto out;
1391 }
1392
1393 err = -ENOMEM;
1394 if (!dbuf) {
1395 dbuf = ceph_databuf_req_alloc(0, PAGE_SIZE, GFP_KERNEL);
1396 if (!dbuf)
1397 goto out;
1398 ceph_databuf_encode_32(dbuf, 1);
1399 }
1400
1401 /*
1402 * FIXME: Make security_dentry_init_security() generic. Currently
1403 * It only supports single security module and only selinux has
1404 * dentry_init_security hook.
1405 */
1406 name_len = strlen(name);
1407 err = ceph_databuf_reserve(dbuf, 4 * 2 + name_len + as_ctx->sec_ctxlen,
1408 GFP_KERNEL);
1409 if (err)
1410 goto out;
1411
1412 if (as_ctx->dbuf) {
1413 /* update count of KV pairs */
1414 __le32 *addr = kmap_ceph_databuf_page(dbuf, 0);
> 1415 BUG_ON(dbuf->length <= sizeof(__le32));
1416 le32_add_cpu(addr, 1);
1417 kunmap_local(addr);
1418 } else {
1419 as_ctx->dbuf = dbuf;
1420 }
1421
1422 ceph_databuf_encode_32(dbuf, name_len);
1423 ceph_databuf_append(dbuf, name, name_len);
1424
1425 ceph_databuf_encode_32(dbuf, as_ctx->sec_ctxlen);
1426 ceph_databuf_append(dbuf, as_ctx->sec_ctx, as_ctx->sec_ctxlen);
1427
1428 err = 0;
1429 out:
1430 if (dbuf && !as_ctx->dbuf)
1431 ceph_databuf_release(dbuf);
1432 return err;
1433 }
1434 #endif /* CONFIG_CEPH_FS_SECURITY_LABEL */
1435 #endif /* CONFIG_SECURITY */
1436
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-01-17 22:04 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=202401180545.om4l6lkx-lkp@intel.com \
--to=lkp@intel.com \
--cc=dhowells@redhat.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