tree: https://github.com/ceph/ceph-client.git tls_logger head: cd1e899feeb6a7da55cbb74b9245c8bbb77f82ba commit: 04fa82972277cd879d1bcb1efe97bbe1c53cd104 [2/13] cephsan: a full string printout config: sparc64-randconfig-001-20250213 (https://download.01.org/0day-ci/archive/20250213/202502131230.k0Xqxdgk-lkp@xxxxxxxxx/config) compiler: sparc64-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250213/202502131230.k0Xqxdgk-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202502131230.k0Xqxdgk-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): In file included from include/linux/ceph/ceph_debug.h:9, from net/ceph/mon_client.c:2: net/ceph/mon_client.c: In function '__send_subscribe': >> include/linux/ceph/ceph_san.h:31:5: warning: 'snprintf' argument 9 overlaps destination object 'buf' [-Wrestrict] 31 | snprintf(buf, LOG_BUF_SIZE, fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/ceph/ceph_debug.h:24:9: note: in expansion of macro 'CEPH_SAN_LOG' 24 | CEPH_SAN_LOG("%.*s %12.12s:%-4d : " fmt, \ | ^~~~~~~~~~~~ net/ceph/mon_client.c:367:17: note: in expansion of macro 'dout' 367 | dout("%s %s start %llu flags 0x%x\n", __func__, buf, | ^~~~ vim +31 include/linux/ceph/ceph_san.h 27 28 char *get_log_cephsan(void); 29 #define CEPH_SAN_LOG(fmt, ...) do { \ 30 char *buf = get_log_cephsan(); \ > 31 snprintf(buf, LOG_BUF_SIZE, fmt, ##__VA_ARGS__); \ 32 } while (0) 33 /* 34 * Internal definitions for Ceph SAN logs. 35 * These definitions are not part of the public API but are required by debugfs.c. 36 */ 37 struct ceph_san_log_entry { 38 char buf[LOG_BUF_SIZE]; 39 u64 ts; 40 }; 41 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki