]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
next-4.4/ is now merged
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 May 2017 22:42:52 +0000 (15:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 May 2017 22:42:52 +0000 (15:42 -0700)
next-4.4/alsa-ppc-awacs-shut-up-maybe-uninitialized-warning.patch [deleted file]
next-4.4/drbd-avoid-redefinition-of-bits_per_page.patch [deleted file]
next-4.4/mtd-avoid-stack-overflow-in-mtd-cfi-code.patch [deleted file]
next-4.4/net-tg3-avoid-uninitialized-variable-warning.patch [deleted file]

diff --git a/next-4.4/alsa-ppc-awacs-shut-up-maybe-uninitialized-warning.patch b/next-4.4/alsa-ppc-awacs-shut-up-maybe-uninitialized-warning.patch
deleted file mode 100644 (file)
index a551ca1..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-From b268c34e5ee92a4cc3099b0caaf26e6bfbdf0f18 Mon Sep 17 00:00:00 2001
-From: Arnd Bergmann <arnd@arndb.de>
-Date: Mon, 4 Jul 2016 17:07:45 +0200
-Subject: ALSA: ppc/awacs: shut up maybe-uninitialized warning
-
-From: Arnd Bergmann <arnd@arndb.de>
-
-commit b268c34e5ee92a4cc3099b0caaf26e6bfbdf0f18 upstream.
-
-The awacs sound driver produces a false-positive warning in ppc64_defconfig:
-
-sound/ppc/awacs.c: In function 'snd_pmac_awacs_init':
-include/sound/control.h:219:9: warning: 'master_vol' may be used uninitialized in this function [-Wmaybe-uninitialized]
-
-I haven't come up with a good way to rewrite the code to avoid the
-warning, so here is a bad one: I initialize the variable before
-the conditionall initialization so gcc no longer has to worry about
-it.
-
-Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-Signed-off-by: Takashi Iwai <tiwai@suse.de>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
-diff --git a/sound/ppc/awacs.c b/sound/ppc/awacs.c
-index 09da7b52bc2e..1468e4b7bf93 100644
---- a/sound/ppc/awacs.c
-+++ b/sound/ppc/awacs.c
-@@ -991,6 +991,7 @@ snd_pmac_awacs_init(struct snd_pmac *chip)
-               if (err < 0)
-                       return err;
-       }
-+      master_vol = NULL;
-       if (pm7500)
-               err = build_mixers(chip,
-                                  ARRAY_SIZE(snd_pmac_awacs_mixers_pmac7500),
diff --git a/next-4.4/drbd-avoid-redefinition-of-bits_per_page.patch b/next-4.4/drbd-avoid-redefinition-of-bits_per_page.patch
deleted file mode 100644 (file)
index 49d4aa4..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-From 2630628b2dbc3fc320aafaf84836119e4e3d62f1 Mon Sep 17 00:00:00 2001
-From: Lars Ellenberg <lars.ellenberg@linbit.com>
-Date: Fri, 20 Mar 2015 15:47:22 +0100
-Subject: drbd: avoid redefinition of BITS_PER_PAGE
-
-From: Lars Ellenberg <lars.ellenberg@linbit.com>
-
-commit 2630628b2dbc3fc320aafaf84836119e4e3d62f1 upstream.
-
-Apparently we now implicitly get definitions for BITS_PER_PAGE and
-BITS_PER_PAGE_MASK from the pid_namespace.h
-
-Instead of renaming our defines, I chose to define only if not yet
-defined, but to double check the value if already defined.
-
-Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
-Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-Signed-off-by: Jens Axboe <axboe@fb.com>
-Cc: Arnd Bergmann <arnd@arndb.de>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
-diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
-index 9462d2752850..8bdc34dbaedf 100644
---- a/drivers/block/drbd/drbd_bitmap.c
-+++ b/drivers/block/drbd/drbd_bitmap.c
-@@ -479,8 +479,14 @@ void drbd_bm_cleanup(struct drbd_device *device)
-  * this masks out the remaining bits.
-  * Returns the number of bits cleared.
-  */
-+#ifndef BITS_PER_PAGE
- #define BITS_PER_PAGE         (1UL << (PAGE_SHIFT + 3))
- #define BITS_PER_PAGE_MASK    (BITS_PER_PAGE - 1)
-+#else
-+# if BITS_PER_PAGE != (1UL << (PAGE_SHIFT + 3))
-+#  error "ambiguous BITS_PER_PAGE"
-+# endif
-+#endif
- #define BITS_PER_LONG_MASK    (BITS_PER_LONG - 1)
- static int bm_clear_surplus(struct drbd_bitmap *b)
- {
diff --git a/next-4.4/mtd-avoid-stack-overflow-in-mtd-cfi-code.patch b/next-4.4/mtd-avoid-stack-overflow-in-mtd-cfi-code.patch
deleted file mode 100644 (file)
index a1a6cfd..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-From fddcca5107051adf9e4481d2a79ae0616577fd2c Mon Sep 17 00:00:00 2001
-From: Arnd Bergmann <arnd@arndb.de>
-Date: Mon, 29 Feb 2016 13:20:28 +0100
-Subject: mtd: avoid stack overflow in MTD CFI code
-
-From: Arnd Bergmann <arnd@arndb.de>
-
-commit fddcca5107051adf9e4481d2a79ae0616577fd2c upstream.
-
-When map_word gets too large, we use a lot of kernel stack, and for
-MTD_MAP_BANK_WIDTH_32, this means we use more than the recommended
-1024 bytes in a number of functions:
-
-drivers/mtd/chips/cfi_cmdset_0020.c: In function 'cfi_staa_write_buffers':
-drivers/mtd/chips/cfi_cmdset_0020.c:651:1: warning: the frame size of 1336 bytes is larger than 1024 bytes [-Wframe-larger-than=]
-drivers/mtd/chips/cfi_cmdset_0020.c: In function 'cfi_staa_erase_varsize':
-drivers/mtd/chips/cfi_cmdset_0020.c:972:1: warning: the frame size of 1208 bytes is larger than 1024 bytes [-Wframe-larger-than=]
-drivers/mtd/chips/cfi_cmdset_0001.c: In function 'do_write_buffer':
-drivers/mtd/chips/cfi_cmdset_0001.c:1835:1: warning: the frame size of 1240 bytes is larger than 1024 bytes [-Wframe-larger-than=]
-
-This can be avoided if all operations on the map word are done
-indirectly and the stack gets reused between the calls. We can
-mostly achieve this by selecting MTD_COMPLEX_MAPPINGS whenever
-MTD_MAP_BANK_WIDTH_32 is set, but for the case that no other
-bank width is enabled, we also need to use a non-constant
-map_bankwidth() to convince the compiler to use less stack.
-
-Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-[Brian: this patch mostly achieves its goal by forcing
-    MTD_COMPLEX_MAPPINGS (and the accompanying indirection) for 256-bit
-    mappings; the rest of the change is mostly a wash, though it helps
-    reduce stack size slightly. If we really care about supporting
-    256-bit mappings though, we should consider rewriting some of this
-    code to avoid keeping and assigning so many 256-bit objects on the
-    stack.]
-Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
-diff --git a/drivers/mtd/chips/Kconfig b/drivers/mtd/chips/Kconfig
-index 3b3dabce58de..bbfa1f129266 100644
---- a/drivers/mtd/chips/Kconfig
-+++ b/drivers/mtd/chips/Kconfig
-@@ -115,6 +115,7 @@ config MTD_MAP_BANK_WIDTH_16
- config MTD_MAP_BANK_WIDTH_32
-       bool "Support 256-bit buswidth" if MTD_CFI_GEOMETRY
-+      select MTD_COMPLEX_MAPPINGS if HAS_IOMEM
-       default n
-       help
-         If you wish to support CFI devices on a physical bus which is
-diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h
-index 5e0eb7ccabd4..3aa56e3104bb 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
diff --git a/next-4.4/net-tg3-avoid-uninitialized-variable-warning.patch b/next-4.4/net-tg3-avoid-uninitialized-variable-warning.patch
deleted file mode 100644 (file)
index a0ac336..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-From e434e04110704eb91acfecbd0fb8ca8e2da9c29b Mon Sep 17 00:00:00 2001
-From: Arnd Bergmann <arnd@arndb.de>
-Date: Fri, 29 Jan 2016 12:39:15 +0100
-Subject: net: tg3: avoid uninitialized variable warning
-
-From: Arnd Bergmann <arnd@arndb.de>
-
-commit e434e04110704eb91acfecbd0fb8ca8e2da9c29b upstream.
-
-The tg3_set_eeprom() function correctly initializes the 'start' variable,
-but gcc generates a false warning:
-
-drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_set_eeprom':
-drivers/net/ethernet/broadcom/tg3.c:12057:4: warning: 'start' may be used uninitialized in this function [-Wmaybe-uninitialized]
-
-I have not come up with a way to restructure the code in a way that
-avoids the warning without making it less readable, so this adds an
-initialization for the declaration to shut up that warning.
-
-Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-
-diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
-index 9293675df7ba..49eea8981332 100644
---- a/drivers/net/ethernet/broadcom/tg3.c
-+++ b/drivers/net/ethernet/broadcom/tg3.c
-@@ -12016,7 +12016,7 @@ static int tg3_set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom,
-       int ret;
-       u32 offset, len, b_offset, odd_len;
-       u8 *buf;
--      __be32 start, end;
-+      __be32 start = 0, end;
-       if (tg3_flag(tp, NO_NVRAM) ||
-           eeprom->magic != TG3_EEPROM_MAGIC)