Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: misc: brcmstb-usb-pinmap: Make sync_all_pins static

Fix the following sparse warning:

drivers/usb/misc/brcmstb-usb-pinmap.c:219:6: warning: symbol 'sync_all_pins' was not declared. Should it be static?

The sync_all_pins has only call site within brcmstb-usb-pinmap.c
It should be static

Fixes: 517c4c44b323 ("usb: Add driver to allow any GPIO to be used for 7211 USB signals")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1604050097-91302-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zou Wei and committed by
Greg Kroah-Hartman
9e39aef3 217504a0

+1 -1
+1 -1
drivers/usb/misc/brcmstb-usb-pinmap.c
··· 216 216 return 0; 217 217 } 218 218 219 - void sync_all_pins(struct brcmstb_usb_pinmap_data *pdata) 219 + static void sync_all_pins(struct brcmstb_usb_pinmap_data *pdata) 220 220 { 221 221 struct out_pin *pout; 222 222 struct in_pin *pin;