Skip to content

Commit

Permalink
scsi/linkdata: ps3_sas_transport: Declare functions with prototypes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Avenger-285714 committed Nov 20, 2024
1 parent 7423015 commit bf9703a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/linkdata/ps3_sas_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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);
Expand Down

0 comments on commit bf9703a

Please sign in to comment.