diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-12-17 06:08:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-29 02:35:09 -0500 |
commit | dfea4aa2261d64effbcc1992a59301270478c49a (patch) | |
tree | 6f39734788288318189334c82c568841a19904be /drivers/ide | |
parent | 0e47c969c65e213421450c31043353ebe3c67e0c (diff) |
drivers: ide: Include appropriate header file in ide-cd_verbose.c
Include appropriate header file ide-cd.h in ide-cd_verbose.c because
function ide_cd_log_error() has its prototype declaration in ide-cd.h.
Also, include linux/ide.h because it contains certain declarations
necessary for including ide-cd.h.
This eliminates the following warnings in ide-cd_verbose.c:
drivers/ide/ide-cd_verbose.c:251:6: warning: no previous prototype for ‘ide_cd_log_error’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-cd_verbose.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-cd_verbose.c b/drivers/ide/ide-cd_verbose.c index 6490a2dea96b..f079ca2f260b 100644 --- a/drivers/ide/ide-cd_verbose.c +++ b/drivers/ide/ide-cd_verbose.c | |||
@@ -9,7 +9,9 @@ | |||
9 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
10 | #include <linux/blkdev.h> | 10 | #include <linux/blkdev.h> |
11 | #include <linux/cdrom.h> | 11 | #include <linux/cdrom.h> |
12 | #include <linux/ide.h> | ||
12 | #include <scsi/scsi.h> | 13 | #include <scsi/scsi.h> |
14 | #include "ide-cd.h" | ||
13 | 15 | ||
14 | #ifndef CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS | 16 | #ifndef CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS |
15 | void ide_cd_log_error(const char *name, struct request *failed_command, | 17 | void ide_cd_log_error(const char *name, struct request *failed_command, |