diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2012-07-24 18:08:52 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-13 14:49:52 -0700 |
commit | e544986d7df1e748bd5d1b12739da4ed5ab23341 (patch) | |
tree | d5e3b28b9f3be7353cb22671ed395d8eeef366a9 /drivers | |
parent | 09877ed519d522cefd5ad612b1e89848497d5428 (diff) |
mtd: tegra-nor: treat warnings as errors
add compilation flag to treat warnings as errors
handle error of variable declaration
bug 949219
Change-Id: Iac05d4d0e4c4cbf39a534b7aee32c0dac57ae49d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118027
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/maps/Makefile | 1 | ||||
-rw-r--r-- | drivers/mtd/maps/tegra_nor.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/maps/Makefile b/drivers/mtd/maps/Makefile index bb5eef14a367..dbc68e0e87cb 100644 --- a/drivers/mtd/maps/Makefile +++ b/drivers/mtd/maps/Makefile @@ -60,4 +60,5 @@ obj-$(CONFIG_MTD_GPIO_ADDR) += gpio-addr-flash.o obj-$(CONFIG_MTD_BCM963XX) += bcm963xx-flash.o obj-$(CONFIG_MTD_LATCH_ADDR) += latch-addr-flash.o obj-$(CONFIG_MTD_LANTIQ) += lantiq-flash.o +CFLAGS_tegra_nor.o = -Werror obj-$(CONFIG_MTD_NOR_TEGRA) += tegra_nor.o diff --git a/drivers/mtd/maps/tegra_nor.c b/drivers/mtd/maps/tegra_nor.c index 505a2591f884..5e66daf6fb6a 100644 --- a/drivers/mtd/maps/tegra_nor.c +++ b/drivers/mtd/maps/tegra_nor.c @@ -139,7 +139,7 @@ static inline void snor_tegra_writel(struct tegra_nor_info *tnor, #define DRV_NAME "tegra-nor" -static const char * const part_probes[] = { "cmdlinepart", NULL }; +static const char *part_probes[] = { "cmdlinepart", NULL }; static int wait_for_dma_completion(struct tegra_nor_info *info) { |