This is an automated email from Gerrit. "Evgeniy Naydanov <[email protected]>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9490
-- gerrit commit 3532d6bc93e018c71a5db2ea7ab83b7dd3cb437c Author: Evgeniy Naydanov <[email protected]> Date: Wed Feb 25 20:12:32 2026 +0300 target: make `target_set_examined()` private There is no need to manage the state externally. Change-Id: Id202d06d62cfc733c8c69fc085fac80181689452 Signed-off-by: Evgeniy Naydanov <[email protected]> diff --git a/src/target/target.c b/src/target/target.c index 72ecc4e00b..f4641854f2 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -656,6 +656,12 @@ static int no_mmu(struct target *target, bool *enabled) return ERROR_OK; } +static void target_set_examined(struct target *target) +{ + target->active_polled = true; + target->examined = true; +} + /** * Reset the @c examined flag for the given target. */ diff --git a/src/target/target.h b/src/target/target.h index 84b4399aee..1d466532dd 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -129,8 +129,7 @@ struct target { * Indicates whether this target has been examined, * remembers the last result of examine call. * - * Do @b not access this field directly, use target_was_examined() - * or target_set_examined(). + * Do @b not access this field directly, use target_was_examined(). */ bool examined; /** @@ -450,16 +449,6 @@ static inline bool target_active_polled(const struct target *target) return target->active_polled; } -/** Sets the @c examined and @c active_polled flags for the given target. - * Not necessary to call it in target->type->examine() methods, - * the target infrastructure calls it after successful return - * from this method. */ -static inline void target_set_examined(struct target *target) -{ - target->active_polled = true; - target->examined = true; -} - /** * Add the @a breakpoint for @a target. * --
