The patch titled Subject: drivers/media/usb/usbvision/usbvision-i2c.c: fix format overflow warning has been removed from the -mm tree. Its filename was usbvision-i2c-fix-format-overflow-warning.patch This patch was dropped because an alternative patch was merged ------------------------------------------------------ From: Arnd Bergmann <arnd@xxxxxxxx> Subject: drivers/media/usb/usbvision/usbvision-i2c.c: fix format overflow warning gcc-7 notices that we copy a fixed length string into another string of the same size, with additional characters: drivers/media/usb/usbvision/usbvision-i2c.c: In function 'usbvision_i2c_register': drivers/media/usb/usbvision/usbvision-i2c.c:190:36: error: '%d' directive writing between 1 and 11 bytes into a region of size between 0 and 47 [-Werror=format-overflow=] sprintf(usbvision->i2c_adap.name, "%s-%d-%s", i2c_adap_template.name, ^~~~~~~~~~ drivers/media/usb/usbvision/usbvision-i2c.c:190:2: note: 'sprintf' output between 4 and 76 bytes into a destination of size 48 We know this is fine as the template name is always "usbvision", so we can easily avoid the warning by using this as the format string directly. Link: http://lkml.kernel.org/r/20170714120720.906842-15-arnd@xxxxxxxx Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/media/usb/usbvision/usbvision-i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/media/usb/usbvision/usbvision-i2c.c~usbvision-i2c-fix-format-overflow-warning drivers/media/usb/usbvision/usbvision-i2c.c --- a/drivers/media/usb/usbvision/usbvision-i2c.c~usbvision-i2c-fix-format-overflow-warning +++ a/drivers/media/usb/usbvision/usbvision-i2c.c @@ -187,8 +187,8 @@ int usbvision_i2c_register(struct usb_us usbvision->i2c_adap = i2c_adap_template; - sprintf(usbvision->i2c_adap.name, "%s-%d-%s", i2c_adap_template.name, - usbvision->dev->bus->busnum, usbvision->dev->devpath); + sprintf(usbvision->i2c_adap.name, "usbvision-%d-%s", + usbvision->dev->bus->busnum, usbvision->dev->devpath); PDEBUG(DBG_I2C, "Adaptername: %s", usbvision->i2c_adap.name); usbvision->i2c_adap.dev.parent = &usbvision->dev->dev; _ Patches currently in -mm which might be from arnd@xxxxxxxx are kbuild-disable-wformat-truncation-warnings-by-default.patch scsi-megaraid-fix-format-overflow-warning.patch scsi-mpt3sas-fix-format-overflow-warning.patch scsi-fusion-fix-string-overflow-warning.patch scsi-gdth-avoid-buffer-overflow-warning.patch scsi-fnic-fix-format-string-overflow-warning.patch scsi-gdth-increase-the-procfs-event-buffer-size.patch hwmon-applesmc-fix-format-string-overflow.patch x86-intel-mid-fix-a-format-string-overflow-warning.patch platform-x86-alienware-wmi-fix-format-string-overflow-warning.patch block-dac960-shut-up-format-overflow-warning.patch fscache-fix-fscache_objlist_show-format-processing.patch ib-mlx4-fix-sprintf-format-warning.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html