Re: [OpenWrt-Devel] [PATCH] kernel: update 4.1 to 4.1.4

2015-08-05 Thread Jonas Gorski
Hi,

On Wed, Aug 5, 2015 at 12:53 AM, Daniel Golle  wrote:
> Changelog:
>  * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.4
>
> Signed-off-by: Daniel Golle 
> ---
>  include/kernel-version.mk  |   4 +-
>  ...79-add-gpio-func-register-for-QCA955x-SoC.patch |   2 +-
>  .../813-MIPS-ath79-add-ap147-support.patch |   6 +-
>  .../140-overlayfs_readdir_locking_fix.patch| 148 
> -
>  .../generic/patches-4.1/834-ledtrig-libata.patch   |  10 +-
>  5 files changed, 11 insertions(+), 159 deletions(-)
>  delete mode 100644 
> target/linux/generic/patches-4.1/140-overlayfs_readdir_locking_fix.patch
>
> diff --git a/include/kernel-version.mk b/include/kernel-version.mk
> index e03590f..9f68716 100644
> --- a/include/kernel-version.mk
> +++ b/include/kernel-version.mk
> @@ -4,11 +4,11 @@ LINUX_RELEASE?=1
>
>  LINUX_VERSION-3.18 = .19
>  LINUX_VERSION-4.0 = .9
> -LINUX_VERSION-4.1 = .3
> +LINUX_VERSION-4.1 = .4
>
>  LINUX_KERNEL_MD5SUM-3.18.19 = a143f9421bd8413752609d0d771c2955
>  LINUX_KERNEL_MD5SUM-4.0.9 = 40fc5f6e2d718e539b45e6601c71985b
> -LINUX_KERNEL_MD5SUM-4.1.3 = 96c2c77b1c54ba01cfd8fc2d13fbf828
> +LINUX_KERNEL_MD5SUM-4.1.4 = 32cb4dd9f14d37bf71bafa6ed368f769

this breaks at least brcm2708:

Applying patch 
platform/0119-Merge-pull-request-1059-from-pelwell-rpi-4.0.y.patch
patching file Documentation/ABI/stable/sysfs-driver-w1_ds28ea00
patching file Documentation/w1/slaves/w1_therm
patching file drivers/w1/slaves/w1_therm.c
Hunk #1 FAILED at 59.
Hunk #2 succeeded at 92 (offset 16 lines).
Hunk #3 succeeded at 117 (offset 16 lines).
Hunk #4 succeeded at 140 (offset 16 lines).
Hunk #5 FAILED at 211.
Hunk #6 FAILED at 247.
Hunk #7 FAILED at 286.

I will take a stab at fixing this up locally, but in the future please
try to ensure that target patches still apply.


Jonas
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] kernel: update 4.1 to 4.1.4

2015-08-04 Thread Daniel Golle
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.4

Signed-off-by: Daniel Golle 
---
 include/kernel-version.mk  |   4 +-
 ...79-add-gpio-func-register-for-QCA955x-SoC.patch |   2 +-
 .../813-MIPS-ath79-add-ap147-support.patch |   6 +-
 .../140-overlayfs_readdir_locking_fix.patch| 148 -
 .../generic/patches-4.1/834-ledtrig-libata.patch   |  10 +-
 5 files changed, 11 insertions(+), 159 deletions(-)
 delete mode 100644 
target/linux/generic/patches-4.1/140-overlayfs_readdir_locking_fix.patch

diff --git a/include/kernel-version.mk b/include/kernel-version.mk
index e03590f..9f68716 100644
--- a/include/kernel-version.mk
+++ b/include/kernel-version.mk
@@ -4,11 +4,11 @@ LINUX_RELEASE?=1
 
 LINUX_VERSION-3.18 = .19
 LINUX_VERSION-4.0 = .9
-LINUX_VERSION-4.1 = .3
+LINUX_VERSION-4.1 = .4
 
 LINUX_KERNEL_MD5SUM-3.18.19 = a143f9421bd8413752609d0d771c2955
 LINUX_KERNEL_MD5SUM-4.0.9 = 40fc5f6e2d718e539b45e6601c71985b
-LINUX_KERNEL_MD5SUM-4.1.3 = 96c2c77b1c54ba01cfd8fc2d13fbf828
+LINUX_KERNEL_MD5SUM-4.1.4 = 32cb4dd9f14d37bf71bafa6ed368f769
 
 ifdef KERNEL_PATCHVER
   LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER)))
diff --git 
a/target/linux/ar71xx/patches-4.1/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
 
