Skip to contentSkip to conversation

FlashPoint: fix build warning

PATCH In review Sudip Mukherjee 2 participants 3 messages Sep 16, 2015 – Oct 2, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FlashPoint: fix build warning

We have been getting a warning about non ANSI function.
warning: non-ANSI function declaration of function 'FPT_SccbMgrTableInitAll'

---
 drivers/scsi/FlashPoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/FlashPoint.c +1 -1
index 5c74e4c..867b864 100644
@@ -2136,7 +2136,7 @@ static unsigned char FPT_SccbMgr_bad_isr(u32 p_port, unsigned char p_card,
  *
  *---------------------------------------------------------------------*/
 
-static void FPT_SccbMgrTableInitAll()
+static void FPT_SccbMgrTableInitAll(void)
 {
 	unsigned char thisCard;
 
Signature · 1 line
1.9.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Sudip Mukherjee

We have been getting a warning about non ANSI function.
warning: non-ANSI function declaration of function 'FPT_SccbMgrTableInitAll'

---
  drivers/scsi/FlashPoint.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/FlashPoint.c +0 -0
index 5c74e4c..867b864 100644

drivers/scsi/FlashPoint.c static unsigned char FPT_SccbMgr_bad_isr(u32 p_port, unsigned char p_card, · line 2142

Quoted 8 lines
drivers/scsi/FlashPoint.c +1 -1
@@ -2136,7 +2136,7 @@ static unsigned char FPT_SccbMgr_bad_isr(u32 p_port, unsigned char p_card,
   *
   *---------------------------------------------------------------------*/
 
-static void FPT_SccbMgrTableInitAll()
+static void FPT_SccbMgrTableInitAll(void)
  {
  	unsigned char thisCard;
 

James, please apply this to your SCSI tree.

--
Khalid

#2 lore raw
Quoted 26 lines · Khalid Aziz
Quoted 14 lines · Sudip Mukherjee

We have been getting a warning about non ANSI function.
warning: non-ANSI function declaration of function 'FPT_SccbMgrTableInitAll'

---
 drivers/scsi/FlashPoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/FlashPoint.c +0 -0
index 5c74e4c..867b864 100644

drivers/scsi/FlashPoint.c static unsigned char FPT_SccbMgr_bad_isr(u32 p_port, unsigned char p_card, · line 2142

Quoted 8 lines
drivers/scsi/FlashPoint.c +1 -1
@@ -2136,7 +2136,7 @@ static unsigned char FPT_SccbMgr_bad_isr(u32 p_port, unsigned char p_card,
  *
  *---------------------------------------------------------------------*/
 
-static void FPT_SccbMgrTableInitAll()
+static void FPT_SccbMgrTableInitAll(void)
 {
 	unsigned char thisCard;
 
Quoted 1 line

James, please apply this to your SCSI tree.

Hi James,
A gentle reminder that this is waiting to be applied.

regards
sudip