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

uwb: Staticize local symbols

These local symbols are used only in this file.
Fix the following sparse warnings:

drivers/uwb/drp-ie.c:30:5: warning: symbol 'uwb_rsv_reason_code' was not declared. Should it be static?
drivers/uwb/drp-ie.c:58:5: warning: symbol 'uwb_rsv_companion_reason_code' was not declared. Should it be static?

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
67e51ec4 3b716caf

+2 -2
+2 -2
drivers/uwb/drp-ie.c
··· 27 27 /* 28 28 * Return the reason code for a reservations's DRP IE. 29 29 */ 30 - int uwb_rsv_reason_code(struct uwb_rsv *rsv) 30 + static int uwb_rsv_reason_code(struct uwb_rsv *rsv) 31 31 { 32 32 static const int reason_codes[] = { 33 33 [UWB_RSV_STATE_O_INITIATED] = UWB_DRP_REASON_ACCEPTED, ··· 55 55 /* 56 56 * Return the reason code for a reservations's companion DRP IE . 57 57 */ 58 - int uwb_rsv_companion_reason_code(struct uwb_rsv *rsv) 58 + static int uwb_rsv_companion_reason_code(struct uwb_rsv *rsv) 59 59 { 60 60 static const int companion_reason_codes[] = { 61 61 [UWB_RSV_STATE_O_MOVE_EXPANDING] = UWB_DRP_REASON_ACCEPTED,