]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging/ft1000: fix sparse warning about the kernel thread handler function
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 7 Jul 2012 12:05:15 +0000 (17:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 19:26:43 +0000 (12:26 -0700)
sparse throws warning about the ft1000_poll_thread as

drivers/staging/ft1000/ft1000-usb/ft1000_usb.c:40:5: warning: symbol 'ft1000_poll_thread' was not declared. Should it be static?

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c

index bfead67436fef8203344be92c2cc63b2b4e975a8..e434d33454a89047f264fbdbfe090c34594214e3 100644 (file)
@@ -37,7 +37,7 @@ static struct usb_device_id id_table[] = {
 MODULE_DEVICE_TABLE(usb, id_table);
 
 static bool gPollingfailed = FALSE;
-int ft1000_poll_thread(void *arg)
+static int ft1000_poll_thread(void *arg)
 {
        int ret = STATUS_SUCCESS;