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:
Brian M
2026-04-07 23:19:14 +03:00
committed by Gleb Chesnokov
parent 7ab9df00f5
commit 3e16f63043
+5
View File
@@ -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_ */