OSDN Git Service

net/mlx5e: clock.c depends on CONFIG_PTP_1588_CLOCK
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 29 Jul 2018 10:29:45 +0000 (13:29 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 13 Aug 2018 19:50:17 +0000 (12:50 -0700)
commit6dbc80ca41f5a76e0d2ae4e96b2476d68a2ea17f
tree21fdc608cbe20d3cec4c79df6c267d33cf4bc41b
parentc5791ab0abecb5e4a41673b83e3660f731b0717b
net/mlx5e: clock.c depends on CONFIG_PTP_1588_CLOCK

lib/clock.c includes clock related functions which require ptp support.
Thus compile out lib/clock.c and add the needed function stubs in case
kconfig CONFIG_PTP_1588_CLOCK is off.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/lib/clock.h
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h