Skip to content

Commit

Permalink
[ARM] 2978/1: nwfpe - clean up sparse errors
Browse files Browse the repository at this point in the history
Patch from Ben Dooks

The NWFPE is producing a number of errors from sparse
due to not defining a number of functions in the
header files.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ben Dooks authored and Russell King committed Oct 12, 2005
1 parent 737d0bb commit 6ec5e7f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
5 changes: 0 additions & 5 deletions arch/arm/nwfpe/fpa11.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
#include <linux/string.h>
#include <asm/system.h>

/* forward declarations */
unsigned int EmulateCPDO(const unsigned int);
unsigned int EmulateCPDT(const unsigned int);
unsigned int EmulateCPRT(const unsigned int);

/* Reset the FPA11 chip. Called to initialize and reset the emulator. */
static void resetFPA11(void)
{
Expand Down
20 changes: 20 additions & 0 deletions arch/arm/nwfpe/fpa11.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,24 @@ extern int8 SetRoundingMode(const unsigned int);
extern int8 SetRoundingPrecision(const unsigned int);
extern void nwfpe_init_fpa(union fp_state *fp);

extern unsigned int EmulateAll(unsigned int opcode);

extern unsigned int EmulateCPDT(const unsigned int opcode);
extern unsigned int EmulateCPDO(const unsigned int opcode);
extern unsigned int EmulateCPRT(const unsigned int opcode);

/* fpa11_cpdt.c */
extern unsigned int PerformLDF(const unsigned int opcode);
extern unsigned int PerformSTF(const unsigned int opcode);
extern unsigned int PerformLFM(const unsigned int opcode);
extern unsigned int PerformSFM(const unsigned int opcode);

/* single_cpdo.c */

extern unsigned int SingleCPDO(struct roundingData *roundData,
const unsigned int opcode, FPREG * rFd);
/* double_cpdo.c */
extern unsigned int DoubleCPDO(struct roundingData *roundData,
const unsigned int opcode, FPREG * rFd);

#endif
3 changes: 1 addition & 2 deletions arch/arm/nwfpe/fpa11_cprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@
#include "fpa11.inl"
#include "fpmodule.h"
#include "fpmodule.inl"
#include "softfloat.h"

#ifdef CONFIG_FPE_NWFPE_XP
extern flag floatx80_is_nan(floatx80);
#endif
extern flag float64_is_nan(float64);
extern flag float32_is_nan(float32);

unsigned int PerformFLT(const unsigned int opcode);
unsigned int PerformFIX(const unsigned int opcode);
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/nwfpe/fpopcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,4 +476,10 @@ static inline unsigned int getDestinationSize(const unsigned int opcode)
return (nRc);
}

extern unsigned int checkCondition(const unsigned int opcode,
const unsigned int ccodes);

extern const float64 float64Constant[];
extern const float32 float32Constant[];

#endif
3 changes: 3 additions & 0 deletions arch/arm/nwfpe/softfloat.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,7 @@ static inline flag float64_lt_nocheck(float64 a, float64 b)
return (a != b) && (aSign ^ (a < b));
}

extern flag float32_is_nan( float32 a );
extern flag float64_is_nan( float64 a );

#endif

0 comments on commit 6ec5e7f

Please sign in to comment.