decnet: Move rtm_dn_policy to dn_route to make it available if !CONFIG_DECNET_ROUTER
authorThomas Graf <tgraf@suug.ch>
Fri, 22 Mar 2013 16:50:29 +0000 (16:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Mar 2013 16:51:59 +0000 (12:51 -0400)
Otherwise build fails with CONFIG_DECNET && !CONFIG_DECNET_ROUTER

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_fib.c
net/decnet/dn_route.c

index f09305949931fc9c290496b0e5865c21c5c3b68c..57dc159245ecfff38e318626cf0ea1ffa9db1cae 100644 (file)
@@ -489,20 +489,6 @@ void dn_fib_select_multipath(const struct flowidn *fld, struct dn_fib_res *res)
        spin_unlock_bh(&dn_fib_multipath_lock);
 }
 
-const struct nla_policy rtm_dn_policy[RTA_MAX + 1] = {
-       [RTA_DST]               = { .type = NLA_U16 },
-       [RTA_SRC]               = { .type = NLA_U16 },
-       [RTA_IIF]               = { .type = NLA_U32 },
-       [RTA_OIF]               = { .type = NLA_U32 },
-       [RTA_GATEWAY]           = { .type = NLA_U16 },
-       [RTA_PRIORITY]          = { .type = NLA_U32 },
-       [RTA_PREFSRC]           = { .type = NLA_U16 },
-       [RTA_METRICS]           = { .type = NLA_NESTED },
-       [RTA_MULTIPATH]         = { .type = NLA_NESTED },
-       [RTA_TABLE]             = { .type = NLA_U32 },
-       [RTA_MARK]              = { .type = NLA_U32 },
-};
-
 static inline u32 rtm_get_table(struct nlattr *attrs[], u8 table)
 {
        if (attrs[RTA_TABLE])
index 5904429e8d6ad209d43189c9c9f9475f98861056..fe32388ea24f7cc6811ea17ee3fb8d9f47042ee7 100644 (file)
@@ -1613,6 +1613,20 @@ errout:
        return -EMSGSIZE;
 }
 
+const struct nla_policy rtm_dn_policy[RTA_MAX + 1] = {
+       [RTA_DST]               = { .type = NLA_U16 },
+       [RTA_SRC]               = { .type = NLA_U16 },
+       [RTA_IIF]               = { .type = NLA_U32 },
+       [RTA_OIF]               = { .type = NLA_U32 },
+       [RTA_GATEWAY]           = { .type = NLA_U16 },
+       [RTA_PRIORITY]          = { .type = NLA_U32 },
+       [RTA_PREFSRC]           = { .type = NLA_U16 },
+       [RTA_METRICS]           = { .type = NLA_NESTED },
+       [RTA_MULTIPATH]         = { .type = NLA_NESTED },
+       [RTA_TABLE]             = { .type = NLA_U32 },
+       [RTA_MARK]              = { .type = NLA_U32 },
+};
+
 /*
  * This is called by both endnodes and routers now.
  */
This page took 0.046812 seconds and 5 git commands to generate.