From: Gleb C. <lna...@ya...> - 2023-06-13 14:50:23
|
Commit: 3b0ab93 GitHub URL: https://github.com/SCST-project/scst/commit/3b0ab93c93b94d880f60fba76c8e9458cbf83ee1 Author: Gleb Chesnokov Date: 2023-06-13T17:49:50+03:00 Log Message: ----------- scst/include/backport.h: Unbreak the RHEL 9.3 build Fixes: https://github.com/SCST-project/scst/issues/167 Modified Paths: -------------- scst/include/backport.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) =================================================================== diff --git a/scst/include/backport.h b/scst/include/backport.h index 66671bc..6d0fd87 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -798,13 +798,15 @@ static inline void kvfree(void *addr) /* <linux/shrinker.h> */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0) && \ + (!defined(RHEL_RELEASE_CODE) || \ + RHEL_RELEASE_CODE -0 < RHEL_RELEASE_VERSION(9, 3)) /* * See also commit e33c267ab70d ("mm: shrinkers: provide shrinkers with * names") # v6.0. */ -static inline -int register_shrinker_backport(struct shrinker *shrinker, const char *fmt, ...) +static inline int +register_shrinker_backport(struct shrinker *shrinker, const char *fmt, ...) { /* * See also commit 1d3d4437eae1 ("vmscan: per-node deferred work") # v3.12 |