Commit 7638621d authored by zhengbin's avatar zhengbin Committed by Greg Kroah-Hartman

staging: wfx: Make function 'sram_write_dma_safe', 'load_firmware_secure' static

Fix sparse warnings:

drivers/staging/wfx/fwio.c:83:5: warning: symbol 'sram_write_dma_safe' was not declared. Should it be static?
drivers/staging/wfx/fwio.c:229:5: warning: symbol 'load_firmware_secure' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Reviewed-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/1570629030-29888-2-git-send-email-zhengbin13@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0bb0dff0
...@@ -80,7 +80,8 @@ static const char * const fwio_error_strings[] = { ...@@ -80,7 +80,8 @@ static const char * const fwio_error_strings[] = {
* NOTE: it may also be possible to use 'pages' from struct firmware and avoid * NOTE: it may also be possible to use 'pages' from struct firmware and avoid
* bounce buffer * bounce buffer
*/ */
int sram_write_dma_safe(struct wfx_dev *wdev, u32 addr, const u8 *buf, size_t len) static int sram_write_dma_safe(struct wfx_dev *wdev, u32 addr, const u8 *buf,
size_t len)
{ {
int ret; int ret;
const u8 *tmp; const u8 *tmp;
...@@ -226,7 +227,7 @@ static void print_boot_status(struct wfx_dev *wdev) ...@@ -226,7 +227,7 @@ static void print_boot_status(struct wfx_dev *wdev)
} }
} }
int load_firmware_secure(struct wfx_dev *wdev) static int load_firmware_secure(struct wfx_dev *wdev)
{ {
const struct firmware *fw = NULL; const struct firmware *fw = NULL;
int header_size; int header_size;
......
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