summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
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 /include/linux/usb
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 'include/linux/usb')
-rw-r--r--include/linux/usb/gadget_configfs.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/usb/gadget_configfs.h b/include/linux/usb/gadget_configfs.h
index d61aebd68128..6a552dd4dec9 100644
--- a/include/linux/usb/gadget_configfs.h
+++ b/include/linux/usb/gadget_configfs.h
@@ -4,9 +4,6 @@
#include <linux/configfs.h>
-int check_user_usb_string(const char *name,
- struct usb_gadget_strings *stringtab_dev);
-
#define GS_STRINGS_W(__struct, __name) \
static ssize_t __struct##_##__name##_store(struct config_item *item, \
const char *page, size_t len) \