Hi Ayush,
kernel test robot noticed the following build warnings:
[auto build test WARNING on aaa9c3550b60d6259d6ea8b1175ade8d1242444e]
url: https://github.com/intel-lab-lkp/linux/commits/Ayush-Singh/staging-greybus-f... base: aaa9c3550b60d6259d6ea8b1175ade8d1242444e patch link: https://lore.kernel.org/r/20251022-gb-fw-v1-1-183b18500cd5%40beagleboard.org patch subject: [PATCH] staging: greybus: fw-download: Fix find firmware req config: arm64-randconfig-002-20251023 (https://download.01.org/0day-ci/archive/20251023/202510231209.JEFfW9s0-lkp@i...) compiler: aarch64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251023/202510231209.JEFfW9s0-lkp@i...)
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/202510231209.JEFfW9s0-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/staging/greybus/fw-download.c:14: drivers/staging/greybus/fw-download.c: In function 'gb_fw_download_request_handler':
drivers/staging/greybus/firmware.h:14:24: warning: '%s' directive output may be truncated writing up to 9 bytes into a region of size between 6 and 15 [-Wformat-truncation=]
#define FW_NAME_PREFIX "gmp_" ^~~~~~ drivers/staging/greybus/fw-download.c:188:5: note: in expansion of macro 'FW_NAME_PREFIX' FW_NAME_PREFIX "%08x_%08x_%08x_%08x_%s.%s", ^~~~~~~~~~~~~~ drivers/staging/greybus/fw-download.c:188:44: note: format string is defined here FW_NAME_PREFIX "%08x_%08x_%08x_%08x_%s.%s", ^~ drivers/staging/greybus/fw-download.c:187:3: note: 'snprintf' output between 42 and 60 bytes into a destination of size 56 snprintf(fw_req->name, sizeof(fw_req->name), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ FW_NAME_PREFIX "%08x_%08x_%08x_%08x_%s.%s", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ intf->ddbl1_manufacturer_id, intf->ddbl1_product_id, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ intf->vendor_id, intf->product_id, tag, format); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +14 drivers/staging/greybus/firmware.h
cca222076738962 Viresh Kumar 2016-04-28 13 350e3ac2ceb6964 Joel Porquet 2016-07-21 @14 #define FW_NAME_PREFIX "gmp_" 8a704565ebda960 Greg Kroah-Hartman 2016-07-20 15