From 2fcbe3b8f7309d3263e58bf2e3e0125d0bacc8d9 Mon Sep 17 00:00:00 2001 From: Marc Schink Date: Sun, 29 Oct 2017 15:58:41 +0100 Subject: [PATCH] target: Constify parameter of is_armv7m() Change-Id: Ieea1b0dec88818e9e8d5c8c5d54aa8959556d77b Signed-off-by: Marc Schink Reviewed-on: http://openocd.zylin.com/4275 Tested-by: jenkins Reviewed-by: Christopher Head Reviewed-by: Andreas Fritiofson --- src/target/armv7m.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/armv7m.h b/src/target/armv7m.h index 284bb9ca..6f5d6f99 100644 --- a/src/target/armv7m.h +++ b/src/target/armv7m.h @@ -174,7 +174,7 @@ target_to_armv7m(struct target *target) return container_of(target->arch_info, struct armv7m_common, arm); } -static inline bool is_armv7m(struct armv7m_common *armv7m) +static inline bool is_armv7m(const struct armv7m_common *armv7m) { return armv7m->common_magic == ARMV7M_COMMON_MAGIC; } -- 2.39.5