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:
@ -178,10 +178,10 @@ struct arm {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/** Convert target handle to generic ARM target state handle. */
|
/** 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);
|
assert(target != NULL);
|
||||||
return target->arch_info;
|
return (struct arm*)(target->arch_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool is_arm(struct arm *arm)
|
static inline bool is_arm(struct arm *arm)
|
||||||
|
|||||||
Reference in New Issue
Block a user