datapath: Stop using __DATE__ and __TIME__ in startup string.
authorJesse Gross <jesse@nicira.com>
Mon, 27 Apr 2015 19:28:55 +0000 (12:28 -0700)
committerJesse Gross <jesse@nicira.com>
Mon, 27 Apr 2015 22:11:18 +0000 (15:11 -0700)
An increasing number of distributions ship with GCC 4.9 (including
Fedora and Ubuntu) that has -Werror=date-time. This causes kernel
compilation to fail because the builds are not exactly reproducible.

This simply removes the use of those constants, which was already
done for the upstream Linux version of the module. It retains the
version string, however, which should provide the same information
in most cases.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c

index 15e8c23..ebf515e 100644 (file)
@@ -2149,8 +2149,7 @@ static int __init dp_init(void)
 
        BUILD_BUG_ON(sizeof(struct ovs_skb_cb) > FIELD_SIZEOF(struct sk_buff, cb));
 
-       pr_info("Open vSwitch switching datapath %s, built "__DATE__" "__TIME__"\n",
-               VERSION);
+       pr_info("Open vSwitch switching datapath %s\n", VERSION);
 
        err = ovs_flow_init();
        if (err)