Skip to content

Commit

Permalink
drivers/misc/sgi-gru: make functions static
Browse files Browse the repository at this point in the history
The functions gru_get_cb_exception_detail_str() and gru_abort() were
only called locally from that file. We can make them static.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Acked-by: Dimitri Sivanich <sivanich@sgi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sudip Mukherjee authored and Greg Kroah-Hartman committed Sep 21, 2015
1 parent a010d27 commit 1126bc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/misc/sgi-gru/grukservices.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ int gru_get_cb_exception_detail(void *cb,
return 0;
}

char *gru_get_cb_exception_detail_str(int ret, void *cb,
char *buf, int size)
static char *gru_get_cb_exception_detail_str(int ret, void *cb,
char *buf, int size)
{
struct gru_control_block_status *gen = (void *)cb;
struct control_block_extended_exc_detail excdet;
Expand Down Expand Up @@ -505,7 +505,7 @@ int gru_wait_proc(void *cb)
return ret;
}

void gru_abort(int ret, void *cb, char *str)
static void gru_abort(int ret, void *cb, char *str)
{
char buf[GRU_EXC_STR_SIZE];

Expand Down

0 comments on commit 1126bc2

Please sign in to comment.