]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
drivers: fpga: fix function declaration without a prototype
authorPieter Van Trappen <pieter.van.trappen@cern.ch>
Tue, 8 Jul 2025 15:24:50 +0000 (17:24 +0200)
committerMichal Simek <michal.simek@amd.com>
Thu, 24 Jul 2025 06:54:15 +0000 (08:54 +0200)
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>
drivers/fpga/ivm_core.c

index 4ab5dab250ad3fec4fb90f909eb6944fe66a9a47..37d5c5ec9ec570430369fcbc984afa4baedc7ec4 100644 (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");