target: convert 'unsigned' to 'unsigned int'
Conversion done with checkpatch --fix-inplace -types UNSPECIFIED_INT Ignore the cast as they could be better addressed. Fix only minor additional checkpatch issue (spacing and line length). Use Checkpatch-ignore below for the function pointers in the file 'armv7a_cache_l2x.h' that do not assign the identifier names to the function arguments. Most of these struct are unused and should be fixed or dropped. Checkpatch-ignore: FUNCTION_ARGUMENTS Change-Id: I8f27e68eb3502e431c1ba801b362358105f9f2dc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8480 Tested-by: jenkins Reviewed-by: zapb <dev@zapb.de>
This commit is contained in:
@@ -220,10 +220,10 @@ static const struct reg_arch_type etm_scan6_type = {
|
||||
/* Look up register by ID ... most ETM instances only
|
||||
* support a subset of the possible registers.
|
||||
*/
|
||||
static struct reg *etm_reg_lookup(struct etm_context *etm_ctx, unsigned id)
|
||||
static struct reg *etm_reg_lookup(struct etm_context *etm_ctx, unsigned int id)
|
||||
{
|
||||
struct reg_cache *cache = etm_ctx->reg_cache;
|
||||
unsigned i;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < cache->num_regs; i++) {
|
||||
struct etm_reg *reg = cache->reg_list[i].arch_info;
|
||||
@@ -238,9 +238,9 @@ static struct reg *etm_reg_lookup(struct etm_context *etm_ctx, unsigned id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void etm_reg_add(unsigned bcd_vers, struct arm_jtag *jtag_info,
|
||||
static void etm_reg_add(unsigned int bcd_vers, struct arm_jtag *jtag_info,
|
||||
struct reg_cache *cache, struct etm_reg *ereg,
|
||||
const struct etm_reg_info *r, unsigned nreg)
|
||||
const struct etm_reg_info *r, unsigned int nreg)
|
||||
{
|
||||
struct reg *reg = cache->reg_list;
|
||||
|
||||
@@ -281,7 +281,7 @@ struct reg_cache *etm_build_reg_cache(struct target *target,
|
||||
struct reg_cache *reg_cache = malloc(sizeof(struct reg_cache));
|
||||
struct reg *reg_list = NULL;
|
||||
struct etm_reg *arch_info = NULL;
|
||||
unsigned bcd_vers, config;
|
||||
unsigned int bcd_vers, config;
|
||||
|
||||
/* the actual registers are kept in two arrays */
|
||||
reg_list = calloc(128, sizeof(struct reg));
|
||||
@@ -1590,7 +1590,7 @@ COMMAND_HANDLER(handle_etm_status_command)
|
||||
if (!reg)
|
||||
return ERROR_FAIL;
|
||||
if (etm_get_reg(reg) == ERROR_OK) {
|
||||
unsigned s = buf_get_u32(reg->value, 0, reg->size);
|
||||
unsigned int s = buf_get_u32(reg->value, 0, reg->size);
|
||||
|
||||
command_print(CMD, "etm: %s%s%s%s",
|
||||
/* bit(1) == progbit */
|
||||
|
||||
Reference in New Issue
Block a user