[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CY4PR04MB3751AB30CAB7C9012D2FC4E3E77E0@CY4PR04MB3751.namprd04.prod.outlook.com>
Date: Wed, 15 Jul 2020 03:09:20 +0000
From: Damien Le Moal <Damien.LeMoal@....com>
To: YueHaibing <yuehaibing@...wei.com>,
"jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
"martin.petersen@...cle.com" <martin.petersen@...cle.com>,
"axboe@...nel.dk" <axboe@...nel.dk>,
Johannes Thumshirn <Johannes.Thumshirn@....com>
CC: "linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] scsi: sd_zbc: Remove unused inline functions
On 2020/07/15 11:56, YueHaibing wrote:
> They are never used, so can remove it.
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
> ---
> drivers/scsi/sd.h | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h
> index 3a74f4b45134..27c0f4e9b1d4 100644
> --- a/drivers/scsi/sd.h
> +++ b/drivers/scsi/sd.h
> @@ -229,17 +229,11 @@ blk_status_t sd_zbc_prepare_zone_append(struct scsi_cmnd *cmd, sector_t *lba,
>
> #else /* CONFIG_BLK_DEV_ZONED */
>
> -static inline int sd_zbc_init(void)
> -{
> - return 0;
> -}
> -
> static inline int sd_zbc_init_disk(struct scsi_disk *sdkp)
> {
> return 0;
> }
>
> -static inline void sd_zbc_exit(void) {}
> static inline void sd_zbc_release_disk(struct scsi_disk *sdkp) {}
>
> static inline int sd_zbc_read_zones(struct scsi_disk *sdkp,
>
Reviewed-by: Damien Le Moal <damien.lemoal@....com>
--
Damien Le Moal
Western Digital Research
Powered by blists - more mailing lists