diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 21:00:14 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-02-07 21:30:54 +0100 |
commit | 11370084bb535afd5935132fc1cb51ae8278cb43 (patch) | |
tree | 9a5f962ec460e465d5c289be4f7da12f320507ae /backport/backport-include/linux | |
parent | e756ec177e8485b94c4ec211bfd249680e7b4e36 (diff) |
backports: add dev_coredumpsg() where needed
Add dev_coredumpsg() on kernels where dev_coredumpm() is present
but _sg() isn't, and restrict building appropriately.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux')
-rw-r--r-- | backport/backport-include/linux/bp-devcoredump.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/bp-devcoredump.h b/backport/backport-include/linux/bp-devcoredump.h index f116bd2e..56b22751 100644 --- a/backport/backport-include/linux/bp-devcoredump.h +++ b/backport/backport-include/linux/bp-devcoredump.h @@ -1,6 +1,7 @@ #ifndef __BACKPORT_LINUX_DEVCOREDUMP_H #define __BACKPORT_LINUX_DEVCOREDUMP_H #include <linux/version.h> +#include <linux/scatterlist.h> /* We only need to add our wrapper inside the range from 3.18 until * 4.6, outside that we can let our BPAUTO mechanism handle it. @@ -21,6 +22,10 @@ void backport_dev_coredumpm(struct device *dev, struct module *owner, #define dev_coredumpm LINUX_BACKPORT(dev_coredumpm) +#define dev_coredumpsg LINUX_BACKPORT(dev_coredumpsg) +void dev_coredumpsg(struct device *dev, struct scatterlist *table, + size_t datalen, gfp_t gfp); + #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0) && \ LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)) */ |