b/target/linux/ar71xx/patches-4.1/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
index 24ce7d8..23425dc 100644
--- 
a/target/linux/ar71xx/patches-4.1/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
+++ 
b/target/linux/ar71xx/patches-4.1/739-MIPS-ath79-add-gpio-func-register-for-QCA955x-SoC.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/gpio.c
 +++ b/arch/mips/ath79/gpio.c
-@@ -185,15 +185,27 @@ void __init ath79_gpio_output_select(uns
+@@ -221,15 +221,27 @@ void __init ath79_gpio_output_select(uns
  {
void __iomem *base = ath79_gpio_base;
unsigned long flags;
diff --git 
a/target/linux/ar71xx/patches-4.1/813-MIPS-ath79-add-ap147-support.patch 
b/target/linux/ar71xx/patches-4.1/813-MIPS-ath79-add-ap147-support.patch
index 2ca9a1e..ed0d984 100644
--- a/target/linux/ar71xx/patches-4.1/813-MIPS-ath79-add-ap147-support.patch
+++ b/target/linux/ar71xx/patches-4.1/813-MIPS-ath79-add-ap147-support.patch
@@ -1,6 +1,6 @@
 --- a/arch/mips/ath79/Kconfig
 +++ b/arch/mips/ath79/Kconfig
-@@ -118,6 +118,19 @@ config ATH79_MACH_AP143
+@@ -138,6 +138,19 @@ config ATH79_MACH_AP143
  Say 'Y' here if you want your kernel to support the
  Atheros AP143 reference board.
  
@@ -22,7 +22,7 @@
select SOC_AR913X
 --- a/arch/mips/ath79/Makefile
 +++ b/arch/mips/ath79/Makefile
-@@ -47,6 +47,7 @@ obj-$(CONFIG_ATH79_MACH_AP121)   += mach-
+@@ -49,6 +49,7 @@ obj-$(CONFIG_ATH79_MACH_AP121)   += mach-
  obj-$(CONFIG_ATH79_MACH_AP132)+= mach-ap132.o
  obj-$(CONFIG_ATH79_MACH_AP136)+= mach-ap136.o
  obj-$(CONFIG_ATH79_MACH_AP143)+= mach-ap143.o
@@ -32,7 +32,7 @@
  obj-$(CONFIG_ATH79_MACH_AP96) += mach-ap96.o
 --- a/arch/mips/ath79/machtypes.h
 +++ b/arch/mips/ath79/machtypes.h
-@@ -29,6 +29,7 @@ enum ath79_mach_type {
+@@ -31,6 +31,7 @@ enum ath79_mach_type {
ATH79_MACH_AP136_010,   /* Atheros AP136-010 reference board */
ATH79_MACH_AP136_020,   /* Atheros AP136-020 reference board */
ATH79_MACH_AP143,   /* Atheros AP143 reference board */
diff --git 
a/target/linux/generic/patches-4.1/140-overlayfs_readdir_locking_fix.patch 
b/target/linux/generic/patches-4.1/140-overlayfs_readdir_locking_fix.patch
deleted file mode 100644
index 67dff98..000
--- a/target/linux/generic/patches-4.1/140-overlayfs_readdir_locking_fix.patch
+++ /dev/null
@@ -1,148 +0,0 @@
-Patch by: Miklos Szeredi 
-
-Some filesystems (e.g. jffs2) lock the same resources for both readdir
-and lookup, leading to a deadlock in ovl_cache_entry_new, which is called
-from the filldir, and calls lookup itself.
-
 a/fs/overlayfs/readdir.c
-+++ b/fs/overlayfs/readdir.c
-@@ -23,6 +23,7 @@ struct ovl_cache_entry {
-   u64 ino;
-   struct list_head l_node;
-   struct rb_node node;
-+  struct ovl_cache_entry *next_maybe_whiteout;
-   bool is_whiteout;
-   char name[];
- };
-@@ -39,7 +40,7 @@ struct ovl_readdir_data {
-   struct rb_root root;
-   struct list_head *list;
-   struct list_head middle;
--  struct dentry *dir;
-+  struct ovl_cache_entry *first_maybe_whiteout;
-   int count;
-   int err;
- };
-@@ -79,7 +80,7 @@ static struct ovl_cache_entry *ovl_cache
-   return NULL;
- }
- 
--static struct ovl_cache_entry *ovl_cache_entry_new(struct dentry *dir,
-+static struct ovl_cache_entry *ovl_cache_entry_new(struct ovl_readdir_data 
*rdd,
-  const char *name, int len,
-  u64 ino, unsigned int d_type)
- {
-@@ -98,29 +99,8 @@ s