diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-10-12 22:53:09 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-10-13 10:57:59 +0200 |
commit | f82274f97829d7f9e11a9793546ba88b084e1199 (patch) | |
tree | 2ea5abfd736feb2d459b9a3a8c9569162286564f /backport/backport-include/linux/kernel.h | |
parent | 40c06d6965547ad783cd22a5bd8d1f9e7cf5294b (diff) |
backports: add bin2hex()
This is needed in the key backports in the next patch.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'backport/backport-include/linux/kernel.h')
-rw-r--r-- | backport/backport-include/linux/kernel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h index 0e9a69f9..3ddeb13c 100644 --- a/backport/backport-include/linux/kernel.h +++ b/backport/backport-include/linux/kernel.h @@ -213,6 +213,11 @@ static inline u32 reciprocal_scale(u32 val, u32 ep_ro) } #endif /* LINUX_VERSION_IS_LESS(3,14,0) */ +#if LINUX_VERSION_IS_LESS(3,18,0) +#define bin2hex LINUX_BACKPORT(bin2hex) +extern char *bin2hex(char *dst, const void *src, size_t count); +#endif + #endif /* __BACKPORT_KERNEL_H */ /* |