Hi Oskar, On Sun, 8 Nov 2020, Oskar Berggren wrote: > That took care of the problems in ip_set_core.c, now I got problems with > jhash.h again. Same problem, but different compile unit, and despite > having the additional include that you suggested. > > WITHOUT including the compat layer the problem occurs here: > CC [M] /home/oskar/Downloads/ipset-7.7/kernel/net/netfilter/ipset/ip_set_core.o > In file included from > /usr/src/linux-headers-4.19.0-12-common/include/net/inet_sock.h:22, > from > /usr/src/linux-headers-4.19.0-12-common/include/net/inet_connection_sock.h:24, > from > /usr/src/linux-headers-4.19.0-12-common/include/linux/tcp.h:24, > from > /usr/src/linux-headers-4.19.0-12-common/include/linux/ipv6.h:87, > from > /home/oskar/Downloads/ipset-7.7/kernel/include/linux/netfilter/ipset/ip_set.h:11, > from > /home/oskar/Downloads/ipset-7.7/kernel/net/netfilter/ipset/ip_set_core.c:23: > /home/oskar/Downloads/ipset-7.7/kernel/include/linux/jhash.h: In > function ‘jhash’: > /home/oskar/Downloads/ipset-7.7/kernel/include/linux/jhash.h:91:32: > error: ‘fallthrough’ undeclared (first use in this function) > case 12: c += (u32)k[11]<<24; fallthrough; > [...same on line 137...] > > > WITH the compat layer included (and the fix for > list_for_each_entry_rcu), the same error appears slightly later: > CC [M] /home/oskar/Downloads/ipset-7.7/kernel/net/netfilter/ipset/ip_set_core.o > CC [M] /home/oskar/Downloads/ipset-7.7/kernel/net/netfilter/ipset/ip_set_getport.o > CC [M] /home/oskar/Downloads/ipset-7.7/kernel/net/netfilter/ipset/pfxlen.o > In file included from > /usr/src/linux-headers-4.19.0-12-common/include/net/inet_sock.h:22, > from > /usr/src/linux-headers-4.19.0-12-common/include/net/inet_connection_sock.h:24, > from > /usr/src/linux-headers-4.19.0-12-common/include/linux/tcp.h:24, > from > /usr/src/linux-headers-4.19.0-12-common/include/net/tcp.h:24, > from > /home/oskar/Downloads/ipset-7.7/kernel/include/linux/netfilter/ipset/pfxlen.h:7, > from > /home/oskar/Downloads/ipset-7.7/kernel/net/netfilter/ipset/pfxlen.c:4: > /home/oskar/Downloads/ipset-7.7/kernel/include/linux/jhash.h: In > function ‘jhash’: > /home/oskar/Downloads/ipset-7.7/kernel/include/linux/jhash.h:91:32: > error: ‘fallthrough’ undeclared (first use in this function) > case 12: c += (u32)k[11]<<24; fallthrough; > [...same on line 137...] Could you post your compiler type and version? I cannot reproduce the issue and even don't get how can it happen. The same compatibility layer is/should be available when compiling pfxlen.c as at compiling ipset_core.c. Best regards, Jozsef - E-mail : kadlec@xxxxxxxxxxxxxxxxx, kadlecsik.jozsef@xxxxxxxxx PGP key : https://wigner.hu/~kadlec/pgp_public_key.txt Address : Wigner Research Centre for Physics H-1525 Budapest 114, POB. 49, Hungary