scsi: libsas: Introduce SAS address comparison helpers
authorJason Yan <yanaijie@huawei.com>
Wed, 28 Sep 2022 07:01:23 +0000 (15:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Oct 2022 03:28:09 +0000 (03:28 +0000)
commit773792e4e704ca1c47e3d9bc6ed5be2a00a22ad5
tree26ad1f0fff26f7c8c54adb4cfcb06e5b9b3f9233
parentf93ed747e2c7e6bfbf309291879b33b0d0231a7d
scsi: libsas: Introduce SAS address comparison helpers

SAS address comparison is widely used in libsas. However they are all
opencoded and to avoid the line spill over 80 columns, are mostly split
into multi-lines. Introduce some helpers to prepare for some refactoring.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20220928070130.3657183-2-yanaijie@huawei.com
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_internal.h