diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-12-19 05:12:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-19 13:23:12 -0500 |
commit | ff4708e69a633912c5c8e055fc399bf356d7a784 (patch) | |
tree | 2eb65f1aace3e7906480b79fbbde53e8f6cc4b05 /drivers/usb/misc/usbsevseg.c | |
parent | 81574fc65f67ca5948ee80af0ec030a20a802dd3 (diff) |
drivers: usb: Mark function as static in usbsevseg.c
Mark function my_memlen() as static in misc/usbsevseg.c because it is
not used outside this file.
This eliminates the following warning in misc/usbsevseg.c:
drivers/usb/misc/usbsevseg.c:60:15: warning: no previous prototype for ‘my_memlen’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/usbsevseg.c')
-rw-r--r-- | drivers/usb/misc/usbsevseg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/usbsevseg.c b/drivers/usb/misc/usbsevseg.c index b2d82b937392..0a87d3eab9cd 100644 --- a/drivers/usb/misc/usbsevseg.c +++ b/drivers/usb/misc/usbsevseg.c | |||
@@ -57,7 +57,7 @@ struct usb_sevsegdev { | |||
57 | * if str commands are used, we would assume the end of string | 57 | * if str commands are used, we would assume the end of string |
58 | * so mem commands are used. | 58 | * so mem commands are used. |
59 | */ | 59 | */ |
60 | inline size_t my_memlen(const char *buf, size_t count) | 60 | static inline size_t my_memlen(const char *buf, size_t count) |
61 | { | 61 | { |
62 | if (count > 0 && buf[count-1] == '\n') | 62 | if (count > 0 && buf[count-1] == '\n') |
63 | return count - 1; | 63 | return count - 1; |