diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2012-07-25 10:42:21 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-07-30 20:46:48 -0700 |
commit | c6f718ec7dea294d4cbad7b20e45da9692410601 (patch) | |
tree | 86c2b2be48f7f7dff07568233f04cc07919e0100 /drivers | |
parent | 074b6813735ca8bead4c91720a37a3c8aed6766f (diff) |
spi: tegra: enable warning as error flag
-enable warnings as errors compilation flag
-handle error of uninitialised variable
bug 949219
Change-Id: I9e754b1cbf086f99433d47aef793a8635185a25e
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118239
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Tested-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/Makefile | 2 | ||||
-rw-r--r-- | drivers/spi/spi_slave_tegra.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index 430f8200108a..831e6eabee64 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -53,7 +53,9 @@ obj-$(CONFIG_SPI_SH) += spi-sh.o obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o obj-$(CONFIG_SPI_STMP3XXX) += spi-stmp.o +CFLAGS_spi-tegra.o = -Werror obj-$(CONFIG_SPI_TEGRA) += spi-tegra.o +CFLAGS_spi_slave_tegra.o = -Werror obj-$(CONFIG_SPI_SLAVE_TEGRA) += spi_slave_tegra.o obj-$(CONFIG_SPI_TI_SSP) += spi-ti-ssp.o obj-$(CONFIG_SPI_TLE62X0) += spi-tle62x0.o diff --git a/drivers/spi/spi_slave_tegra.c b/drivers/spi/spi_slave_tegra.c index 7ee53730e736..e6bce127cae3 100644 --- a/drivers/spi/spi_slave_tegra.c +++ b/drivers/spi/spi_slave_tegra.c @@ -417,7 +417,7 @@ static unsigned int spi_tegra_read_rx_fifo_to_client_rxbuf( u8 *rx_buf = (u8 *)t->rx_buf + tspi->cur_rx_pos; unsigned i, count; unsigned long x; - unsigned int read_words; + unsigned int read_words = 0; unsigned len; fifo_status = spi_tegra_readl(tspi, SLINK_STATUS2); |