Skip to content

Commit 3ea385f

Browse files
author
Ben Dooks
committed
[ARM] nwfpe: fix 'floatx80_is_nan' sparse warning
The symbol 'floatx80_is_nan' prototype was defined locally in fpa11_cprt.c when it was built outside the file in softfloat-specialisze. Move this into softfloat.h to fix the following sparse warning: softfloat-specialize:276:6: warning: symbol 'floatx80_is_nan' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben-linux@fluff.org>
1 parent ceec1c3 commit 3ea385f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎arch/arm/nwfpe/fpa11_cprt.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
#include "fpmodule.inl"
2828
#include "softfloat.h"
2929

30-
#ifdef CONFIG_FPE_NWFPE_XP
31-
extern flag floatx80_is_nan(floatx80);
32-
#endif
33-
3430
unsigned int PerformFLT(const unsigned int opcode);
3531
unsigned int PerformFIX(const unsigned int opcode);
3632

‎arch/arm/nwfpe/softfloat.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ char floatx80_le_quiet( floatx80, floatx80 );
226226
char floatx80_lt_quiet( floatx80, floatx80 );
227227
char floatx80_is_signaling_nan( floatx80 );
228228

229+
extern flag floatx80_is_nan(floatx80);
230+
229231
#endif
230232

231233
static inline flag extractFloat32Sign(float32 a)

0 commit comments

Comments
 (0)