[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1cd443f7-df1e-20cf-cfe8-f38ac72491e4@netfilter.org>
Date: Tue, 7 Jan 2025 20:39:52 +0100 (CET)
From: Jozsef Kadlecsik <kadlec@...filter.org>
To: Benjamin Szőke <egyszeregy@...email.hu>
cc: fw@...len.de, pablo@...filter.org, lorenzo@...nel.org,
daniel@...earbox.net, leitao@...ian.org, amiculas@...co.com,
davem@...emloft.net, dsahern@...nel.org, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 09/10] netfilter: Add message pragma for deprecated
xt_*.h, ipt_*.h.
On Tue, 7 Jan 2025, egyszeregy@...email.hu wrote:
> From: Benjamin Szőke <egyszeregy@...email.hu>
>
> Display information about deprecated xt_*.h, ipt_*.h files
> at compile time. Recommended to use header files with
> lowercase name format in the future.
I still don't know whether adding the pragmas to notify about header file
deprecation is a good idea.
On my part that's all. Thank you the work!
Best regards,
Jozsef
> Signed-off-by: Benjamin Szőke <egyszeregy@...email.hu>
> ---
> include/uapi/linux/netfilter/xt_CONNMARK.h | 2 ++
> include/uapi/linux/netfilter/xt_DSCP.h | 2 ++
> include/uapi/linux/netfilter/xt_MARK.h | 2 ++
> include/uapi/linux/netfilter/xt_RATEEST.h | 2 ++
> include/uapi/linux/netfilter/xt_TCPMSS.h | 2 ++
> include/uapi/linux/netfilter_ipv4/ipt_ECN.h | 2 ++
> include/uapi/linux/netfilter_ipv4/ipt_TTL.h | 2 ++
> include/uapi/linux/netfilter_ipv6/ip6t_HL.h | 2 ++
> 8 files changed, 16 insertions(+)
>
> diff --git a/include/uapi/linux/netfilter/xt_CONNMARK.h b/include/uapi/linux/netfilter/xt_CONNMARK.h
> index 171af24ef679..1bc991fd546a 100644
> --- a/include/uapi/linux/netfilter/xt_CONNMARK.h
> +++ b/include/uapi/linux/netfilter/xt_CONNMARK.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter/xt_connmark.h>
>
> +#pragma message("xt_CONNMARK.h header is deprecated. Use xt_connmark.h instead.")
> +
> #endif /* _XT_CONNMARK_TARGET_H */
> diff --git a/include/uapi/linux/netfilter/xt_DSCP.h b/include/uapi/linux/netfilter/xt_DSCP.h
> index fcff72347256..bd550292803d 100644
> --- a/include/uapi/linux/netfilter/xt_DSCP.h
> +++ b/include/uapi/linux/netfilter/xt_DSCP.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter/xt_dscp.h>
>
> +#pragma message("xt_DSCP.h header is deprecated. Use xt_dscp.h instead.")
> +
> #endif /* _XT_DSCP_TARGET_H */
> diff --git a/include/uapi/linux/netfilter/xt_MARK.h b/include/uapi/linux/netfilter/xt_MARK.h
> index cdc12c0954b3..9f6c03e26c96 100644
> --- a/include/uapi/linux/netfilter/xt_MARK.h
> +++ b/include/uapi/linux/netfilter/xt_MARK.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter/xt_mark.h>
>
> +#pragma message("xt_MARK.h header is deprecated. Use xt_mark.h instead.")
> +
> #endif /* _XT_MARK_H_TARGET_H */
> diff --git a/include/uapi/linux/netfilter/xt_RATEEST.h b/include/uapi/linux/netfilter/xt_RATEEST.h
> index f817b5387164..ec3d68f67b2f 100644
> --- a/include/uapi/linux/netfilter/xt_RATEEST.h
> +++ b/include/uapi/linux/netfilter/xt_RATEEST.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter/xt_rateest.h>
>
> +#pragma message("xt_RATEEST.h header is deprecated. Use xt_rateest.h instead.")
> +
> #endif /* _XT_RATEEST_TARGET_H */
> diff --git a/include/uapi/linux/netfilter/xt_TCPMSS.h b/include/uapi/linux/netfilter/xt_TCPMSS.h
> index 154e88c1de02..826060264766 100644
> --- a/include/uapi/linux/netfilter/xt_TCPMSS.h
> +++ b/include/uapi/linux/netfilter/xt_TCPMSS.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter/xt_tcpmss.h>
>
> +#pragma message("xt_TCPMSS.h header is deprecated. Use xt_tcpmss.h instead.")
> +
> #endif /* _XT_TCPMSS_TARGET_H */
> diff --git a/include/uapi/linux/netfilter_ipv4/ipt_ECN.h b/include/uapi/linux/netfilter_ipv4/ipt_ECN.h
> index 6727f5a44512..42317fb3a4e9 100644
> --- a/include/uapi/linux/netfilter_ipv4/ipt_ECN.h
> +++ b/include/uapi/linux/netfilter_ipv4/ipt_ECN.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter_ipv4/ipt_ecn.h>
>
> +#pragma message("ipt_ECN.h header is deprecated. Use ipt_ecn.h instead.")
> +
> #endif /* _IPT_ECN_TARGET_H */
> diff --git a/include/uapi/linux/netfilter_ipv4/ipt_TTL.h b/include/uapi/linux/netfilter_ipv4/ipt_TTL.h
> index 5d989199ed28..1663493e4951 100644
> --- a/include/uapi/linux/netfilter_ipv4/ipt_TTL.h
> +++ b/include/uapi/linux/netfilter_ipv4/ipt_TTL.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter_ipv4/ipt_ttl.h>
>
> +#pragma message("ipt_TTL.h header is deprecated. Use ipt_ttl.h instead.")
> +
> #endif /* _IPT_TTL_TARGET_H */
> diff --git a/include/uapi/linux/netfilter_ipv6/ip6t_HL.h b/include/uapi/linux/netfilter_ipv6/ip6t_HL.h
> index bcf22824b393..55f08e20acd2 100644
> --- a/include/uapi/linux/netfilter_ipv6/ip6t_HL.h
> +++ b/include/uapi/linux/netfilter_ipv6/ip6t_HL.h
> @@ -4,4 +4,6 @@
>
> #include <linux/netfilter_ipv6/ip6t_hl.h>
>
> +#pragma message("ip6t_HL.h header is deprecated. Use ip6t_hl.h instead.")
> +
> #endif /* _IP6T_HL_TARGET_H */
> --
> 2.43.5
>
>
--
E-mail : kadlec@...filter.org, kadlec@...ckhole.kfki.hu, kadlecsik.jozsef@...ner.hu
Address: Wigner Research Centre for Physics
H-1525 Budapest 114, POB. 49, Hungary
Powered by blists - more mailing lists