Message ID | 20240116041129.3937800-1-lizhijian@fujitsu.com (mailing list archive) |
---|---|
Headers | show
Received: from esa4.hc1455-7.c3s2.iphmx.com (esa4.hc1455-7.c3s2.iphmx.com [68.232.139.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7830E79C1; Tue, 16 Jan 2024 04:13:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fujitsu.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fujitsu.com X-IronPort-AV: E=McAfee;i="6600,9927,10954"; a="146505738" X-IronPort-AV: E=Sophos;i="6.04,198,1695654000"; d="scan'208";a="146505738" Received: from unknown (HELO oym-r4.gw.nic.fujitsu.com) ([210.162.30.92]) by esa4.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 13:11:56 +0900 Received: from oym-m2.gw.nic.fujitsu.com (oym-nat-oym-m2.gw.nic.fujitsu.com [192.168.87.59]) by oym-r4.gw.nic.fujitsu.com (Postfix) with ESMTP id C8695D9D9D; Tue, 16 Jan 2024 13:11:51 +0900 (JST) Received: from kws-ab3.gw.nic.fujitsu.com (kws-ab3.gw.nic.fujitsu.com [192.51.206.21]) by oym-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id 9F1A7BF3E1; Tue, 16 Jan 2024 13:11:50 +0900 (JST) Received: from edo.cn.fujitsu.com (edo.cn.fujitsu.com [10.167.33.5]) by kws-ab3.gw.nic.fujitsu.com (Postfix) with ESMTP id 0420D200982E5; Tue, 16 Jan 2024 13:11:50 +0900 (JST) Received: from localhost.localdomain (unknown [10.167.226.45]) by edo.cn.fujitsu.com (Postfix) with ESMTP id D30711A0070; Tue, 16 Jan 2024 12:11:43 +0800 (CST) From: Li Zhijian <lizhijian@fujitsu.com> To: linux-kernel@vger.kernel.org Cc: Li Zhijian <lizhijian@fujitsu.com>, Adaptec OEM Raid Solutions <aacraid@microsemi.com>, Adrian Hunter <adrian.hunter@intel.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Alistar Popple <alistair@popple.id.au>, "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>, Arnaldo Carvalho de Melo <acme@kernel.org>, Artur Paszkiewicz <artur.paszkiewicz@intel.com>, Benjamin Tissoires <benjamin.tissoires@redhat.com>, Borislav Petkov <bp@alien8.de>, =?utf-8?q?Bruno_Pr=C3=A9mont?= <bonbons@linux-vserver.org>, Chandrakanth patil <chandrakanth.patil@broadcom.com>, Christian Gromm <christian.gromm@microchip.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, cocci@inria.fr, Dave Hansen <dave.hansen@linux.intel.com>, Don Brace <don.brace@microchip.com>, dri-devel@lists.freedesktop.org, Eddie James <eajames@linux.ibm.com>, GR-QLogic-Storage-Upstream@marvell.com, Hannes Reinecke <hare@kernel.org>, Hannes Reinecke <hare@suse.de>, Hans de Goede <hdegoede@redhat.com>, Helge Deller <deller@gmx.de>, HighPoint Linux Team <linux@highpoint-tech.com>, "H. Peter Anvin" <hpa@zytor.com>, Ian Rogers <irogers@google.com>, =?utf-8?q?Ilpo_J=C3=A4rvinen?= <ilpo.jarvinen@linux.intel.com>, Ingo Molnar <mingo@redhat.com>, Jack Wang <jinpu.wang@cloud.ionos.com>, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, "James E.J. Bottomley" <jejb@linux.ibm.com>, James Morse <james.morse@arm.com>, Jeremy Kerr <jk@ozlabs.org>, Jiri Kosina <jikos@kernel.org>, Jiri Olsa <jolsa@kernel.org>, Joel Stanley <joel@jms.id.au>, Jonathan Cameron <jic23@kernel.org>, Julia Lawall <Julia.Lawall@inria.fr>, Karan Tilak Kumar <kartilak@cisco.com>, Kashyap Desai <kashyap.desai@broadcom.com>, Ketan Mukadam <ketan.mukadam@broadcom.com>, Laurentiu Tudor <laurentiu.tudor@nxp.com>, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-fsi@lists.ozlabs.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-perf-users@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-scsi@vger.kernel.org, Manish Rangankar <mrangankar@marvell.com>, Mark Rutland <mark.rutland@arm.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, megaraidlinux.pdl@broadcom.com, Michael Cyr <mikecyr@linux.ibm.com>, Michael Ellerman <mpe@ellerman.id.au>, Michal Januszewski <spock@gentoo.org>, MPT-FusionLinux.pdl@broadcom.com, Namhyung Kim <namhyung@kernel.org>, "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>, netdev@vger.kernel.org, Nicholas Piggin <npiggin@gmail.com>, Nicolas Palix <nicolas.palix@imag.fr>, Nilesh Javali <njavali@marvell.com>, Parthiban Veerasooran <parthiban.veerasooran@microchip.com>, Peter Zijlstra <peterz@infradead.org>, platform-driver-x86@vger.kernel.org, Richard Cochran <richardcochran@gmail.com>, Robert Richter <rric@kernel.org>, Russell King <linux@armlinux.org.uk>, Sathya Prakash <sathya.prakash@broadcom.com>, Satish Kharat <satishkh@cisco.com>, Sesidhar Baddela <sebaddel@cisco.com>, Shivasharan S <shivasharan.srikanteshwara@broadcom.com>, Sreekanth Reddy <sreekanth.reddy@broadcom.com>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>, Stefan Achatz <erazor_de@users.sourceforge.net>, storagedev@microchip.com, Stuart Yoder <stuyoder@gmail.com>, Suganath Prabu Subramani <suganath-prabu.subramani@broadcom.com>, Sumit Saxena <sumit.saxena@broadcom.com>, target-devel@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>, Tony Luck <tony.luck@intel.com>, Tyrel Datwyler <tyreld@linux.ibm.com>, Vadim Pasternak <vadimp@nvidia.com>, x86@kernel.org Subject: [PATCH 00/42] Fix coccicheck warnings Date: Tue, 16 Jan 2024 12:10:47 +0800 Message-Id: <20240116041129.3937800-1-lizhijian@fujitsu.com> X-Mailer: git-send-email 2.31.1 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: <linux-scsi.vger.kernel.org> List-Subscribe: <mailto:linux-scsi+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-scsi+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSS-9.1.0.1417-9.0.0.1002-28122.004 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1417-9.0.1002-28122.004 X-TMASE-Result: 10--5.338000-10.000000 X-TMASE-MatchedRID: APZBv0eB5fJy4CNxYSkcLoL5ja7E+OhyuoYFb0nRiqO/XSsQNWtCeIAj 6kt+TewHC3vXNyJNBUS/2a/w1wS2snh1rPkUeh+7A9lly13c/gEMZvHcAgmELNM4cBkOddRug4T d/DBNkVPBV4b4vif9P70QU2u8uQPlKz8U6m7mv8Csxn4GpC3Y2mDbldQedDmvdr2Udl3Og/5evz 2JvPJmxmu4/NMq7ELJiJZIlifpj2n9iEfE2OtmsHZwubmkurW/Urr7Qc5WhKixViPWo8HTYkdes bjoBZ/kx3iFO+XIjdvtpuHnoJaRs49oUcx9VMLggxsfzkNRlfLdB/CxWTRRu25FeHtsUoHuFXh8 AHLXJNBIMK2NL4dx8OCrxKVMkOf0hhdqTS9iikoJK2MK45H+GA== X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 |
Series |
Fix coccicheck warnings
|
expand
|
On Tue, 16 Jan 2024 12:10:47 +0800, Li Zhijian wrote: > 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; > } > > [...] Applied to 6.9/scsi-queue, thanks! [22/42] drivers/scsi/fnic: Convert snprintf to sysfs_emit https://git.kernel.org/mkp/scsi/c/1ad717c92925 [25/42] drivers/scsi/ibmvscsi: Convert snprintf to sysfs_emit https://git.kernel.org/mkp/scsi/c/29ff822f466e [26/42] drivers/scsi/ibmvscsi_tgt: Convert snprintf to sysfs_emit https://git.kernel.org/mkp/scsi/c/01105c23de42 [27/42] drivers/scsi/isci: Convert snprintf to sysfs_emit https://git.kernel.org/mkp/scsi/c/5fbf37e53091 [34/42] drivers/scsi/pm8001: Convert snprintf to sysfs_emit https://git.kernel.org/mkp/scsi/c/8179041f801d