mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
net: nvethernet: Fix CONFIG_TEGRA_NVPPS not defined warning
Compiling the nvethernet driver without the ccflag CONFIG_TEGRA_NVPPS
defined generates the following warning ...
drivers/net/ethernet/nvidia/nvethernet/ether_linux.c:2936:5:
warning: "CONFIG_TEGRA_NVPPS" is not defined, evaluates to 0 [-Wundef]
2936 | #if CONFIG_TEGRA_NVPPS
| ^~~~~~~~~~~~~~~~~~
Fix this by using '#ifdef' to determine if CONFIG_TEGRA_NVPPS is
defined instead of '#if'.
Bug 4190030
Change-Id: Id1523de6f9ef9f4c72669584efb77ffd9ddf20f3
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2938375
Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b970ad45ec
commit
9655b8c6b0
@@ -2933,7 +2933,7 @@ static int ether_close(struct net_device *ndev)
|
||||
/* TODO: purge the queues */
|
||||
#endif
|
||||
|
||||
#if CONFIG_TEGRA_NVPPS
|
||||
#ifdef CONFIG_TEGRA_NVPPS
|
||||
/* Unregister broadcasting MAC timestamp to clients */
|
||||
tegra_unregister_hwtime_source(ndev);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user