From 5a85f399c887f20cb0c03f693075571629d8fb31 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 13 Apr 2019 22:55:58 +0000 Subject: [PATCH] scst/include/backport.h: Backport wwn_to_u64() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8192 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index e05627e85..c5e59c07b 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -1615,6 +1615,10 @@ enum { }; #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 2, 0) +#define wwn_to_u64(wwn) get_unaligned_be64(wwn) +#endif + /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)