Add some #ifdefs to unconditionally return false in ip_set_get_ip6_port() when CONFIG_IPV6=n and convert to ipv6_skip_exthdr() to avoid pulling in the ip6_tables module when loading ipset. A slightly more code-saving alternative would be to add a dummy inline function or ifdef the callsites. Please let me know which way you prefer.