[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <53FB9884.8000707@infradead.org>
Date: Mon, 25 Aug 2014 13:11:48 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: "linux-next@...r.kernel.org" <linux-next@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>
CC: Jim Davis <jim.epost@...il.com>,
LKML <linux-kernel@...r.kernel.org>,
Ariel Elior <ariel.elior@...gic.com>
Subject: [PATCH] net: bnx2x: fix build error with ptp
From: Randy Dunlap <rdunlap@...radead.org>
bnx2x uses ptp functions, so it should select the provider of
those functions (PTP_1588_CLOCK). Fixes these build errors:
drivers/built-in.o: In function `__bnx2x_remove':
/home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13409:
undefined reference to `ptp_clock_unregister'
drivers/built-in.o: In function `bnx2x_register_phc':
/home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c:13202:
undefined reference to `ptp_clock_register'
drivers/built-in.o: In function `bnx2x_get_ts_info':
/home/jim/linux/drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c:3498:
undefined reference to `ptp_clock_index'
Reported-by: Jim Davis <jim.epost@...il.com>
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
---
drivers/net/ethernet/broadcom/Kconfig | 1 +
1 file changed, 1 insertion(+)
Index: linux-next-20140825/drivers/net/ethernet/broadcom/Kconfig
===================================================================
--- linux-next-20140825.orig/drivers/net/ethernet/broadcom/Kconfig
+++ linux-next-20140825/drivers/net/ethernet/broadcom/Kconfig
@@ -122,6 +122,7 @@ config TIGON3
config BNX2X
tristate "Broadcom NetXtremeII 10Gb support"
depends on PCI
+ select PTP_1588_CLOCK
select FW_LOADER
select ZLIB_INFLATE
select LIBCRC32C
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists