mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
scst: Build fix for hex_to_bin() for RHEL 6.1 and later
Reported-by: Yan Burman <yanb@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5751 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -242,7 +242,8 @@ static inline unsigned int queue_max_hw_sectors(struct request_queue *q)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 6 && RHEL_MINOR -0 < 1)
|
||||
extern int hex_to_bin(char ch);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -100,7 +100,8 @@ char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 35) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 6 && RHEL_MINOR -0 < 1)
|
||||
/*
|
||||
* See also "lib: introduce common method to convert hex digits" (commit
|
||||
* 903788892ea0fc7fcaf7e8e5fac9a77379fc215b).
|
||||
|
||||
Reference in New Issue
Block a user