summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-05-11 11:48:48 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-11 11:48:48 -0700
commitae4d972f07f97de9a368a33820a7fe38284498c2 (patch)
tree1623f306d0ce384e259cf36f2cab84dffbc9dcc2 /include/linux
parent24638027f19a0294d10dc9b49a2d21051030bc47 (diff)
parent7e061af6db97a51e9c89bcef7c2317b13cc79699 (diff)
Merge "Merge branch 'android-4.4@9796ea8' into branch 'msm-4.4'"
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/map.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h
index 366cf77953b5..806d0ab845e0 100644
--- a/include/linux/mtd/map.h
+++ b/include/linux/mtd/map.h
@@ -122,18 +122,13 @@
#endif
#ifdef CONFIG_MTD_MAP_BANK_WIDTH_32
-# ifdef map_bankwidth
-# undef map_bankwidth
-# define map_bankwidth(map) ((map)->bankwidth)
-# undef map_bankwidth_is_large
-# define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8)
-# undef map_words
-# define map_words(map) map_calc_words(map)
-# else
-# define map_bankwidth(map) 32
-# define map_bankwidth_is_large(map) (1)
-# define map_words(map) map_calc_words(map)
-# endif
+/* always use indirect access for 256-bit to preserve kernel stack */
+# undef map_bankwidth
+# define map_bankwidth(map) ((map)->bankwidth)
+# undef map_bankwidth_is_large
+# define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8)
+# undef map_words
+# define map_words(map) map_calc_words(map)
#define map_bankwidth_is_32(map) (map_bankwidth(map) == 32)
#undef MAX_MAP_BANKWIDTH
#define MAX_MAP_BANKWIDTH 32