diff --git a/drivers/virtio-scsi.cc b/drivers/virtio-scsi.cc index c60306395c73245edd77fb02894fc215405d1b6d..d57e905c054bdf01a31e964f7919293b981f09ba 100644 --- a/drivers/virtio-scsi.cc +++ b/drivers/virtio-scsi.cc @@ -314,7 +314,7 @@ void scsi::add_lun(u16 target, u16 lun) } -void scsi::scan(void) +void scsi::scan() { /* TODO: Support more target */ for (u16 target = 0; target < 1; target++) { @@ -456,10 +456,10 @@ int scsi::make_request(struct bio* bio) return 0; } -u32 scsi::get_driver_features(void) +u32 scsi::get_driver_features() { auto base = virtio_driver::get_driver_features(); - return (base | ( 1 << VIRTIO_SCSI_F_INOUT)); + return base | ( 1 << VIRTIO_SCSI_F_INOUT); } hw_driver* scsi::probe(hw_device* dev) diff --git a/drivers/virtio-scsi.hh b/drivers/virtio-scsi.hh index e3b5c6d73df3677a0a3535068d279701adbe7c32..58fb08806a88a604707613bca195191b9ee6397c 100644 --- a/drivers/virtio-scsi.hh +++ b/drivers/virtio-scsi.hh @@ -120,10 +120,10 @@ public: explicit scsi(pci::device& dev); virtual ~scsi(); - virtual const std::string get_name(void) { return _driver_name; } + virtual const std::string get_name() { return _driver_name; } bool read_config(); - virtual u32 get_driver_features(void); + virtual u32 get_driver_features(); static struct scsi_priv *get_priv(struct bio *bio) { return reinterpret_cast<struct scsi_priv*>(bio->bio_dev->private_data); @@ -138,7 +138,7 @@ public: std::vector<u16> exec_report_luns(u16 target); void add_lun(u16 target_id, u16 lun_id); void exec_read_capacity(u16 target, u16 lun, size_t &devsize); - void scan(void); + void scan(); int exec_readwrite(struct bio *bio, u8 cmd); int exec_synccache(struct bio *bio, u8 cmd);