backports: patches: update devcoredump patch
authorArend van Spriel <arend.vanspriel@broadcom.com>
Sun, 5 Jun 2016 09:30:05 +0000 (11:30 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Feb 2017 13:53:46 +0000 (14:53 +0100)
Due to changes in include/linux/devcoredump.h the patch needs to
be updated.

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
patches/backport-adjustments/devcoredump.patch

index b438f32e115b2a535d995703436d39884de4d34f..397b31754164f3c36ff39bb6486eaa7922fa5491 100644 (file)
 -__exitcall(devcoredump_exit);
 --- a/include/linux/backport-devcoredump.h
 +++ b/include/linux/backport-devcoredump.h
-@@ -5,7 +5,7 @@
- #include <linux/module.h>
- #include <linux/vmalloc.h>
+@@ -66,7 +66,7 @@ static inline void _devcd_free_sgtable(struct scatterlist *tab
+ }
  
 -#ifdef CONFIG_DEV_COREDUMP
 +#ifdef CPTCFG_BPAUTO_WANT_DEV_COREDUMP
- void dev_coredumpv(struct device *dev, const void *data, size_t datalen,
-                  gfp_t gfp);
+ void dev_coredumpv(struct device *dev, void *data, size_t datalen,
+                   gfp_t gfp);
  
-@@ -30,6 +30,6 @@ dev_coredumpm(struct device *dev, struct
+@@ -100,6 +100,6 @@ static inline void dev_coredumpsg(struct device *dev, struct
  {
-       free(data);
+        _devcd_free_sgtable(table);
  }
 -#endif /* CONFIG_DEV_COREDUMP */
 +#endif /* CPTCFG_BPAUTO_WANT_DEV_COREDUMP */