Commit 9b423934 authored by Harvey Harrison's avatar Harvey Harrison Committed by Ingo Molnar

x86: sparse errors from string_32.h

include/asm/string_32.h:216:26: warning: cast truncates bits from constant value (cccccccc becomes cc)
include/asm/string_32.h:219:27: warning: cast truncates bits from constant value (cccccccc becomes cccc)
include/asm/string_32.h:222:27: warning: cast truncates bits from constant value (cccccccc becomes cccc)
include/asm/string_32.h:223:30: warning: cast truncates bits from constant value (cccccccc becomes cc)
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 9a6b344e
...@@ -213,14 +213,14 @@ static __always_inline void * __constant_c_and_count_memset(void * s, unsigned l ...@@ -213,14 +213,14 @@ static __always_inline void * __constant_c_and_count_memset(void * s, unsigned l
case 0: case 0:
return s; return s;
case 1: case 1:
*(unsigned char *)s = pattern; *(unsigned char *)s = pattern & 0xff;
return s; return s;
case 2: case 2:
*(unsigned short *)s = pattern; *(unsigned short *)s = pattern & 0xffff;
return s; return s;
case 3: case 3:
*(unsigned short *)s = pattern; *(unsigned short *)s = pattern & 0xffff;
*(2+(unsigned char *)s) = pattern; *(2+(unsigned char *)s) = pattern & 0xff;
return s; return s;
case 4: case 4:
*(unsigned long *)s = pattern; *(unsigned long *)s = pattern;
......
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