lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200619193341.51209-3-devel@superboring.dev>
Date:   Fri, 19 Jun 2020 21:33:35 +0200
From:   Simao Gomes Viana <devel@...erboring.dev>
To:     linux-kernel@...r.kernel.org
Cc:     Simao Gomes Viana <devel@...erboring.dev>,
        Joe Perches <joe@...ches.com>
Subject: [PATCH 3/9] drivers: cdrom: replace func name by __func__

These were reported by scripts/checkpatch.pl

Signed-off-by: Simao Gomes Viana <devel@...erboring.dev>
---
 drivers/cdrom/cdrom.c | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index e41743c413c2..e27af76199eb 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -594,7 +594,7 @@ int register_cdrom(struct gendisk *disk, struct cdrom_device_info *cdi)
 	static char banner_printed;
 	const struct cdrom_device_ops *cdo = cdi->ops;
 
-	cd_dbg(CD_OPEN, "entering register_cdrom\n");
+	cd_dbg(CD_OPEN, "entering %s()\n", __func__);
 
 	if (cdo->open == NULL || cdo->release == NULL)
 		return -EINVAL;
@@ -649,7 +649,7 @@ int register_cdrom(struct gendisk *disk, struct cdrom_device_info *cdi)
 
 void unregister_cdrom(struct cdrom_device_info *cdi)
 {
-	cd_dbg(CD_OPEN, "entering unregister_cdrom\n");
+	cd_dbg(CD_OPEN, "entering %s()\n", __func__);
 
 	mutex_lock(&cdrom_mutex);
 	list_del(&cdi->list);
@@ -1001,7 +1001,8 @@ static void cdrom_count_tracks(struct cdrom_device_info *cdi, tracktype *tracks)
 	tracks->cdi = 0;
 	tracks->xa = 0;
 	tracks->error = 0;
-	cd_dbg(CD_COUNT_TRACKS, "entering cdrom_count_tracks\n");
+
+	cd_dbg(CD_COUNT_TRACKS, "entering %s()\n", __func__);
 
 	if (!CDROM_CAN(CDC_PLAY_AUDIO)) {
 		tracks->error = CDS_NO_INFO;
@@ -1049,7 +1050,8 @@ int open_for_data(struct cdrom_device_info *cdi)
 	int ret;
 	const struct cdrom_device_ops *cdo = cdi->ops;
 	tracktype tracks;
-	cd_dbg(CD_OPEN, "entering open_for_data\n");
+
+	cd_dbg(CD_OPEN, "entering %s()\n", __func__);
 	/* Check if the driver can report drive status.  If it can, we
 	 * can do clever things.  If it can't, well, we at least tried!
 	 */
@@ -1168,7 +1170,7 @@ int cdrom_open(struct cdrom_device_info *cdi, struct block_device *bdev,
 {
 	int ret;
 
-	cd_dbg(CD_OPEN, "entering cdrom_open\n");
+	cd_dbg(CD_OPEN, "entering %s()\n", __func__);
 
 	/* if this was a O_NONBLOCK open and we should honor the flags,
 	 * do a quick open without drive/disc integrity checks.
@@ -1218,7 +1220,8 @@ static int check_for_audio_disc(struct cdrom_device_info *cdi,
 {
 	int ret;
 	tracktype tracks;
-	cd_dbg(CD_OPEN, "entering check_for_audio_disc\n");
+
+	cd_dbg(CD_OPEN, "entering %s()\n", __func__);
 	if (!(cdi->options & CDO_CHECK_TYPE))
 		return 0;
 	if (cdo->drive_status != NULL) {
@@ -1273,7 +1276,7 @@ void cdrom_release(struct cdrom_device_info *cdi, fmode_t mode)
 	const struct cdrom_device_ops *cdo = cdi->ops;
 	int opened_for_data;
 
-	cd_dbg(CD_CLOSE, "entering cdrom_release\n");
+	cd_dbg(CD_CLOSE, "entering %s()\n", __func__);
 
 	if (cdi->use_count > 0)
 		cdi->use_count--;
@@ -1343,7 +1346,7 @@ static int cdrom_slot_status(struct cdrom_device_info *cdi, int slot)
 	struct cdrom_changer_info *info;
 	int ret;
 
-	cd_dbg(CD_CHANGER, "entering cdrom_slot_status()\n");
+	cd_dbg(CD_CHANGER, "entering %s()\n", __func__);
 	if (cdi->sanyo_slot)
 		return CDS_NO_INFO;
 
@@ -1373,7 +1376,7 @@ int cdrom_number_of_slots(struct cdrom_device_info *cdi)
 	int nslots = 1;
 	struct cdrom_changer_info *info;
 
-	cd_dbg(CD_CHANGER, "entering cdrom_number_of_slots()\n");
+	cd_dbg(CD_CHANGER, "entering %s()\n", __func__);
 	/* cdrom_read_mech_status requires a valid value for capacity: */
 	cdi->capacity = 0;
 
@@ -1394,7 +1397,7 @@ static int cdrom_load_unload(struct cdrom_device_info *cdi, int slot)
 {
 	struct packet_command cgc;
 
-	cd_dbg(CD_CHANGER, "entering cdrom_load_unload()\n");
+	cd_dbg(CD_CHANGER, "entering %s()\n", __func__);
 	if (cdi->sanyo_slot && slot < 0)
 		return 0;
 
@@ -1424,7 +1427,7 @@ static int cdrom_select_disc(struct cdrom_device_info *cdi, int slot)
 	int curslot;
 	int ret;
 
-	cd_dbg(CD_CHANGER, "entering cdrom_select_disc()\n");
+	cd_dbg(CD_CHANGER, "entering %s()\n", __func__);
 	if (!CDROM_CAN(CDC_SELECT_DISC))
 		return -EDRIVE_CANT_DO_THIS;
 
-- 
2.27.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