[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240116041129.3937800-1-lizhijian@fujitsu.com>
Date: Tue, 16 Jan 2024 12:10:47 +0800
From: Li Zhijian <lizhijian@...itsu.com>
To: linux-kernel@...r.kernel.org
Cc: Li Zhijian <lizhijian@...itsu.com>,
Adaptec OEM Raid Solutions <aacraid@...rosemi.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Alistar Popple <alistair@...ple.id.au>,
"Aneesh Kumar K.V" <aneesh.kumar@...nel.org>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Artur Paszkiewicz <artur.paszkiewicz@...el.com>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Bruno Prémont <bonbons@...ux-vserver.org>,
Chandrakanth patil <chandrakanth.patil@...adcom.com>,
Christian Gromm <christian.gromm@...rochip.com>,
Christophe Leroy <christophe.leroy@...roup.eu>,
cocci@...ia.fr,
Dave Hansen <dave.hansen@...ux.intel.com>,
Don Brace <don.brace@...rochip.com>,
dri-devel@...ts.freedesktop.org,
Eddie James <eajames@...ux.ibm.com>,
GR-QLogic-Storage-Upstream@...vell.com,
Hannes Reinecke <hare@...nel.org>,
Hannes Reinecke <hare@...e.de>,
Hans de Goede <hdegoede@...hat.com>,
Helge Deller <deller@....de>,
HighPoint Linux Team <linux@...hpoint-tech.com>,
"H. Peter Anvin" <hpa@...or.com>,
Ian Rogers <irogers@...gle.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Ingo Molnar <mingo@...hat.com>,
Jack Wang <jinpu.wang@...ud.ionos.com>,
"James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
James Morse <james.morse@....com>,
Jeremy Kerr <jk@...abs.org>,
Jiri Kosina <jikos@...nel.org>,
Jiri Olsa <jolsa@...nel.org>,
Joel Stanley <joel@....id.au>,
Jonathan Cameron <jic23@...nel.org>,
Julia Lawall <Julia.Lawall@...ia.fr>,
Karan Tilak Kumar <kartilak@...co.com>,
Kashyap Desai <kashyap.desai@...adcom.com>,
Ketan Mukadam <ketan.mukadam@...adcom.com>,
Laurentiu Tudor <laurentiu.tudor@....com>,
linux-arm-kernel@...ts.infradead.org,
linux-edac@...r.kernel.org,
linux-fbdev@...r.kernel.org,
linux-fsi@...ts.ozlabs.org,
linux-iio@...r.kernel.org,
linux-input@...r.kernel.org,
linux-perf-users@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org,
linux-scsi@...r.kernel.org,
Manish Rangankar <mrangankar@...vell.com>,
Mark Rutland <mark.rutland@....com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
megaraidlinux.pdl@...adcom.com,
Michael Cyr <mikecyr@...ux.ibm.com>,
Michael Ellerman <mpe@...erman.id.au>,
Michal Januszewski <spock@...too.org>,
MPT-FusionLinux.pdl@...adcom.com,
Namhyung Kim <namhyung@...nel.org>,
"Naveen N. Rao" <naveen.n.rao@...ux.ibm.com>,
netdev@...r.kernel.org,
Nicholas Piggin <npiggin@...il.com>,
Nicolas Palix <nicolas.palix@...g.fr>,
Nilesh Javali <njavali@...vell.com>,
Parthiban Veerasooran <parthiban.veerasooran@...rochip.com>,
Peter Zijlstra <peterz@...radead.org>,
platform-driver-x86@...r.kernel.org,
Richard Cochran <richardcochran@...il.com>,
Robert Richter <rric@...nel.org>,
Russell King <linux@...linux.org.uk>,
Sathya Prakash <sathya.prakash@...adcom.com>,
Satish Kharat <satishkh@...co.com>,
Sesidhar Baddela <sebaddel@...co.com>,
Shivasharan S <shivasharan.srikanteshwara@...adcom.com>,
Sreekanth Reddy <sreekanth.reddy@...adcom.com>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Stefan Achatz <erazor_de@...rs.sourceforge.net>,
storagedev@...rochip.com,
Stuart Yoder <stuyoder@...il.com>,
Suganath Prabu Subramani <suganath-prabu.subramani@...adcom.com>,
Sumit Saxena <sumit.saxena@...adcom.com>,
target-devel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>,
Tony Luck <tony.luck@...el.com>,
Tyrel Datwyler <tyreld@...ux.ibm.com>,
Vadim Pasternak <vadimp@...dia.com>,
x86@...nel.org
Subject: [PATCH 00/42] Fix coccicheck warnings
make coccicheck COCCI=$PWD/scripts/coccinelle/api/device_attr_show.cocci`
complians some warnnings as following[1]:
Not sure if someone had tried these fixes, feel free to ignore this
patch set if we have come to a *NOT-FIX* conclusion before :)
This patch set also fix a few snprintf() beside coccicheck reported.
For example, some thing like
xxx_show() {
rc = snprintf();
..
return rc;
}
TODOs:
1. Fix other abused cases that coccicheck has not detected. For
example, ./drivers/scsi/scsi_transport_fc.c has other places using
snprint inside the macro.
2. Improve device_attr_show.cocci to detect sprintf() and fix them
[1]
$ make coccicheck COCCI=$PWD/scripts/coccinelle/api/device_attr_show.cocci
..
/arch/arm/mm/cache-l2x0-pmu.c:346:8-16: WARNING: use scnprintf or sprintf
/arch/x86/events/amd/core.c:1282:8-16: WARNING: use scnprintf or sprintf
/arch/x86/events/core.c:1895:11-19: WARNING: use scnprintf or sprintf
/arch/x86/events/core.c:2542:8-16: WARNING: use scnprintf or sprintf
/arch/x86/events/core.c:2600:8-16: WARNING: use scnprintf or sprintf
/arch/x86/events/intel/core.c:5496:8-16: WARNING: use scnprintf or sprintf
/arch/x86/events/intel/core.c:5530:8-16: WARNING: use scnprintf or sprintf
/arch/x86/events/intel/core.c:5546:8-16: WARNING: use scnprintf or sprintf
/arch/x86/events/intel/pt.c:99:8-16: WARNING: use scnprintf or sprintf
/drivers/bus/fsl-mc/fsl-mc-bus.c:205:8-16: WARNING: use scnprintf or sprintf
/drivers/edac/edac_mc_sysfs.c:210:8-16: WARNING: use scnprintf or sprintf
/drivers/edac/edac_mc_sysfs.c:518:8-16: WARNING: use scnprintf or sprintf
/drivers/fsi/fsi-master-ast-cf.c:1086:8-16: WARNING: use scnprintf or sprintf
/drivers/fsi/fsi-master-gpio.c:721:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:558:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:602:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:792:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:822:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:852:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:882:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:912:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-lenovo.c:941:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-picolcd_core.c:259:9-17: WARNING: use scnprintf or sprintf
/drivers/hid/hid-picolcd_core.c:304:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-isku.c:64:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kone.c:403:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kone.c:412:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kone.c:435:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kone.c:444:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kone.c:454:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kone.c:556:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-koneplus.c:245:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-koneplus.c:312:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kovaplus.c:275:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kovaplus.c:328:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kovaplus.c:337:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kovaplus.c:347:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-kovaplus.c:368:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-pyra.c:286:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-pyra.c:303:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-roccat-pyra.c:324:8-16: WARNING: use scnprintf or sprintf
/drivers/hid/hid-sensor-custom.c:375:10-18: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3100:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3116:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3132:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3145:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3159:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3173:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3186:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3198:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3211:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3224:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3237:8-16: WARNING: use scnprintf or sprintf
/drivers/message/fusion/mptscsih.c:3250:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:211:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:222:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:233:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:244:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:254:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:263:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:272:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:282:9-17: WARNING: use scnprintf or sprintf
/drivers/most/core.c:297:10-18: WARNING: use scnprintf or sprintf
/drivers/most/core.c:309:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:318:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:326:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:398:8-16: WARNING: use scnprintf or sprintf
/drivers/most/core.c:409:9-17: WARNING: use scnprintf or sprintf
/drivers/platform/mellanox/mlxbf-bootctl.c:466:8-16: WARNING: use scnprintf or sprintf
/drivers/platform/mellanox/mlxbf-bootctl.c:584:8-16: WARNING: use scnprintf or sprintf
/drivers/platform/mellanox/mlxbf-bootctl.c:635:8-16: WARNING: use scnprintf or sprintf
/drivers/platform/mellanox/mlxbf-bootctl.c:686:8-16: WARNING: use scnprintf or sprintf
/drivers/platform/mellanox/mlxbf-bootctl.c:737:8-16: WARNING: use scnprintf or sprintf
/drivers/platform/mellanox/mlxbf-bootctl.c:788:8-16: WARNING: use scnprintf or sprintf
/drivers/platform/mellanox/mlxbf-bootctl.c:839:8-16: WARNING: use scnprintf or sprintf
/drivers/ptp/ptp_sysfs.c:27:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/53c700.c:2074:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aacraid/linit.c:1299:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aacraid/linit.c:1325:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aacraid/linit.c:1332:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aacraid/linit.c:561:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/aacraid/linit.c:588:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aic94xx/aic94xx_init.c:267:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aic94xx/aic94xx_init.c:276:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aic94xx/aic94xx_init.c:284:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/aic94xx/aic94xx_init.c:455:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:261:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:273:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:285:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:297:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:309:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:322:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:335:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:348:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:361:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/arcmsr/arcmsr_attr.c:374:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/be2iscsi/be_mgmt.c:1145:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/be2iscsi/be_mgmt.c:1164:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/be2iscsi/be_mgmt.c:1251:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/be2iscsi/be_mgmt.c:1280:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/fcoe/fcoe_sysfs.c:253:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/fcoe/fcoe_sysfs.c:268:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/fcoe/fcoe_sysfs.c:376:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/fnic/fnic_attrs.c:17:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/fnic/fnic_attrs.c:23:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/fnic/fnic_attrs.c:31:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:528:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:538:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:549:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:561:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:645:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:724:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:746:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:775:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:799:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:898:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hpsa.c:908:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hptiop.c:1114:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/hptiop.c:1123:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi/ibmvfc.c:3483:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi/ibmvfc.c:3493:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi/ibmvfc.c:3503:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi/ibmvfc.c:3513:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi/ibmvfc.c:3522:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi/ibmvfc.c:3530:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c:3619:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c:3625:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c:3633:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/isci/init.c:140:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/megaraid/megaraid_sas_base.c:3336:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/megaraid/megaraid_sas_base.c:3382:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/megaraid/megaraid_sas_base.c:3389:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/megaraid/megaraid_sas_base.c:3399:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/megaraid/megaraid_sas_base.c:3409:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/megaraid/megaraid_sas_base.c:3419:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/megaraid/megaraid_sas_base.c:3473:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2825:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2850:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2873:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2893:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2912:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2932:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2952:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2971:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:2990:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3012:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3034:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3055:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3077:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3097:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3133:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3170:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3198:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3320:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3407:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3828:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3848:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:3996:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:4018:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/mpt3sas/mpt3sas_ctl.c:4056:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrb.c:1770:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/myrb.c:1889:10-18: WARNING: use scnprintf or sprintf
/drivers/scsi/myrb.c:1906:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/myrb.c:2143:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrb.c:2153:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrb.c:2163:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1061:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1089:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1193:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1306:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1316:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1391:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1401:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1411:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1421:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:1491:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/myrs.c:942:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/ncr53c8xx.c:8034:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/pcmcia/sym53c500_cs.c:627:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/pm8001/pm8001_ctl.c:883:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/pmcraid.c:3541:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/pmcraid.c:3602:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/pmcraid.c:3635:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:159:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:173:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:181:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:190:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:200:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:210:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:223:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:235:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:247:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:256:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:264:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:273:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:281:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:303:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/qla4xxx/ql4_attr.c:312:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:1112:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:1202:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:231:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:277:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:327:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:385:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:402:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:680:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:689:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:701:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:722:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:858:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:873:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:953:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_sysfs.c:979:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1123:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1218:10-18: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1286:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1304:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1665:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1891:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1915:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:1967:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_fc.c:2000:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_sas.c:1180:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_sas.c:525:9-17: WARNING: use scnprintf or sprintf
/drivers/scsi/scsi_transport_sas.c:572:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/snic/snic_attrs.c:16:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/snic/snic_attrs.c:26:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/snic/snic_attrs.c:35:8-16: WARNING: use scnprintf or sprintf
/drivers/scsi/snic/snic_attrs.c:48:8-16: WARNING: use scnprintf or sprintf
/drivers/video/fbdev/uvesafb.c:1549:8-16: WARNING: use scnprintf or sprintf
/kernel/cpu.c:3013:8-16: WARNING: use scnprintf or sprintf
/kernel/cpu.c:3026:8-16: WARNING: use scnprintf or sprintf
CC: Adaptec OEM Raid Solutions <aacraid@...rosemi.com>
CC: Adrian Hunter <adrian.hunter@...el.com>
CC: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
CC: Alistar Popple <alistair@...ple.id.au>
CC: "Aneesh Kumar K.V" <aneesh.kumar@...nel.org>
CC: Arnaldo Carvalho de Melo <acme@...nel.org>
CC: Artur Paszkiewicz <artur.paszkiewicz@...el.com>
CC: Benjamin Tissoires <benjamin.tissoires@...hat.com>
CC: Borislav Petkov <bp@...en8.de>
CC: "Bruno Prémont" <bonbons@...ux-vserver.org>
CC: Chandrakanth patil <chandrakanth.patil@...adcom.com>
CC: Christian Gromm <christian.gromm@...rochip.com>
CC: Christophe Leroy <christophe.leroy@...roup.eu>
CC: cocci@...ia.fr
CC: Dave Hansen <dave.hansen@...ux.intel.com>
CC: Don Brace <don.brace@...rochip.com>
CC: dri-devel@...ts.freedesktop.org
CC: Eddie James <eajames@...ux.ibm.com>
CC: GR-QLogic-Storage-Upstream@...vell.com
CC: Hannes Reinecke <hare@...nel.org>
CC: Hannes Reinecke <hare@...e.de>
CC: Hans de Goede <hdegoede@...hat.com>
CC: Helge Deller <deller@....de>
CC: HighPoint Linux Team <linux@...hpoint-tech.com>
CC: "H. Peter Anvin" <hpa@...or.com>
CC: Ian Rogers <irogers@...gle.com>
CC: "Ilpo Järvinen" <ilpo.jarvinen@...ux.intel.com>
CC: Ingo Molnar <mingo@...hat.com>
CC: Jack Wang <jinpu.wang@...ud.ionos.com>
CC: "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>
CC: "James E.J. Bottomley" <jejb@...ux.ibm.com>
CC: James Morse <james.morse@....com>
CC: Jeremy Kerr <jk@...abs.org>
CC: Jiri Kosina <jikos@...nel.org>
CC: Jiri Olsa <jolsa@...nel.org>
CC: Joel Stanley <joel@....id.au>
CC: Jonathan Cameron <jic23@...nel.org>
CC: Julia Lawall <Julia.Lawall@...ia.fr>
CC: Karan Tilak Kumar <kartilak@...co.com>
CC: Kashyap Desai <kashyap.desai@...adcom.com>
CC: Ketan Mukadam <ketan.mukadam@...adcom.com>
CC: Laurentiu Tudor <laurentiu.tudor@....com>
CC: linux-arm-kernel@...ts.infradead.org
CC: linux-edac@...r.kernel.org
CC: linux-fbdev@...r.kernel.org
CC: linux-fsi@...ts.ozlabs.org
CC: linux-iio@...r.kernel.org
CC: linux-input@...r.kernel.org
CC: linux-kernel@...r.kernel.org
CC: linux-perf-users@...r.kernel.org
CC: linuxppc-dev@...ts.ozlabs.org
CC: linux-scsi@...r.kernel.org
CC: Manish Rangankar <mrangankar@...vell.com>
CC: Mark Rutland <mark.rutland@....com>
CC: "Martin K. Petersen" <martin.petersen@...cle.com>
CC: Mauro Carvalho Chehab <mchehab@...nel.org>
CC: megaraidlinux.pdl@...adcom.com
CC: Michael Cyr <mikecyr@...ux.ibm.com>
CC: Michael Ellerman <mpe@...erman.id.au>
CC: Michal Januszewski <spock@...too.org>
CC: MPT-FusionLinux.pdl@...adcom.com
CC: Namhyung Kim <namhyung@...nel.org>
CC: "Naveen N. Rao" <naveen.n.rao@...ux.ibm.com>
CC: netdev@...r.kernel.org
CC: Nicholas Piggin <npiggin@...il.com>
CC: Nicolas Palix <nicolas.palix@...g.fr>
CC: Nilesh Javali <njavali@...vell.com>
CC: Parthiban Veerasooran <parthiban.veerasooran@...rochip.com>
CC: Peter Zijlstra <peterz@...radead.org>
CC: platform-driver-x86@...r.kernel.org
CC: Richard Cochran <richardcochran@...il.com>
CC: Robert Richter <rric@...nel.org>
CC: Russell King <linux@...linux.org.uk>
CC: Sathya Prakash <sathya.prakash@...adcom.com>
CC: Satish Kharat <satishkh@...co.com>
CC: Sesidhar Baddela <sebaddel@...co.com>
CC: Shivasharan S <shivasharan.srikanteshwara@...adcom.com>
CC: Sreekanth Reddy <sreekanth.reddy@...adcom.com>
CC: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
CC: Stefan Achatz <erazor_de@...rs.sourceforge.net>
CC: storagedev@...rochip.com
CC: Stuart Yoder <stuyoder@...il.com>
CC: Suganath Prabu Subramani <suganath-prabu.subramani@...adcom.com>
CC: Sumit Saxena <sumit.saxena@...adcom.com>
CC: target-devel@...r.kernel.org
CC: Thomas Gleixner <tglx@...utronix.de>
CC: Tony Luck <tony.luck@...el.com>
CC: Tyrel Datwyler <tyreld@...ux.ibm.com>
CC: Vadim Pasternak <vadimp@...dia.com>
CC: x86@...nel.org
Li Zhijian (42):
coccinelle: device_attr_show.cocci: update description and warning
message
arch/arm/mm: Convert snprintf to sysfs_emit
arch/x86/events/amd: Convert snprintf to sysfs_emit
arch/x86/events/core: Convert snprintf to sysfs_emit
arch/x86/events/intel: Convert snprintf to sysfs_emit
drivers/bus/fsl-mc: Convert snprintf to sysfs_emit
drivers/edac: Convert snprintf to sysfs_emit
drivers/fsi: Convert snprintf to sysfs_emit
drivers/hid/hid-lenovo: Convert snprintf to sysfs_emit
drivers/hid/hid-roccat-*: Convert snprintf to sysfs_emit
drivers/hid: Convert snprintf to sysfs_emit
drivers/message/fusion: Convert snprintf to sysfs_emit
drivers/most: Convert snprintf to sysfs_emit
drivers/platform/mellanox: Convert snprintf to sysfs_emit
drivers/ptp: Convert snprintf to sysfs_emit
drivers/scsi/53c700: Convert snprintf to sysfs_emit
drivers/scsi/aacraid: Convert snprintf to sysfs_emit
drivers/scsi/aic94xx: Convert snprintf to sysfs_emit
drivers/scsi/arcmsr: Convert snprintf to sysfs_emit
drivers/scsi/be2iscsi: Convert snprintf to sysfs_emit
drivers/scsi/fcoe: Convert snprintf to sysfs_emit
drivers/scsi/fnic: Convert snprintf to sysfs_emit
drivers/scsi/hpsa: Convert snprintf to sysfs_emit
drivers/scsi/hptiop: Convert snprintf to sysfs_emit
drivers/scsi/ibmvscsi: Convert snprintf to sysfs_emit
drivers/scsi/ibmvscsi_tgt: Convert snprintf to sysfs_emit
drivers/scsi/isci: Convert snprintf to sysfs_emit
drivers/scsi/megaraid: Convert snprintf to sysfs_emit
drivers/scsi/mpt3sas: Convert snprintf to sysfs_emit
drivers/scsi/myrb: Convert snprintf to sysfs_emit
drivers/scsi/myrs: Convert snprintf to sysfs_emit
drivers/scsi/ncr53c8xx: Convert snprintf to sysfs_emit
drivers/scsi/pcmcia/sym53c500_cs: Convert snprintf to sysfs_emit
drivers/scsi/pm8001: Convert snprintf to sysfs_emit
drivers/scsi/pmcraid: Convert snprintf to sysfs_emit
drivers/scsi/qla4xxx/ql4_attr: Convert snprintf to sysfs_emit
drivers/scsi/scsi_sysfs: Convert snprintf to sysfs_emit
drivers/scsi/scsi_transport_fc: Convert snprintf to sysfs_emit
drivers/scsi/scsi_transport_sas: Convert snprintf to sysfs_emit
drivers/scsi/snic/snic_attrs: Convert snprintf to sysfs_emit
drivers/video/fbdev/uvesafb: Convert snprintf to sysfs_emit
kernel/cpu: Convert snprintf to sysfs_emit
arch/arm/mm/cache-l2x0-pmu.c | 2 +-
arch/x86/events/amd/core.c | 2 +-
arch/x86/events/core.c | 6 +-
arch/x86/events/intel/core.c | 6 +-
arch/x86/events/intel/pt.c | 2 +-
drivers/bus/fsl-mc/fsl-mc-bus.c | 2 +-
drivers/edac/edac_mc_sysfs.c | 5 +-
drivers/fsi/fsi-master-ast-cf.c | 3 +-
drivers/fsi/fsi-master-gpio.c | 3 +-
drivers/hid/hid-lenovo.c | 19 +++---
drivers/hid/hid-picolcd_core.c | 6 +-
drivers/hid/hid-roccat-isku.c | 2 +-
drivers/hid/hid-roccat-kone.c | 12 ++--
drivers/hid/hid-roccat-koneplus.c | 4 +-
drivers/hid/hid-roccat-kovaplus.c | 10 +--
drivers/hid/hid-roccat-pyra.c | 6 +-
drivers/hid/hid-sensor-custom.c | 3 +-
drivers/message/fusion/mptscsih.c | 25 ++++----
drivers/most/core.c | 61 +++++++++----------
drivers/platform/mellanox/mlxbf-bootctl.c | 14 ++---
drivers/ptp/ptp_sysfs.c | 3 +-
drivers/scsi/53c700.c | 2 +-
drivers/scsi/aacraid/linit.c | 17 +++---
drivers/scsi/aic94xx/aic94xx_init.c | 15 +++--
drivers/scsi/arcmsr/arcmsr_attr.c | 40 +++---------
drivers/scsi/be2iscsi/be_mgmt.c | 20 +++---
drivers/scsi/fcoe/fcoe_sysfs.c | 8 +--
drivers/scsi/fnic/fnic_attrs.c | 7 +--
drivers/scsi/hpsa.c | 36 +++++------
drivers/scsi/hptiop.c | 4 +-
drivers/scsi/ibmvscsi/ibmvfc.c | 22 +++----
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 6 +-
drivers/scsi/isci/init.c | 2 +-
drivers/scsi/megaraid/megaraid_sas_base.c | 15 +++--
drivers/scsi/mpt3sas/mpt3sas_ctl.c | 60 +++++++++---------
drivers/scsi/myrb.c | 38 ++++++------
drivers/scsi/myrs.c | 56 ++++++++---------
drivers/scsi/ncr53c8xx.c | 2 +-
drivers/scsi/pcmcia/sym53c500_cs.c | 2 +-
drivers/scsi/pm8001/pm8001_ctl.c | 6 +-
drivers/scsi/pmcraid.c | 11 ++--
drivers/scsi/qla4xxx/ql4_attr.c | 48 +++++++--------
drivers/scsi/scsi_sysfs.c | 34 +++++------
drivers/scsi/scsi_transport_fc.c | 34 +++++------
drivers/scsi/scsi_transport_sas.c | 22 +++----
drivers/scsi/snic/snic_attrs.c | 10 +--
drivers/video/fbdev/uvesafb.c | 2 +-
kernel/cpu.c | 4 +-
scripts/coccinelle/api/device_attr_show.cocci | 10 ++-
49 files changed, 343 insertions(+), 386 deletions(-)
--
2.29.2
Powered by blists - more mailing lists