From f23e33e88b6ffc7c52bc6dfc0b2feaa096ec0bc5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 7 Aug 2026 07:03:36 -0400 Subject: [PATCH] MT#55283 update test for .reduce method 6.12.101+ has removed this as well. Use the macro itself to determine whether this struct member exists. Change-Id: Ib43157567a78afc664398b9f22ee0a27b0facfa0 (cherry picked from commit 83b05e9a11214f71e0e4d960c803171e96e7fcef) (cherry picked from commit d625ac6c993a18d0fadac83f395cb262eea038b0) --- kernel-module/nft_rtpengine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel-module/nft_rtpengine.c b/kernel-module/nft_rtpengine.c index 85e4f376a..5f6d9b903 100644 --- a/kernel-module/nft_rtpengine.c +++ b/kernel-module/nft_rtpengine.c @@ -6897,7 +6897,7 @@ static const struct nft_expr_ops rtpengine_inet_ops = { .init = rtpengine_expr_init, .dump = rtpengine_expr_dump, .validate = rtpengine_expr_validate, -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) && LINUX_VERSION_CODE < KERNEL_VERSION(7,1,0) +#ifdef NFT_REDUCE_READONLY .reduce = NFT_REDUCE_READONLY, #endif }; @@ -6909,7 +6909,7 @@ static const struct nft_expr_ops rtpengine_ipv4_ops = { .init = rtpengine_expr_init, .dump = rtpengine_expr_dump, .validate = rtpengine_expr_validate, -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) && LINUX_VERSION_CODE < KERNEL_VERSION(7,1,0) +#ifdef NFT_REDUCE_READONLY .reduce = NFT_REDUCE_READONLY, #endif }; @@ -6921,7 +6921,7 @@ static const struct nft_expr_ops rtpengine_ipv6_ops = { .init = rtpengine_expr_init, .dump = rtpengine_expr_dump, .validate = rtpengine_expr_validate, -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0) && LINUX_VERSION_CODE < KERNEL_VERSION(7,1,0) +#ifdef NFT_REDUCE_READONLY .reduce = NFT_REDUCE_READONLY, #endif };