mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 04:36:22 +00:00
scst/include/backport.h: backport kstrtobool
kstrtobool was introduced in 4.6; older kernels have strtobool with an identical signature.
This commit is contained in:
@@ -2242,4 +2242,9 @@ static inline int fc_block_rport(struct fc_rport *rport)
|
||||
#define TCM_ACA_TAG 0x24
|
||||
#endif
|
||||
|
||||
/* ef951599074b lib: move strtobool() to kstrtobool() */
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0)
|
||||
#define kstrtobool strtobool
|
||||
#endif
|
||||
|
||||
#endif /* _SCST_BACKPORT_H_ */
|
||||
|
||||
Reference in New Issue
Block a user