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 83b05e9a11)
(cherry picked from commit d625ac6c99)
mr14.1.1
Richard Fuchs 21 hours ago
parent 6ab64f8a7f
commit f23e33e88b

@ -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
};

Loading…
Cancel
Save