diff options
author | 2022-12-14 21:38:05 +0800 | |
---|---|---|
committer | 2022-12-30 16:59:10 +0000 | |
commit | ffebb38efee3e6bbcccd0b7babf0ede8890794cd (patch) | |
tree | 2dd302ca8345ae4e157614cd4c87e8217de3e78d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | scsi: libsas: Move sas_get_ata_command_set() up to save the declaration (diff) | |
download | wireguard-linux-ffebb38efee3e6bbcccd0b7babf0ede8890794cd.tar.xz wireguard-linux-ffebb38efee3e6bbcccd0b7babf0ede8890794cd.zip |
scsi: libsas: Change the coding style of sas_discover_sata()
The coding style where calling this interface is inconsistent with other
interfaces for SATA devices. The standard style for other SATA interfaces
is like:
#ifdefine CONFIG_SCSI_SAS_ATA
void sas_ata_task_abort(struct sas_task *task);
#else
static inline void sas_ata_task_abort(struct sas_task *task)
{
}
#endif
And the callers does not have to do things like "#ifdefine CONFIG_SCSI_SAS_ATA"
and may call the interface directly. So follow the standard style here.
Cc: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Jack Wang <jinpu.wang@ionos.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions