Skip to content

Commit 80ba384

Browse files
heicarstMartin Schwidefsky
authored andcommitted
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>
1 parent f5c8b96 commit 80ba384

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/s390/include/asm/sysinfo.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ extern int topology_max_mnest;
146146
* Returns the maximum nesting level supported by the cpu topology code.
147147
* The current maximum level is 4 which is the drawer level.
148148
*/
149-
static inline int topology_mnest_limit(void)
149+
static inline unsigned char topology_mnest_limit(void)
150150
{
151151
return min(topology_max_mnest, 4);
152152
}

0 commit comments

Comments
 (0)