diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-05-04 13:06:58 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-05-09 10:43:26 +0200 |
commit | 80ba38469aa28bbcfc7a31e5b41adfc42120465e (patch) | |
tree | b42c85fa4fb2f1f5e3e35229672e93e577368af4 /arch/s390/include/asm/sysinfo.h | |
parent | f5c8b9601036869e162cb278aaafbf003dc4e5a0 (diff) | |
download | linux-80ba38469aa28bbcfc7a31e5b41adfc42120465e.tar.gz linux-80ba38469aa28bbcfc7a31e5b41adfc42120465e.tar.bz2 linux-80ba38469aa28bbcfc7a31e5b41adfc42120465e.zip |
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 <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/sysinfo.h')
-rw-r--r-- | arch/s390/include/asm/sysinfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |