stm32mp1: Fix warnings when compiling with W=1
This patch solves the following warnings:
arch/arm/mach-stm32mp/cpu.c:378:16: warning: comparison between signed
and unsigned integer expressions [-Wsign-compare]
   if (instance > ARRAY_SIZE(serial_addr))
                ^
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
			
			
This commit is contained in:
		
							parent
							
								
									9421781466
								
							
						
					
					
						commit
						e609e131c1
					
				| 
						 | 
					@ -361,7 +361,7 @@ static void setup_boot_mode(void)
 | 
				
			||||||
	u32 boot_ctx = readl(TAMP_BOOT_CONTEXT);
 | 
						u32 boot_ctx = readl(TAMP_BOOT_CONTEXT);
 | 
				
			||||||
	u32 boot_mode =
 | 
						u32 boot_mode =
 | 
				
			||||||
		(boot_ctx & TAMP_BOOT_MODE_MASK) >> TAMP_BOOT_MODE_SHIFT;
 | 
							(boot_ctx & TAMP_BOOT_MODE_MASK) >> TAMP_BOOT_MODE_SHIFT;
 | 
				
			||||||
	int instance = (boot_mode & TAMP_BOOT_INSTANCE_MASK) - 1;
 | 
						unsigned int instance = (boot_mode & TAMP_BOOT_INSTANCE_MASK) - 1;
 | 
				
			||||||
	u32 forced_mode = (boot_ctx & TAMP_BOOT_FORCED_MASK);
 | 
						u32 forced_mode = (boot_ctx & TAMP_BOOT_FORCED_MASK);
 | 
				
			||||||
	struct udevice *dev;
 | 
						struct udevice *dev;
 | 
				
			||||||
	int alias;
 | 
						int alias;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue