]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: Fix type casting and missing static qualifier in debugfs code
authorJohn Garry <john.garry@huawei.com>
Fri, 25 Jan 2019 14:22:28 +0000 (22:22 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Jan 2019 06:41:19 +0000 (01:41 -0500)
commitef66bd606d1b9567e5710306e0ab0cff7c36357e
treeb557d1ec3574b27213e0c039635491fb3466e6c6
parent66d82afeebfdd49dc0583b60dc50218e67191547
scsi: hisi_sas: Fix type casting and missing static qualifier in debugfs code

Sparse can detect some type casting issues in the debugfs code, so fix it
up.

Also a missing static qualifier is added to hisi_sas_debugfs_to_reg_name().

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c