]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: gadget: configfs: Make check_user_usb_string() static
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 10 Aug 2024 20:52:17 +0000 (22:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Aug 2024 08:38:19 +0000 (10:38 +0200)
commitc343e66ed009fdb6206787558130ccbd504ffc12
treedbb83cdbded7162c7f5677b6457d23046fa660c7
parent88177cd4537faf927fe994db99b62d75f73cb1fe
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>
drivers/usb/gadget/configfs.c
include/linux/usb/gadget_configfs.h