Skip to content

Commit a85b225

Browse files
Nicolas PitreRussell King
authored andcommitted
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>
1 parent 7e5930a commit a85b225

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎arch/arm/vfp/vfp.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ struct vfp_single {
155155
u32 significand;
156156
};
157157

158-
extern s32 vfp_get_float(unsigned int reg);
159-
extern void vfp_put_float(s32 val, unsigned int reg);
158+
asmlinkage s32 vfp_get_float(unsigned int reg);
159+
asmlinkage void vfp_put_float(s32 val, unsigned int reg);
160160

161161
/*
162162
* VFP_SINGLE_MANTISSA_BITS - number of bits in the mantissa
@@ -270,8 +270,8 @@ struct vfp_double {
270270
#else
271271
#define VFP_REG_ZERO 16
272272
#endif
273-
extern u64 vfp_get_double(unsigned int reg);
274-
extern void vfp_put_double(u64 val, unsigned int reg);
273+
asmlinkage u64 vfp_get_double(unsigned int reg);
274+
asmlinkage void vfp_put_double(u64 val, unsigned int reg);
275275

276276
#define VFP_DOUBLE_MANTISSA_BITS (52)
277277
#define VFP_DOUBLE_EXPONENT_BITS (11)
@@ -377,4 +377,4 @@ struct op {
377377
u32 flags;
378378
};
379379

380-
extern void vfp_save_state(void *location, u32 fpexc);
380+
asmlinkage void vfp_save_state(void *location, u32 fpexc);

‎arch/arm/vfp/vfpmodule.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
/*
3535
* Our undef handlers (in entry.S)
3636
*/
37-
void vfp_testing_entry(void);
38-
void vfp_support_entry(void);
39-
void vfp_null_entry(void);
37+
asmlinkage void vfp_testing_entry(void);
38+
asmlinkage void vfp_support_entry(void);
39+
asmlinkage void vfp_null_entry(void);
4040

41-
void (*vfp_vector)(void) = vfp_null_entry;
41+
asmlinkage void (*vfp_vector)(void) = vfp_null_entry;
4242

4343
/*
4444
* Dual-use variable.

0 commit comments

Comments
 (0)