mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
bulk: Do not declare function prototypes using 'extern' keyword
By default, C function prototypes declared in headers are visible, so there is no need to declare them as 'extern' functions. Remove this redundancy in a single bulk commit; do not modify: - meson.build (used to check function availability at runtime) - pc-bios/ - libdecnumber/ - tests/ - *.c Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20230605175647.88395-5-philmd@linaro.org>
This commit is contained in:
parent
a7041adce0
commit
f703f1ef99
20 changed files with 79 additions and 86 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "sysemu/cpus.h"
|
||||
|
||||
extern void accel_blocker_init(void);
|
||||
void accel_blocker_init(void);
|
||||
|
||||
/*
|
||||
* accel_{cpu_}ioctl_begin/end:
|
||||
|
@ -26,10 +26,10 @@ extern void accel_blocker_init(void);
|
|||
* called, preventing new ioctls to run. They will continue only after
|
||||
* accel_ioctl_inibith_end().
|
||||
*/
|
||||
extern void accel_ioctl_begin(void);
|
||||
extern void accel_ioctl_end(void);
|
||||
extern void accel_cpu_ioctl_begin(CPUState *cpu);
|
||||
extern void accel_cpu_ioctl_end(CPUState *cpu);
|
||||
void accel_ioctl_begin(void);
|
||||
void accel_ioctl_end(void);
|
||||
void accel_cpu_ioctl_begin(CPUState *cpu);
|
||||
void accel_cpu_ioctl_end(CPUState *cpu);
|
||||
|
||||
/*
|
||||
* accel_ioctl_inhibit_begin: start critical section
|
||||
|
@ -42,7 +42,7 @@ extern void accel_cpu_ioctl_end(CPUState *cpu);
|
|||
* This allows the caller to access shared data or perform operations without
|
||||
* worrying of concurrent vcpus accesses.
|
||||
*/
|
||||
extern void accel_ioctl_inhibit_begin(void);
|
||||
void accel_ioctl_inhibit_begin(void);
|
||||
|
||||
/*
|
||||
* accel_ioctl_inhibit_end: end critical section started by
|
||||
|
@ -50,6 +50,6 @@ extern void accel_ioctl_inhibit_begin(void);
|
|||
*
|
||||
* This function allows blocked accel_{cpu_}ioctl_begin() to continue.
|
||||
*/
|
||||
extern void accel_ioctl_inhibit_end(void);
|
||||
void accel_ioctl_inhibit_end(void);
|
||||
|
||||
#endif /* ACCEL_BLOCKER_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue