coding style: add arguments to function prototypes
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 6 May 2019 22:26:46 +0000 (00:26 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Wed, 8 Jul 2020 21:08:19 +0000 (22:08 +0100)
commit996ff5bcfc402227ac2f28601e931f30b62e393f
tree23d1ef7fbd9839684c8942a20691cb1dd251ed6e
parente2315ccffd31757785130c3bf549a87d9be1689a
coding style: add arguments to function prototypes

Issue identified by checkpatch script from Linux kernel v5.1 using
the command

find src/ -type f -exec ./tools/scripts/checkpatch.pl \
-q --types FUNCTION_ARGUMENTS -f {} \;

This patch also fixes an incorrect function prototype in zy1000.c.
ZY1000 minidriver implementation overrides the function
arm11_run_instr_data_to_core_noack_inner(), but the prototype is
not the same as in src/target/arm11_dbgtap.c and to avoid compile
error it was changed also the prototype of the called function
arm11_run_instr_data_to_core_noack_inner_default().

Change-Id: I476cda8cdb0e1e280795b3b43ca95c40d09e4a3d
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5630
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/jtag.h
src/jtag/zy1000/zy1000.c
src/server/server.h
src/target/arm_dpm.h
src/target/armv8_dpm.h
src/target/riscv/riscv.h