Commit 80ba3846 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent f5c8b960
...@@ -146,7 +146,7 @@ extern int topology_max_mnest; ...@@ -146,7 +146,7 @@ extern int topology_max_mnest;
* Returns the maximum nesting level supported by the cpu topology code. * Returns the maximum nesting level supported by the cpu topology code.
* The current maximum level is 4 which is the drawer level. * 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); return min(topology_max_mnest, 4);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment