Skip to content

Commit

Permalink
msm: diag: Fix strict-prototypes error
Browse files Browse the repository at this point in the history
Change-Id: I1b61a6df9d028fdff86bca6c6f3642a050e8f005
  • Loading branch information
luk1337 authored and chrmhoffmann committed Nov 7, 2023
1 parent b5923e0 commit b43b201
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion drivers/char/diag/diag_dci.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static int diag_dci_get_buffer(struct diag_dci_client_tbl *client,
return -EIO;
}

void diag_dci_wakeup_clients()
void diag_dci_wakeup_clients(void)
{
struct list_head *start, *temp;
struct diag_dci_client_tbl *entry = NULL;
Expand Down
8 changes: 4 additions & 4 deletions drivers/char/diag/diag_memorydevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ int diag_md_register(int id, int ctx, struct diag_mux_ops *ops)
return 0;
}

void diag_md_open_all()
void diag_md_open_all(void)
{
int i;
struct diag_md_info *ch = NULL;
Expand All @@ -92,7 +92,7 @@ void diag_md_open_all()
return;
}

void diag_md_close_all()
void diag_md_close_all(void)
{
int i, j;
unsigned long flags;
Expand Down Expand Up @@ -389,7 +389,7 @@ int diag_md_close_peripheral(int id, uint8_t peripheral)
return 0;
}

int diag_md_init()
int diag_md_init(void)
{
int i, j;
struct diag_md_info *ch = NULL;
Expand Down Expand Up @@ -418,7 +418,7 @@ int diag_md_init()
return -ENOMEM;
}

void diag_md_exit()
void diag_md_exit(void)
{
int i;
struct diag_md_info *ch = NULL;
Expand Down
4 changes: 2 additions & 2 deletions drivers/char/diag/diag_mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static struct diag_logger_ops md_log_ops = {
.close_peripheral = diag_md_close_peripheral,
};

int diag_mux_init()
int diag_mux_init(void)
{
diag_mux = kzalloc(sizeof(struct diag_mux_state_t),
GFP_KERNEL);
Expand All @@ -76,7 +76,7 @@ int diag_mux_init()
return 0;
}

void diag_mux_exit()
void diag_mux_exit(void)
{
kfree(diag_mux);
}
Expand Down
6 changes: 3 additions & 3 deletions drivers/char/diag/diagchar_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3287,7 +3287,7 @@ static ssize_t diagchar_write(struct file *file, const char __user *buf,
return err;
}

void diag_ws_init()
void diag_ws_init(void)
{
driver->dci_ws.ref_count = 0;
driver->dci_ws.copy_count = 0;
Expand All @@ -3313,7 +3313,7 @@ static void diag_stats_init(void)
driver->event_stats.drop_count = 0;
}

void diag_ws_on_notify()
void diag_ws_on_notify(void)
{
/*
* Do not deal with reference count here as there can be spurious
Expand Down Expand Up @@ -3458,7 +3458,7 @@ void diag_ws_reset(int type)
diag_ws_release();
}

void diag_ws_release()
void diag_ws_release(void)
{
if (driver->dci_ws.ref_count == 0 && driver->md_ws.ref_count == 0)
pm_relax(driver->diag_dev);
Expand Down
4 changes: 2 additions & 2 deletions drivers/char/diag/diagfwd_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ int diagfwd_bridge_init()
return err;
}

void diagfwd_bridge_exit()
void diagfwd_bridge_exit(void)
{
#ifdef USB_QCOM_DIAG_BRIDGE
diag_hsic_exit();
Expand Down Expand Up @@ -312,7 +312,7 @@ int diagfwd_bridge_write(int id, unsigned char *buf, int len)
return 0;
}

uint16_t diag_get_remote_device_mask()
uint16_t diag_get_remote_device_mask(void)
{
int i;
uint16_t remote_dev = 0;
Expand Down
2 changes: 1 addition & 1 deletion drivers/char/diag/diagfwd_mhi.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ int diag_mhi_init()
return -ENOMEM;
}

void diag_mhi_exit()
void diag_mhi_exit(void)
{
int i;
struct diag_mhi_info *mhi_info = NULL;
Expand Down

0 comments on commit b43b201

Please sign in to comment.