datapath: Avoid warning for unused static data on Linux <=3.9.0.
authorBen Pfaff <blp@ovn.org>
Mon, 7 Dec 2015 20:34:08 +0000 (12:34 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 8 Dec 2015 16:50:59 +0000 (08:50 -0800)
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/actions.c

index 0d6375f..9dccf47 100644 (file)
@@ -68,7 +68,9 @@ struct ovs_frag_data {
        u8 l2_data[MAX_L2_LEN];
 };
 
+#if LINUX_VERSION_CODE > KERNEL_VERSION(3,9,0)
 static DEFINE_PER_CPU(struct ovs_frag_data, ovs_frag_data_storage);
+#endif
 
 #define DEFERRED_ACTION_FIFO_SIZE 10
 struct action_fifo {