summaryrefslogtreecommitdiff
path: root/drivers/usb/common
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2024-12-05 13:39:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-23 18:40:19 +0100
commitded71f07f92f83b7695f974db9951a8b014cbefc (patch)
tree30098d2b97c7147f6008eebf551f3985555d6a36 /drivers/usb/common
parentd3571faa1ba899f2459ee3616d702e7b07b9c996 (diff)
usb: typec: intel_pmc_mux: Silence snprintf() output truncation warning
In the function pmc_mux_port_debugfs_init() the buffer for the name of the port is limited to six bytes. That makes the compiler think that the output of "port%d" may be truncated. That can't actually happen as the interface can support maximum of eight ports. To make the compiler happy just increase the buffer to where the warning goes away. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202412031437.vX580pxx-lkp@intel.com/ Cc: Rajat Khandelwal <rajat.khandelwal@linux.intel.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20241205113919.1182673-1-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/common')
0 files changed, 0 insertions, 0 deletions