netfilter: nf_nat_snmp_basic: add correct dependency to Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 29 Mar 2018 00:24:28 +0000 (09:24 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 29 Mar 2018 00:42:32 +0000 (09:42 +0900)
nf_nat_snmp_basic_main.c includes a generated header, but the
necessary dependency is missing in Makefile. This could cause
build error in parallel building.

Remove a weird line, and add a correct one.

Fixes: cc2d58634e0f ("netfilter: nf_nat_snmp_basic: use asn1 decoder library")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
net/ipv4/netfilter/Makefile

index 2dad20eefd26aa8e05805bbbc474bd4e6ba4887f..9bd19cd188492ab09b9132d7010ea7fe79c498ab 100644 (file)
@@ -29,7 +29,7 @@ obj-$(CONFIG_NF_NAT_H323) += nf_nat_h323.o
 obj-$(CONFIG_NF_NAT_PPTP) += nf_nat_pptp.o
 
 nf_nat_snmp_basic-y := nf_nat_snmp_basic-asn1.o nf_nat_snmp_basic_main.o
-nf_nat_snmp_basic-y : nf_nat_snmp_basic-asn1.h nf_nat_snmp_basic-asn1.c
+$(obj)/nf_nat_snmp_basic_main.o: $(obj)/nf_nat_snmp_basic-asn1.h
 obj-$(CONFIG_NF_NAT_SNMP_BASIC) += nf_nat_snmp_basic.o
 clean-files := nf_nat_snmp_basic-asn1.c nf_nat_snmp_basic-asn1.h