drivers: fpga: fix function declaration without a prototype

As reported by clang 20.1, fix multiple of the following:
 drivers/fpga/ivm_core.c:593:23: error: a function declaration without
 a prototype is deprecated in all versions of C
 [-Werror,-Wstrict-prototypes]
  593 | long int ispVMDataSize()
      |                       ^
      |                        void

Also fix the following warning from checkpatch.pl:
 WARNING: Prefer 'long' over 'long int' as the int is unnecessary

Signed-off-by: Pieter Van Trappen <pieter.van.trappen@cern.ch>
Link: https://lore.kernel.org/r/20250708152455.1214487-6-vtpieter@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
Pieter Van Trappen 2025-07-08 17:24:50 +02:00 committed by Michal Simek
parent 354b2a29ec
commit ac48a75ac1

View File

@ -292,7 +292,7 @@ unsigned short g_usLVDSPairCount;
*/
static signed char ispVMDataCode(void);
static long int ispVMDataSize(void);
static long ispVMDataSize(void);
static void ispVMData(unsigned char *Data);
static signed char ispVMShift(signed char Code);
static signed char ispVMAmble(signed char Code);
@ -590,7 +590,7 @@ void ispVMFreeMem(void)
*
*/
long int ispVMDataSize()
long ispVMDataSize(void)
{
/* 09/11/07 NN added local variables initialization */
long int iSize = 0;
@ -615,7 +615,7 @@ long int ispVMDataSize()
*
*/
signed char ispVMCode()
signed char ispVMCode(void)
{
/* 09/11/07 NN added local variables initialization */
unsigned short iRepeatSize = 0;
@ -1114,7 +1114,7 @@ signed char ispVMCode()
*
*/
signed char ispVMDataCode()
signed char ispVMDataCode(void)
{
/* 09/11/07 NN added local variables initialization */
signed char cDataByte = 0;
@ -2476,7 +2476,7 @@ void ispVMStateMachine(signed char cNextJTAGState)
*
*/
void ispVMStart()
void ispVMStart(void)
{
#ifdef DEBUG
printf("// ISPVM EMBEDDED ADDED\n");
@ -2505,7 +2505,7 @@ void ispVMStart()
*
*/
void ispVMEnd()
void ispVMEnd(void)
{
#ifdef DEBUG
printf("// ISPVM EMBEDDED ADDED\n");