On Tue, Mar 26, 2019 at 05:57:08PM -0300, Flavio Leitner wrote: > Each NAT helper creates a module alias which follows a pattern. > Use macros for consistency. > > Signed-off-by: Flavio Leitner <fbl@xxxxxxxxxxxx> > --- > include/net/netfilter/nf_conntrack_helper.h | 4 ++++ > net/ipv4/netfilter/nf_nat_h323.c | 2 +- > net/ipv4/netfilter/nf_nat_pptp.c | 2 +- > net/netfilter/nf_nat_amanda.c | 2 +- > net/netfilter/nf_nat_ftp.c | 2 +- > net/netfilter/nf_nat_irc.c | 2 +- > net/netfilter/nf_nat_sip.c | 2 +- > net/netfilter/nf_nat_tftp.c | 2 +- > 8 files changed, 11 insertions(+), 7 deletions(-) > > diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h > index ec52a8dc32fd..e86fadf7e7c5 100644 > --- a/include/net/netfilter/nf_conntrack_helper.h > +++ b/include/net/netfilter/nf_conntrack_helper.h > @@ -15,6 +15,10 @@ > #include <net/netfilter/nf_conntrack_extend.h> > #include <net/netfilter/nf_conntrack_expect.h> > > +#define NF_CT_NAT_HELPER_MOD_NAME(name) "ip_nat_" name I'd suggest a rename from NF_CT_NAT_HELPER_MOD_NAME() to NF_NAT_HELPER_NAME(). Please, also use "nf_nat_" prefix instead, "ip_nat" is legacy stuff. > +#define MODULE_ALIAS_NFCT_HELPER_NAT(name) \ > + MODULE_ALIAS(NF_CT_NAT_HELPER_MOD_NAME(name)) Probably: MODULE_ALIAS_NF_NAT_HELPER instead of MODULE_ALIAS_NFCT_HELPER_NAT.