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>
This commit is contained in:
parent
11b86a84bc
commit
bc05a9c877
|
@ -155,7 +155,7 @@ void *visorchannel_get_header(struct visorchannel *channel)
|
||||||
* Return offset of a specific SIGNAL_QUEUE_HEADER from the beginning of a
|
* Return offset of a specific SIGNAL_QUEUE_HEADER from the beginning of a
|
||||||
* channel header
|
* channel header
|
||||||
*/
|
*/
|
||||||
int sig_queue_offset(struct channel_header *chan_hdr, int q)
|
static int sig_queue_offset(struct channel_header *chan_hdr, int q)
|
||||||
{
|
{
|
||||||
return ((chan_hdr)->ch_space_offset +
|
return ((chan_hdr)->ch_space_offset +
|
||||||
((q) * sizeof(struct signal_queue_header)));
|
((q) * sizeof(struct signal_queue_header)));
|
||||||
|
@ -165,7 +165,7 @@ int sig_queue_offset(struct channel_header *chan_hdr, int q)
|
||||||
* Return offset of a specific queue entry (data) from the beginning of a
|
* Return offset of a specific queue entry (data) from the beginning of a
|
||||||
* channel header
|
* channel header
|
||||||
*/
|
*/
|
||||||
int sig_data_offset(struct channel_header *chan_hdr, int q,
|
static int sig_data_offset(struct channel_header *chan_hdr, int q,
|
||||||
struct signal_queue_header *sig_hdr, int slot)
|
struct signal_queue_header *sig_hdr, int slot)
|
||||||
{
|
{
|
||||||
return (sig_queue_offset(chan_hdr, q) + sig_hdr->sig_base_offset +
|
return (sig_queue_offset(chan_hdr, q) + sig_hdr->sig_base_offset +
|
||||||
|
|
Loading…
Reference in New Issue