Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1226116 > unrolled thread

[PATCH] [SCSI] FlashPoint: fix build warning

Started bySudip Mukherjee <sudipm.mukherjee@gmail.com>
First post2015-09-16 16:10 +0200
Last post2015-09-16 17:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] [SCSI] FlashPoint: fix build warning Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-09-16 16:10 +0200
    Re: [PATCH] [SCSI] FlashPoint: fix build warning Khalid Aziz <khalid@gonehiking.org> - 2015-09-16 17:00 +0200

#1226116 — [PATCH] [SCSI] FlashPoint: fix build warning

FromSudip Mukherjee <sudipm.mukherjee@gmail.com>
Date2015-09-16 16:10 +0200
Subject[PATCH] [SCSI] FlashPoint: fix build warning
Message-ID<q9lzk-6Gb-25@gated-at.bofh.it>
We have been getting a warning about non ANSI function.
warning: non-ANSI function declaration of function 'FPT_SccbMgrTableInitAll'

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 drivers/scsi/FlashPoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c
index 5c74e4c..867b864 100644
--- a/drivers/scsi/FlashPoint.c
+++ b/drivers/scsi/FlashPoint.c
@@ -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;
 
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1226176

FromKhalid Aziz <khalid@gonehiking.org>
Date2015-09-16 17:00 +0200
Message-ID<q9mlI-7Bo-17@gated-at.bofh.it>
In reply to#1226116
On 09/16/2015 08:06 AM, Sudip Mukherjee wrote:
> We have been getting a warning about non ANSI function.
> warning: non-ANSI function declaration of function 'FPT_SccbMgrTableInitAll'
>
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> ---
>   drivers/scsi/FlashPoint.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c
> index 5c74e4c..867b864 100644
> --- a/drivers/scsi/FlashPoint.c
> +++ b/drivers/scsi/FlashPoint.c
> @@ -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;
>
>

Acked-by: Khalid Aziz <khalid@gonehiking.org>

James, please apply this to your SCSI tree.

--
Khalid
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web