Re: [PATCH] usbip: change match_busid() to local function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: MÃrton NÃmeth <nm127@xxxxxxxxxxx>

The function match_busid() is only referenced in the stub_main.c so it can be changed
to static. This will remove the following warning when compiling with "make W=1 ...":
 * drivers/staging/usbip/stub_main.c:40: warning: no previous prototype for âmatch_busidâ

Signed-off-by: MÃrton NÃmeth <nm127@xxxxxxxxxxx>
---
diff --git a/drivers/staging/usbip/stub_main.c b/drivers/staging/usbip/stub_main.c
index e9085d6..fc5b829 100644
--- a/drivers/staging/usbip/stub_main.c
+++ b/drivers/staging/usbip/stub_main.c
@@ -37,7 +37,7 @@ struct kmem_cache *stub_priv_cache;
 static struct bus_id_priv busid_table[MAX_BUSID];
 static spinlock_t busid_table_lock;

-int match_busid(const char *busid)
+static int match_busid(const char *busid)
 {
 	int i;

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux