Skip to content

Commit

Permalink
datapath: Stop using __DATE__ and __TIME__ in startup string.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
jessegross committed Apr 27, 2015
1 parent d7d417f commit 26bfaea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datapath/datapath.c
Original file line number Diff line number Diff line change
Expand Up @@ -2270,8 +2270,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 = action_fifos_init();
if (err)
Expand Down

0 comments on commit 26bfaea

Please sign in to comment.