openocd: fixed static definition

As the target_to_arm function is needed in the OpenOCD-Wrapper,
it can't be any longer static.

Change-Id: I7099b99f2f1433359567278be16e4d71e06f28a7
This commit is contained in:
Lars Rademacher
2013-10-21 01:33:49 +02:00
parent f24d9813b6
commit 74b4a04d8e

View File

@ -178,10 +178,10 @@ struct arm {
};
/** Convert target handle to generic ARM target state handle. */
static inline struct arm *target_to_arm(struct target *target)
inline struct arm *target_to_arm(struct target *target)
{
assert(target != NULL);
return target->arch_info;
return (struct arm*)(target->arch_info);
}
static inline bool is_arm(struct arm *arm)