diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-18 20:49:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-18 20:49:50 -0500 |
commit | ff2ef9021ea16188dbb355707fd31f6cf1a42ef7 (patch) | |
tree | 86a6487e8e24d74cd7b2118e64ff66bd0ad65caf /drivers/net | |
parent | 39754f441055c861da403d4e9a67ed80f242a4b4 (diff) |
drivers/net/sfc: fix sparse warnings: Should it be static?
Impact: Include the header file. If CONFIG_SFC_MTD is not defined
then the functions 'efx_mtd_remove' and 'efx_mtd_rename' are defined
'static inline' with an empty function body in the header file, but
the the whole file mtd.c is not built in this case.
Fix this sparse warnings:
drivers/net/sfc/mtd.c:204:6: warning: symbol 'efx_mtd_remove' was not declared. Should it be static?
drivers/net/sfc/mtd.c:221:6: warning: symbol 'efx_mtd_rename' was not declared. Should it be static?
drivers/net/sfc/mtd.c:230:5: warning: symbol 'efx_mtd_probe' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/sfc/mtd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/sfc/mtd.c b/drivers/net/sfc/mtd.c index 665cafb88d6a..820c233c3ea0 100644 --- a/drivers/net/sfc/mtd.c +++ b/drivers/net/sfc/mtd.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #define EFX_DRIVER_NAME "sfc_mtd" | 15 | #define EFX_DRIVER_NAME "sfc_mtd" |
16 | #include "net_driver.h" | 16 | #include "net_driver.h" |
17 | #include "spi.h" | 17 | #include "spi.h" |
18 | #include "efx.h" | ||
18 | 19 | ||
19 | #define EFX_SPI_VERIFY_BUF_LEN 16 | 20 | #define EFX_SPI_VERIFY_BUF_LEN 16 |
20 | 21 | ||