]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Fix compiler warnings in mp.c
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Tue, 4 Oct 2022 05:34:54 +0000 (11:04 +0530)
committerMichal Simek <michal.simek@amd.com>
Fri, 7 Oct 2022 09:29:48 +0000 (11:29 +0200)
commitc9e28930e3d091b9ca51946abd7d395a34792ad8
tree22088de2fe0a3e2337e0fb8656d9ba528646bca4
parent5ccf97aeb003c0044ed8ae013cbb83754c2c3a15
arm64: zynqmp: Fix compiler warnings in mp.c

make W=1 generates the following warning in cpu_disable, cpu_status and
cpu_release functions.

arch/arm/mach-zynqmp/mp.c:166:16: warning: comparison of unsigned expression
in '>= 0' is always true [-Wtype-limits]
166 |         if (nr >= ZYNQMP_CORE_APU0 && nr <= ZYNQMP_CORE_APU3) {
    |                ^~

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20221004053454.25470-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/mach-zynqmp/mp.c