Skip to content

Commit

Permalink
target: use 'unsigned int' for smp group
Browse files Browse the repository at this point in the history
Change the type to 'struct target::smp' and to the initialization
variable 'smp_group'.

Change-Id: I5f5a30a796aaf4e0014a38e81abdf4fb4afbdf48
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8478
Reviewed-by: zapb <dev@zapb.de>
Tested-by: jenkins
  • Loading branch information
borneoa committed Oct 5, 2024
1 parent bf1cf4a commit 50586c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/target/target.c
Original file line number Diff line number Diff line change
Expand Up @@ -6007,7 +6007,7 @@ static int get_target_with_common_rtos_type(struct command_invocation *cmd,

COMMAND_HANDLER(handle_target_smp)
{
static int smp_group = 1;
static unsigned int smp_group = 1;

if (CMD_ARGC == 0) {
LOG_DEBUG("Empty SMP target");
Expand Down
2 changes: 1 addition & 1 deletion src/target/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ struct target {
bool rtos_auto_detect; /* A flag that indicates that the RTOS has been specified as "auto"
* and must be detected when symbols are offered */
struct backoff_timer backoff;
int smp; /* Unique non-zero number for each SMP group */
unsigned int smp; /* Unique non-zero number for each SMP group */
struct list_head *smp_targets; /* list all targets in this smp group/cluster
* The head of the list is shared between the
* cluster, thus here there is a pointer */
Expand Down

0 comments on commit 50586c9

Please sign in to comment.