Commit 038d3f88 authored by Valentina Manea's avatar Valentina Manea Committed by Greg Kroah-Hartman

Staging: crystalhd: Fix sparse warnings regarding static functions

This fixes the following sparse warnings:
* drivers/staging/crystalhd/crystalhd_lnx.c:78:29: warning:
symbol 'chd_dec_alloc_iodata' was not declared. Should it be static?
* drivers/staging/crystalhd/crystalhd_lnx.c:99:6: warning:
symbol 'chd_dec_free_iodata' was not declared. Should it be static?
* drivers/staging/crystalhd/crystalhd_lnx.c:630:5: warning:
symbol 'chd_dec_pci_suspend' was not declared. Should it be static?
* drivers/staging/crystalhd/crystalhd_lnx.c:664:5: warning:
symbol 'chd_dec_pci_resume' was not declared. Should it be static?
Signed-off-by: default avatarValentina Manea <valentina.manea.m@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent edf7abde
...@@ -75,8 +75,9 @@ static int chd_dec_disable_int(struct crystalhd_adp *adp) ...@@ -75,8 +75,9 @@ static int chd_dec_disable_int(struct crystalhd_adp *adp)
return 0; return 0;
} }
struct crystalhd_ioctl_data *chd_dec_alloc_iodata(struct crystalhd_adp *adp, static struct
bool isr) crystalhd_ioctl_data *chd_dec_alloc_iodata(struct crystalhd_adp *adp,
bool isr)
{ {
unsigned long flags = 0; unsigned long flags = 0;
struct crystalhd_ioctl_data *temp; struct crystalhd_ioctl_data *temp;
...@@ -96,8 +97,8 @@ struct crystalhd_ioctl_data *chd_dec_alloc_iodata(struct crystalhd_adp *adp, ...@@ -96,8 +97,8 @@ struct crystalhd_ioctl_data *chd_dec_alloc_iodata(struct crystalhd_adp *adp,
return temp; return temp;
} }
void chd_dec_free_iodata(struct crystalhd_adp *adp, static void chd_dec_free_iodata(struct crystalhd_adp *adp,
struct crystalhd_ioctl_data *iodata, bool isr) struct crystalhd_ioctl_data *iodata, bool isr)
{ {
unsigned long flags = 0; unsigned long flags = 0;
...@@ -627,7 +628,7 @@ static int chd_dec_pci_probe(struct pci_dev *pdev, ...@@ -627,7 +628,7 @@ static int chd_dec_pci_probe(struct pci_dev *pdev,
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state) static int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state)
{ {
struct crystalhd_adp *adp; struct crystalhd_adp *adp;
struct crystalhd_ioctl_data *temp; struct crystalhd_ioctl_data *temp;
...@@ -661,7 +662,7 @@ int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state) ...@@ -661,7 +662,7 @@ int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state)
return 0; return 0;
} }
int chd_dec_pci_resume(struct pci_dev *pdev) static int chd_dec_pci_resume(struct pci_dev *pdev)
{ {
struct crystalhd_adp *adp; struct crystalhd_adp *adp;
enum BC_STATUS sts = BC_STS_SUCCESS; enum BC_STATUS sts = BC_STS_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment