forked from luck/tmp_suning_uos_patched
ARM: 8629/1: vfp: properly tag assembly function declarations in C code
This is good for consistency even if there is no difference in compiled code. LTO might rely on this eventually. No need to preserve the extern attribute as it is the default with function prototypes. Signed-off-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
7e5930aaef
commit
a85b2257a5
|
@ -155,8 +155,8 @@ struct vfp_single {
|
|||
u32 significand;
|
||||
};
|
||||
|
||||
extern s32 vfp_get_float(unsigned int reg);
|
||||
extern void vfp_put_float(s32 val, unsigned int reg);
|
||||
asmlinkage s32 vfp_get_float(unsigned int reg);
|
||||
asmlinkage void vfp_put_float(s32 val, unsigned int reg);
|
||||
|
||||
/*
|
||||
* VFP_SINGLE_MANTISSA_BITS - number of bits in the mantissa
|
||||
|
@ -270,8 +270,8 @@ struct vfp_double {
|
|||
#else
|
||||
#define VFP_REG_ZERO 16
|
||||
#endif
|
||||
extern u64 vfp_get_double(unsigned int reg);
|
||||
extern void vfp_put_double(u64 val, unsigned int reg);
|
||||
asmlinkage u64 vfp_get_double(unsigned int reg);
|
||||
asmlinkage void vfp_put_double(u64 val, unsigned int reg);
|
||||
|
||||
#define VFP_DOUBLE_MANTISSA_BITS (52)
|
||||
#define VFP_DOUBLE_EXPONENT_BITS (11)
|
||||
|
@ -377,4 +377,4 @@ struct op {
|
|||
u32 flags;
|
||||
};
|
||||
|
||||
extern void vfp_save_state(void *location, u32 fpexc);
|
||||
asmlinkage void vfp_save_state(void *location, u32 fpexc);
|
||||
|
|
|
@ -34,11 +34,11 @@
|
|||
/*
|
||||
* Our undef handlers (in entry.S)
|
||||
*/
|
||||
void vfp_testing_entry(void);
|
||||
void vfp_support_entry(void);
|
||||
void vfp_null_entry(void);
|
||||
asmlinkage void vfp_testing_entry(void);
|
||||
asmlinkage void vfp_support_entry(void);
|
||||
asmlinkage void vfp_null_entry(void);
|
||||
|
||||
void (*vfp_vector)(void) = vfp_null_entry;
|
||||
asmlinkage void (*vfp_vector)(void) = vfp_null_entry;
|
||||
|
||||
/*
|
||||
* Dual-use variable.
|
||||
|
|
Loading…
Reference in New Issue
Block a user