]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/misc/sgi-gru: make functions static
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 3 Sep 2015 14:50:48 +0000 (20:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 02:27:59 +0000 (19:27 -0700)
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>
drivers/misc/sgi-gru/grukservices.c

index 913de07e577c752fc338ce8b30b39a58290763d0..490b79a27c882cec8b569fc213b4339e0bd604b6 100644 (file)
@@ -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;
@@ -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];