]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/net/tc_act/tc_gact.h
net/sched: Macro instead of CONFIG_NET_CLS_ACT ifdef
[karo-tx-linux.git] / include / net / tc_act / tc_gact.h
index 04a31830711be46691f4554c6ce550d8fa4adfce..93c520b83d10994236c09be729dcd55dcff6dc2b 100644 (file)
@@ -16,9 +16,9 @@ struct tcf_gact {
 #define to_gact(a) \
        container_of(a->priv, struct tcf_gact, common)
 
-#ifdef CONFIG_NET_CLS_ACT
 static inline bool is_tcf_gact_shot(const struct tc_action *a)
 {
+#ifdef CONFIG_NET_CLS_ACT
        struct tcf_gact *gact;
 
        if (a->ops && a->ops->type != TCA_ACT_GACT)
@@ -28,7 +28,7 @@ static inline bool is_tcf_gact_shot(const struct tc_action *a)
        if (gact->tcf_action == TC_ACT_SHOT)
                return true;
 
+#endif
        return false;
 }
-#endif
 #endif /* __NET_TC_GACT_H */