diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h index 366cf77953b55bc737fcded0179df083138b3dbf..58f3ba709adecfb5da07e0b28a399218503763a6 100644 --- a/include/linux/mtd/map.h +++ b/include/linux/mtd/map.h @@ -142,7 +142,9 @@ #endif #ifndef map_bankwidth +#ifdef CONFIG_MTD #warning "No CONFIG_MTD_MAP_BANK_WIDTH_xx selected. No NOR chip support can work" +#endif static inline int map_bankwidth(void *map) { BUG();