From 1c957757483a963868c2149897dfea43ddf56faf Mon Sep 17 00:00:00 2001 From: WangYuli Date: Wed, 20 Nov 2024 15:25:14 +0800 Subject: [PATCH] scsi/linkdata: ps3_sas_transport: Declare functions with prototypes Fix follow compile errors with clang-19: drivers/scsi/linkdata/ps3_sas_transport.c:816:29: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 816 | S32 ps3_sas_attach_transport() | ^ | void drivers/scsi/linkdata/ps3_sas_transport.c:837:31: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] 837 | void ps3_sas_release_transport() | ^ | void 2 errors generated. Signed-off-by: WangYuli --- drivers/scsi/linkdata/ps3_sas_transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/linkdata/ps3_sas_transport.c b/drivers/scsi/linkdata/ps3_sas_transport.c index 2a5b000273ea..6bb653a96a70 100644 --- a/drivers/scsi/linkdata/ps3_sas_transport.c +++ b/drivers/scsi/linkdata/ps3_sas_transport.c @@ -813,7 +813,7 @@ void ps3_sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, } #endif -S32 ps3_sas_attach_transport() +S32 ps3_sas_attach_transport(void) { S32 ret = PS3_SUCCESS; static struct sas_function_template ps3_sas_transport_functions = { @@ -834,7 +834,7 @@ S32 ps3_sas_attach_transport() return ret; } -void ps3_sas_release_transport() +void ps3_sas_release_transport(void) { if(ps3_sas_transport_template != NULL) { sas_release_transport(ps3_sas_transport_template);