summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-08-10 22:52:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-13 10:38:19 +0200
commitc343e66ed009fdb6206787558130ccbd504ffc12 (patch)
treedbb83cdbded7162c7f5677b6457d23046fa660c7 /drivers
parent88177cd4537faf927fe994db99b62d75f73cb1fe (diff)
downloadlinux-stable-c343e66ed009fdb6206787558130ccbd504ffc12.tar.gz
linux-stable-c343e66ed009fdb6206787558130ccbd504ffc12.tar.bz2
linux-stable-c343e66ed009fdb6206787558130ccbd504ffc12.zip
usb: gadget: configfs: Make check_user_usb_string() static
"linux/usb/gadget_configfs.h" is only included in "drivers/usb/gadget/configfs.c", so there is no need to declare a function in the header file. it is only used in this .c file. It's better to have it static. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/958cb49dca1bff4254a3492c018efbf3b01918b4.1723323107.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/configfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
index 0e7c1e947c0a..e0bf2b2bfc01 100644
--- a/drivers/usb/gadget/configfs.c
+++ b/drivers/usb/gadget/configfs.c
@@ -12,7 +12,7 @@
#include "u_f.h"
#include "u_os_desc.h"
-int check_user_usb_string(const char *name,
+static int check_user_usb_string(const char *name,
struct usb_gadget_strings *stringtab_dev)
{
u16 num;