]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73b2e834b18bfef2c3de6f49443f40ca64166a97
tree21fdc608cbe20d3cec4c79df6c267d33cf4bc41b
parentc9d8cb4661e2b2feb6de2c4e38790542b8ba4136
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