mtd: tegra-nor: treat warnings as errors
Deepak Nibade [Tue, 24 Jul 2012 12:38:52 +0000 (17:38 +0530)]
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>

drivers/mtd/maps/Makefile
drivers/mtd/maps/tegra_nor.c

index bb5eef1..dbc68e0 100644 (file)
@@ -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
index 505a259..5e66daf 100644 (file)
@@ -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)
 {