scsi: ncr5380: Avoid a compiler warning
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 27 Aug 2016 02:30:00 +0000 (12:30 +1000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 31 Aug 2016 04:25:18 +0000 (00:25 -0400)
commit01f17641c4c6e7468bbd3d3f382c151db01dc0e8
tree54ecd7e68266177d4303be2224e09268765e24c2
parent35d0acbaee5bb29e29d0b39e2853ec68d38806b8
scsi: ncr5380: Avoid a compiler warning

With commit 3a0f64bfa907 ("mac_scsi: Fix pseudo DMA implementation")
some versions of gcc now warn:

In file included from drivers/scsi/mac_scsi.c:335:
drivers/scsi/NCR5380.h:295: warning: `NCR5380_poll_politely' declared inline after being called
drivers/scsi/NCR5380.h:295: warning: previous declaration of `NCR5380_poll_politely' was here

Avoid this by defining NCR5380_poll_politely() in NCR5380.h.

[mkp: checkpatch warnings]

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/NCR5380.h