devcoredump: add scatterlist support
authorAviya Erenfeld <aviya.erenfeld@intel.com>
Thu, 14 Apr 2016 09:59:31 +0000 (11:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2016 18:20:32 +0000 (11:20 -0700)
commit522566376a3f8373fbd5ff75bb8a7a2da701c1a7
tree11d223946c04ca9bcdbbc8b0167297829dbb578e
parentc4a74f63dfd2e75e7d40a9aaa4052b0ef26e617c
devcoredump: add scatterlist support

Add scatterlist support (dev_coredumpsg) to allow drivers to avoid
vmalloc() like dev_coredumpm(), while also avoiding the module
reference that the latter function requires.

This internally uses dev_coredumpm() with function inside the
devcoredump module, requiring removing the const
(which touches the driver using it.)

Signed-off-by: Aviya Erenfeld <aviya.erenfeld@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devcoredump.c
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c
include/linux/devcoredump.h