aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-01 06:08:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-01 13:06:44 -0400
commitbc05a9c8774bca5ca95518a0ab3a335e45dcc26b (patch)
tree3c71384881a2f9ee6e3362e648aec0ada1109e93
parent11b86a84bc535a602fcf72ba6b3aa4eaa748764f (diff)
staging: unisys: visorbus: make two functions static
The functions sig_queue_offset and sig_data_offset are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'sig_queue_offset' was not declared. Should it be static? symbol 'sig_data_offset' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/visorbus/visorchannel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c
index 49d1f5f9ef1d..2a000fee3119 100644
--- a/drivers/staging/unisys/visorbus/visorchannel.c
+++ b/drivers/staging/unisys/visorbus/visorchannel.c
@@ -155,7 +155,7 @@ void *visorchannel_get_header(struct visorchannel *channel)
155 * Return offset of a specific SIGNAL_QUEUE_HEADER from the beginning of a 155 * Return offset of a specific SIGNAL_QUEUE_HEADER from the beginning of a
156 * channel header 156 * channel header
157 */ 157 */
158int sig_queue_offset(struct channel_header *chan_hdr, int q) 158static int sig_queue_offset(struct channel_header *chan_hdr, int q)
159{ 159{
160 return ((chan_hdr)->ch_space_offset + 160 return ((chan_hdr)->ch_space_offset +
161 ((q) * sizeof(struct signal_queue_header))); 161 ((q) * sizeof(struct signal_queue_header)));
@@ -165,8 +165,8 @@ int sig_queue_offset(struct channel_header *chan_hdr, int q)
165 * Return offset of a specific queue entry (data) from the beginning of a 165 * Return offset of a specific queue entry (data) from the beginning of a
166 * channel header 166 * channel header
167 */ 167 */
168int sig_data_offset(struct channel_header *chan_hdr, int q, 168static int sig_data_offset(struct channel_header *chan_hdr, int q,
169 struct signal_queue_header *sig_hdr, int slot) 169 struct signal_queue_header *sig_hdr, int slot)
170{ 170{
171 return (sig_queue_offset(chan_hdr, q) + sig_hdr->sig_base_offset + 171 return (sig_queue_offset(chan_hdr, q) + sig_hdr->sig_base_offset +
172 (slot * sig_hdr->signal_size)); 172 (slot * sig_hdr->signal_size));