Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: fsia6b - suppress buffer truncation warning for phys

Switch the driver to use scnprintf() to avoid warnings about potential
truncation of "phys" field which we can tolerate.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202501020303.1WtxWWTu-lkp@intel.com/
Signed-off-by: Markus Koch <markus@notsyncing.net>
Link: https://lore.kernel.org/r/20250602175710.61583-4-markus@notsyncing.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Markus Koch and committed by
Dmitry Torokhov
05286c5d 1ac9aa41

+1 -1
+1 -1
drivers/input/joystick/fsia6b.c
··· 149 149 } 150 150 fsia6b->dev = input_dev; 151 151 152 - snprintf(fsia6b->phys, sizeof(fsia6b->phys), "%s/input0", serio->phys); 152 + scnprintf(fsia6b->phys, sizeof(fsia6b->phys), "%s/input0", serio->phys); 153 153 154 154 input_dev->name = DRIVER_DESC; 155 155 input_dev->phys = fsia6b->phys;