* <command-line>: warning: '_ttyVK' directive output may be truncated writing 6 bytes into a region of size between 3 and 12
@ 2024-01-07 2:41 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-01-07 2:41 UTC (permalink / raw)
To: Scott Branden; +Cc: oe-kbuild-all, linux-kernel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 52b1853b080a082ec3749c3a9577f6c71b1d4a90
commit: 91ca10d6fa0720e35596c720e494d9c18624418a misc: bcm-vk: add ttyVK support
date: 2 years, 11 months ago
config: x86_64-randconfig-004-20240105 (https://download.01.org/0day-ci/archive/20240107/202401071057.z8QE4au9-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240107/202401071057.z8QE4au9-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/202401071057.z8QE4au9-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/misc/bcm-vk/bcm_vk_dev.c: In function 'bcm_vk_probe':
>> <command-line>: warning: '_ttyVK' directive output may be truncated writing 6 bytes into a region of size between 3 and 12 [-Wformat-truncation=]
drivers/misc/bcm-vk/bcm_vk_dev.c:1454:31: note: in expansion of macro 'KBUILD_MODNAME'
1454 | snprintf(name, sizeof(name), KBUILD_MODNAME ".%d_ttyVK", id);
| ^~~~~~~~~~~~~~
drivers/misc/bcm-vk/bcm_vk_dev.c:1454:2: note: 'snprintf' output between 15 and 24 bytes into a destination of size 20
1454 | snprintf(name, sizeof(name), KBUILD_MODNAME ".%d_ttyVK", id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* <command-line>: warning: '_ttyVK' directive output may be truncated writing 6 bytes into a region of size between 3 and 12
@ 2025-01-01 12:01 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-01-01 12:01 UTC (permalink / raw)
To: Scott Branden; +Cc: oe-kbuild-all, linux-kernel
Hi Scott,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ccb98ccef0e543c2bd4ef1a72270461957f3d8d0
commit: 91ca10d6fa0720e35596c720e494d9c18624418a misc: bcm-vk: add ttyVK support
date: 3 years, 11 months ago
config: csky-randconfig-r053-20231127 (https://download.01.org/0day-ci/archive/20250101/202501011951.6nEbRUVn-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250101/202501011951.6nEbRUVn-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/202501011951.6nEbRUVn-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/misc/bcm-vk/bcm_vk_dev.c: In function 'bcm_vk_probe':
>> <command-line>: warning: '_ttyVK' directive output may be truncated writing 6 bytes into a region of size between 3 and 12 [-Wformat-truncation=]
drivers/misc/bcm-vk/bcm_vk_dev.c:1454:38: note: in expansion of macro 'KBUILD_MODNAME'
1454 | snprintf(name, sizeof(name), KBUILD_MODNAME ".%d_ttyVK", id);
| ^~~~~~~~~~~~~~
drivers/misc/bcm-vk/bcm_vk_dev.c:1454:9: note: 'snprintf' output between 15 and 24 bytes into a destination of size 20
1454 | snprintf(name, sizeof(name), KBUILD_MODNAME ".%d_ttyVK", id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-01 12:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-07 2:41 <command-line>: warning: '_ttyVK' directive output may be truncated writing 6 bytes into a region of size between 3 and 12 kernel test robot
2025-01-01 12:01 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®