Skip to content

Commit

Permalink
[S390] sparse: fix sparse warnings in math-emu
Browse files Browse the repository at this point in the history
Fix three sparse warnings in math-emu / sysinfo:

arch/s390/kernel/sysinfo.c:448:17: error: return expression in void function
arch/s390/kernel/sysinfo.c:445:25: warning: shift too big (32) for type unsigned int
arch/s390/kernel/sysinfo.c:445:25: warning: shift too big (32) for type unsigned int

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Oct 30, 2011
1 parent 638ad34 commit 5b479a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/s390/include/asm/sfp-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ extern unsigned long __udiv_qrnnd (unsigned int *, unsigned int,

#define UDIV_NEEDS_NORMALIZATION 0

#define abort() return 0
#define abort() BUG()

#define __BYTE_ORDER __BIG_ENDIAN
2 changes: 1 addition & 1 deletion arch/s390/kernel/sysinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ void s390_adjust_jiffies(void)
*/
FP_UNPACK_SP(SA, &fmil);
if ((info->capability >> 23) == 0)
FP_FROM_INT_S(SB, info->capability, 32, int);
FP_FROM_INT_S(SB, (long) info->capability, 64, long);
else
FP_UNPACK_SP(SB, &info->capability);
FP_DIV_S(SR, SA, SB);
Expand Down

0 comments on commit 5b479a7

Please sign in to comment.