target: quark_x10xx: adding missing 'static' keyword
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Feb 2017 15:35:55 +0000 (17:35 +0200)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 13 Jan 2018 09:24:27 +0000 (09:24 +0000)
These symbols are only used within this C source file. They don't need
to be exposed to the outside.

Change-Id: Idb04550ecca7f12c3fdc8c6447eeeb871961add3
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Reviewed-on: http://openocd.zylin.com/4012
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/quark_x10xx.c

index 189f6cc657456380546ef109f293a903a30ee62d..b9a7c1656c3b8d07ea7a937f418790b86f05a3bf 100644 (file)
@@ -51,7 +51,7 @@
 #include "lakemont.h"
 #include "x86_32_common.h"
 
-int quark_x10xx_target_create(struct target *t, Jim_Interp *interp)
+static int quark_x10xx_target_create(struct target *t, Jim_Interp *interp)
 {
        struct x86_32_common *x86_32 = calloc(1, sizeof(struct x86_32_common));
        if (x86_32 == NULL) {
@@ -64,7 +64,8 @@ int quark_x10xx_target_create(struct target *t, Jim_Interp *interp)
        return ERROR_OK;
 }
 
-int quark_x10xx_init_target(struct command_context *cmd_ctx, struct target *t)
+static int quark_x10xx_init_target(struct command_context *cmd_ctx,
+               struct target *t)
 {
        return lakemont_init_target(cmd_ctx, t);
 }