Skip to contentSkip to conversation

net/ceph/debugfs.c:269:42: warning: unsequenced accesses to volatile qualified 'jiffies'

PATCH kernel test robot 1 participant 1 message Nov 14

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://github.com/ceph/ceph-client.git wip-linger-ping-lat
head:   1428966bcb1a1e537f406812f7d91f81a127431a
commit: 1428966bcb1a1e537f406812f7d91f81a127431a [7/7] libceph: include current latency in debugfs osdc dump
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20261114/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 8621950157210c1fa68f20f0614cb51310ec9dff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261114/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> net/ceph/debugfs.c:269:42: warning: unsequenced accesses to volatile qualified 'jiffies' [-Wunsequenced]
     267 |                    req ? jiffies_to_msecs(jiffies - req->r_start_stamp) : 0,
         |                                           ~~~~~~~
     268 |                    lreq->is_watch && lreq->committed && !lreq->last_error ?
     269 |                         jiffies_to_msecs(jiffies - lreq->watch_valid_thru) : 0,
         |                                          ^

1 warning generated.

vim +/jiffies +269 net/ceph/debugfs.c

255
256 static void dump_linger_request(struct seq_file *s,
257 struct ceph_osd_linger_request *lreq)
258 {
259 struct ceph_osd_request *req =
260 list_first_entry_or_null(&lreq->osd_reqs, struct ceph_osd_request,
261 r_private_item);
262
263 seq_printf(s, "%llu\t", lreq->linger_id);
264 dump_target(s, &lreq->t);
265
266 seq_printf(s, "\t%u\t%u\t%u\t%s%s/%d\n", lreq->register_gen,
267 req ? jiffies_to_msecs(jiffies - req->r_start_stamp) : 0,
268 lreq->is_watch && lreq->committed && !lreq->last_error ?

 > 269	                        jiffies_to_msecs(jiffies - lreq->watch_valid_thru) : 0,

270 lreq->is_watch ? "W" : "N", lreq->committed ? "C" : "",
271 lreq->last_error);
272 }
273

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