target/breakpoints: make internal functions static 88/4888/2
authorTomas Vanek <vanekt@fbl.cz>
Thu, 7 Feb 2019 13:17:03 +0000 (14:17 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Tue, 12 Mar 2019 06:43:49 +0000 (06:43 +0000)
While on it add two missing new lines.

Change-Id: I0d54740479bc462b734f91686f0931824796b598
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4888
Tested-by: jenkins
Reviewed-by: Marc Schink <openocd-dev@marcschink.de>
src/target/breakpoints.c

index 94e8a82..7ad1942 100644 (file)
@@ -41,7 +41,7 @@ static const char * const watchpoint_rw_strings[] = {
 /* monotonic counter/id-number for breakpoints and watch points */
 static int bpwp_unique_id;
 
-int breakpoint_add_internal(struct target *target,
+static int breakpoint_add_internal(struct target *target,
        target_addr_t address,
        uint32_t length,
        enum breakpoint_type type)
@@ -106,7 +106,7 @@ fail:
        return ERROR_OK;
 }
 
-int context_breakpoint_add_internal(struct target *target,
+static int context_breakpoint_add_internal(struct target *target,
        uint32_t asid,
        uint32_t length,
        enum breakpoint_type type)
@@ -158,7 +158,7 @@ int context_breakpoint_add_internal(struct target *target,
        return ERROR_OK;
 }
 
-int hybrid_breakpoint_add_internal(struct target *target,
+static int hybrid_breakpoint_add_internal(struct target *target,
        target_addr_t address,
        uint32_t asid,
        uint32_t length,
@@ -241,6 +241,7 @@ int breakpoint_add(struct target *target,
        } else
                return breakpoint_add_internal(target, address, length, type);
 }
+
 int context_breakpoint_add(struct target *target,
        uint32_t asid,
        uint32_t length,
@@ -262,6 +263,7 @@ int context_breakpoint_add(struct target *target,
        } else
                return context_breakpoint_add_internal(target, asid, length, type);
 }
+
 int hybrid_breakpoint_add(struct target *target,
        target_addr_t address,
        uint32_t asid,
@@ -310,7 +312,7 @@ static void breakpoint_free(struct target *target, struct breakpoint *breakpoint
        free(breakpoint);
 }
 
-int breakpoint_remove_internal(struct target *target, target_addr_t address)
+static int breakpoint_remove_internal(struct target *target, target_addr_t address)
 {
        struct breakpoint *breakpoint = target->breakpoints;