Re: [PATCH] x86: math-emu: Fix function cast warning

2021-03-22 Thread Ingo Molnar
* Arnd Bergmann wrote: > From: Arnd Bergmann > > Building with 'make W=1', gcc points out that casting between > incompatible function types can be dangerous: > > arch/x86/math-emu/fpu_trig.c:1638:60: error: cast between incompatible > function types from ‘int (*)(FPU_REG *, u_char)’ {aka ‘

[PATCH] x86: math-emu: Fix function cast warning

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann Building with 'make W=1', gcc points out that casting between incompatible function types can be dangerous: arch/x86/math-emu/fpu_trig.c:1638:60: error: cast between incompatible function types from ‘int (*)(FPU_REG *, u_char)’ {aka ‘int (*)(struct fpu__reg *, unsigned char