ip6_fib: Avoid ABI change in 4.9.51
authorBen Hutchings <ben@decadent.org.uk>
Mon, 25 Sep 2017 21:49:55 +0000 (22:49 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Sep 2017 17:27:56 +0000 (18:27 +0100)
Commit c5cff8561d2d "ipv6: add rcu grace period before freeing
fib6_node" added an rcu_head field to the end of struct fib6_node.
As this structure is always allocated and freed inside of the ipv6
module (or built-in code), we can safely hide it from genksyms.

Gbp-Pq: Topic debian
Gbp-Pq: Name ip6_fib-avoid-abi-change-in-4.9.51.patch

include/net/ip6_fib.h

index a6bcb18ac4c35f0a73946fe03f5a33ba49c73c69..32c78e2e59fad6a1c7628c087f5d7662838e3e93 100644 (file)
@@ -68,7 +68,9 @@ struct fib6_node {
        __u16                   fn_flags;
        int                     fn_sernum;
        struct rt6_info         *rr_ptr;
+#ifndef __GENKSYMS__
        struct rcu_head         rcu;
+#endif
 };
 
 #ifndef CONFIG_IPV6_SUBTREES