svn commit: r361111 - in head/sys/cam: . ata mmc nvme scsi
Conrad Meyer
cem at FreeBSD.org
Sat May 16 14:33:10 UTC 2020
Author: cem
Date: Sat May 16 14:33:08 2020
New Revision: 361111
URL: https://svnweb.freebsd.org/changeset/base/361111
Log:
cam: ANSIfy 0-argument function definitions
No functional change.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D24854
Modified:
head/sys/cam/ata/ata_xpt.c
head/sys/cam/cam_xpt.c
head/sys/cam/mmc/mmc_xpt.c
head/sys/cam/nvme/nvme_xpt.c
head/sys/cam/scsi/scsi_targ_bh.c
head/sys/cam/scsi/scsi_xpt.c
Modified: head/sys/cam/ata/ata_xpt.c
==============================================================================
--- head/sys/cam/ata/ata_xpt.c Sat May 16 14:27:50 2020 (r361110)
+++ head/sys/cam/ata/ata_xpt.c Sat May 16 14:33:08 2020 (r361111)
@@ -270,7 +270,7 @@ CAM_XPT_PROTO(ata_proto_satapm);
CAM_XPT_PROTO(ata_proto_semb);
static void
-aprobe_periph_init()
+aprobe_periph_init(void)
{
}
Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c Sat May 16 14:27:50 2020 (r361110)
+++ head/sys/cam/cam_xpt.c Sat May 16 14:33:08 2020 (r361111)
@@ -354,7 +354,7 @@ device_is_queued(struct cam_ed *device)
}
static void
-xpt_periph_init()
+xpt_periph_init(void)
{
make_dev(&xpt_cdevsw, 0, UID_ROOT, GID_OPERATOR, 0600, "xpt0");
}
@@ -4669,7 +4669,7 @@ xpt_done_direct(union ccb *done_ccb)
}
union ccb *
-xpt_alloc_ccb()
+xpt_alloc_ccb(void)
{
union ccb *new_ccb;
@@ -4678,7 +4678,7 @@ xpt_alloc_ccb()
}
union ccb *
-xpt_alloc_ccb_nowait()
+xpt_alloc_ccb_nowait(void)
{
union ccb *new_ccb;
Modified: head/sys/cam/mmc/mmc_xpt.c
==============================================================================
--- head/sys/cam/mmc/mmc_xpt.c Sat May 16 14:27:50 2020 (r361110)
+++ head/sys/cam/mmc/mmc_xpt.c Sat May 16 14:33:08 2020 (r361111)
@@ -467,7 +467,7 @@ PERIPHDRIVER_DECLARE(mmcprobe, probe_driver);
#define CARD_ID_FREQUENCY 400000 /* Spec requires 400kHz max during ID phase. */
static void
-probe_periph_init()
+probe_periph_init(void)
{
}
Modified: head/sys/cam/nvme/nvme_xpt.c
==============================================================================
--- head/sys/cam/nvme/nvme_xpt.c Sat May 16 14:27:50 2020 (r361110)
+++ head/sys/cam/nvme/nvme_xpt.c Sat May 16 14:33:08 2020 (r361111)
@@ -192,9 +192,8 @@ static struct xpt_proto nvme_proto = {
CAM_XPT_PROTO(nvme_proto);
static void
-nvme_probe_periph_init()
+nvme_probe_periph_init(void)
{
-
}
static cam_status
Modified: head/sys/cam/scsi/scsi_targ_bh.c
==============================================================================
--- head/sys/cam/scsi/scsi_targ_bh.c Sat May 16 14:27:50 2020 (r361110)
+++ head/sys/cam/scsi/scsi_targ_bh.c Sat May 16 14:33:08 2020 (r361111)
@@ -737,7 +737,7 @@ targbherror(union ccb *ccb, u_int32_t cam_flags, u_int
#endif
static struct targbh_cmd_desc*
-targbhallocdescr()
+targbhallocdescr(void)
{
struct targbh_cmd_desc* descr;
Modified: head/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- head/sys/cam/scsi/scsi_xpt.c Sat May 16 14:27:50 2020 (r361110)
+++ head/sys/cam/scsi/scsi_xpt.c Sat May 16 14:33:08 2020 (r361111)
@@ -649,7 +649,7 @@ static struct xpt_proto scsi_proto = {
CAM_XPT_PROTO(scsi_proto);
static void
-probe_periph_init()
+probe_periph_init(void)
{
}
More information about the svn-src-all
mailing list