tree: https://github.com/ceph/ceph-client.git tls_logger head: 6426787926c0ab3f8cd024b9cac8bd0fd28813a4 commit: cd1e899feeb6a7da55cbb74b9245c8bbb77f82ba [13/15] cephsun: using a dynamic buffer allocation config: csky-randconfig-r072-20250217 (https://download.01.org/0day-ci/archive/20250218/202502180801.2Fu8xFiD-lkp@xxxxxxxxx/config) compiler: csky-linux-gcc (GCC) 14.2.0 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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202502180801.2Fu8xFiD-lkp@xxxxxxxxx/ New smatch warnings: net/ceph/ceph_san.c:25 log_cephsan() warn: inconsistent indenting Old smatch warnings: net/ceph/ceph_san.c:28 log_cephsan() warn: inconsistent indenting net/ceph/ceph_san.c:33 log_cephsan() warn: inconsistent indenting net/ceph/ceph_san.c:39 log_cephsan() warn: inconsistent indenting vim +25 net/ceph/ceph_san.c 15 16 17 static inline void *cephsan_pagefrag_get_ptr(struct cephsan_pagefrag *pf, u64 val); 18 /* The definitions for struct ceph_san_log_entry and struct ceph_san_tls_logger 19 * have been moved to cephsan.h (under CONFIG_DEBUG_FS) to avoid duplication. 20 */ 21 22 void log_cephsan(char *buf) { 23 /* Use the per-core TLS logger */ 24 struct ceph_san_tls_logger *tls = this_cpu_ptr(&ceph_san_tls); > 25 struct cephsan_pagefrag *pf = this_cpu_ptr(&ceph_san_pagefrag); 26 27 int head_idx = tls->head_idx++ & (CEPH_SAN_MAX_LOGS - 1); 28 int pre_len = tls->logs[head_idx].len; 29 tls->logs[head_idx].pid = current->pid; 30 tls->logs[head_idx].ts = jiffies; 31 memcpy(tls->logs[head_idx].comm, current->comm, TASK_COMM_LEN); 32 33 cephsan_pagefrag_free(pf, pre_len); 34 35 int len = strlen(buf); 36 u64 buf_idx = cephsan_pagefrag_alloc(pf, len); 37 if (buf_idx) { 38 tls->logs[head_idx].len = len; 39 tls->logs[head_idx].buf = cephsan_pagefrag_get_ptr(pf, buf_idx); 40 memcpy(tls->logs[head_idx].buf, buf, len); 41 } 42 } 43 EXPORT_SYMBOL(log_cephsan); 44 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki