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:
@@ -74,9 +74,9 @@ const int armv7m_msp_reg_map[ARMV7M_NUM_CORE_REGS] = {
|
||||
* doesn't include basepri or faultmask registers.
|
||||
*/
|
||||
static const struct {
|
||||
unsigned id;
|
||||
unsigned int id;
|
||||
const char *name;
|
||||
unsigned bits;
|
||||
unsigned int bits;
|
||||
enum reg_type type;
|
||||
const char *group;
|
||||
const char *feature;
|
||||
@@ -530,7 +530,7 @@ int armv7m_start_algorithm(struct target *target,
|
||||
}
|
||||
|
||||
/* Store all non-debug execution registers to armv7m_algorithm_info context */
|
||||
for (unsigned i = 0; i < armv7m->arm.core_cache->num_regs; i++) {
|
||||
for (unsigned int i = 0; i < armv7m->arm.core_cache->num_regs; i++) {
|
||||
struct reg *reg = &armv7m->arm.core_cache->reg_list[i];
|
||||
if (!reg->exist)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user