Skip to content

Commit

Permalink
[ARM] nwfpe: fix 'floatx80_is_nan' sparse warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks committed May 15, 2009
1 parent ceec1c3 commit 3ea385f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/arm/nwfpe/fpa11_cprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#include "fpmodule.inl"
#include "softfloat.h"

#ifdef CONFIG_FPE_NWFPE_XP
extern flag floatx80_is_nan(floatx80);
#endif

unsigned int PerformFLT(const unsigned int opcode);
unsigned int PerformFIX(const unsigned int opcode);

Expand Down
2 changes: 2 additions & 0 deletions arch/arm/nwfpe/softfloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ char floatx80_le_quiet( floatx80, floatx80 );
char floatx80_lt_quiet( floatx80, floatx80 );
char floatx80_is_signaling_nan( floatx80 );

extern flag floatx80_is_nan(floatx80);

#endif

static inline flag extractFloat32Sign(float32 a)
Expand Down

0 comments on commit 3ea385f

Please sign in to comment.