From: Heiko Carstens Date: Thu, 4 May 2017 11:06:58 +0000 (+0200) Subject: s390/topology: let topology_mnest_limit() return unsigned char X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80ba38469aa28bbcfc7a31e5b41adfc42120465e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git s390/topology: let topology_mnest_limit() return unsigned char Fixes a couple of compile warnings with gcc 7.1.0 : arch/s390/kernel/sysinfo.c:578:20: note: directive argument in the range [-2147483648, 4] sprintf(link_to, "15_1_%d", topology_mnest_limit()); Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/include/asm/sysinfo.h b/arch/s390/include/asm/sysinfo.h index 73bff45ced55..e784bed6ed7f 100644 --- a/arch/s390/include/asm/sysinfo.h +++ b/arch/s390/include/asm/sysinfo.h @@ -146,7 +146,7 @@ extern int topology_max_mnest; * Returns the maximum nesting level supported by the cpu topology code. * The current maximum level is 4 which is the drawer level. */ -static inline int topology_mnest_limit(void) +static inline unsigned char topology_mnest_limit(void) { return min(topology_max_mnest, 4); }