Re: [kbuild-all] Re: [PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-09-08 Thread Julia Lawall
On Tue, 8 Sep 2020, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On 8/10/20 11:21 AM, kernel test robot wrote: > > From: kernel test robot > > > > drivers/video/fbdev/core/fbcon.c:3509:8-16: WARNING: use scnprintf or > > sprintf > > drivers/video/fbdev/core/fbcon.c:3484:8-16: WARNING: use scn

Re: [PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-09-08 Thread Bartlomiej Zolnierkiewicz
Hi, On 8/10/20 11:21 AM, kernel test robot wrote: > From: kernel test robot > > drivers/video/fbdev/core/fbcon.c:3509:8-16: WARNING: use scnprintf or sprintf > drivers/video/fbdev/core/fbcon.c:3484:8-16: WARNING: use scnprintf or sprintf > > > From Documentation/filesystems/sysfs.txt: > s

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/hid/hid-roccat-kone.c:406:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-kone.c:397:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-kone.c:438:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-kone.c:550:8-16: WARNING: us

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/acpi/dock.c:563:8-16: WARNING: use scnprintf or sprintf drivers/acpi/dock.c:544:8-16: WARNING: use scnprintf or sprintf drivers/acpi/dock.c:495:8-16: WARNING: use scnprintf or sprintf drivers/acpi/dock.c:506:8-16: WARNING: use scnprintf or sprintf From Documenta

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/hid/hid-roccat-pyra.c:289:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-pyra.c:306:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-pyra.c:327:8-16: WARNING: use scnprintf or sprintf From Documentation/filesystems/sysfs.txt: show

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/hid/hid-roccat-koneplus.c:247:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-koneplus.c:314:8-16: WARNING: use scnprintf or sprintf From Documentation/filesystems/sysfs.txt: show() must not use snprintf() when formatting the value to be retur

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/hid/hid-roccat-arvo.c:149:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-arvo.c:95:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-arvo.c:45:8-16: WARNING: use scnprintf or sprintf From Documentation/filesystems/sysfs.txt: show()

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/hid/hid-sony.c:611:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-sony.c:648:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-sony.c:660:8-16: WARNING: use scnprintf or sprintf From Documentation/filesystems/sysfs.txt: show() must not use snpri

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/hid/hid-roccat-isku.c:66:8-16: WARNING: use scnprintf or sprintf From Documentation/filesystems/sysfs.txt: show() must not use snprintf() when formatting the value to be returned to user space. If you can guarantee that an overflow will never happen you ca

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-12 Thread kernel test robot
From: kernel test robot drivers/hid/hid-roccat-kovaplus.c:330:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-kovaplus.c:277:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-kovaplus.c:339:8-16: WARNING: use scnprintf or sprintf drivers/hid/hid-roccat-kovaplus.c:349:8

[PATCH] coccinelle: api: fix device_attr_show.cocci warnings

2020-08-10 Thread kernel test robot
From: kernel test robot drivers/video/fbdev/core/fbcon.c:3509:8-16: WARNING: use scnprintf or sprintf drivers/video/fbdev/core/fbcon.c:3484:8-16: WARNING: use scnprintf or sprintf From Documentation/filesystems/sysfs.txt: show() must not use snprintf() when formatting the value to be retur