mirror of
https://github.com/torvalds/linux.git
synced 2026-04-23 00:55:48 -04:00
fbnic fails to link as built-in when PTP support is in a loadable
module:
aarch64-linux-ld: drivers/net/ethernet/meta/fbnic/fbnic_ethtool.o: in function `fbnic_get_ts_info':
fbnic_ethtool.c:(.text+0x428): undefined reference to `ptp_clock_index'
aarch64-linux-ld: drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_time_start':
fbnic_time.c:(.text+0x820): undefined reference to `ptp_schedule_worker'
aarch64-linux-ld: drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_ptp_setup':
fbnic_time.c:(.text+0xa68): undefined reference to `ptp_clock_register'
Add the appropriate dependency to enforce this.
Fixes: 6a2b3ede95 ("eth: fbnic: add RX packets timestamping support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Message-ID: <20241016062303.2551686-1-arnd@kernel.org>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Meta Platforms network device configuration
|
|
#
|
|
|
|
config NET_VENDOR_META
|
|
bool "Meta Platforms devices"
|
|
default y
|
|
help
|
|
If you have a network (Ethernet) card designed by Meta, say Y.
|
|
That's Meta as in the parent company of Facebook.
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
kernel: saying N will just cause the configurator to skip all
|
|
the questions about Meta cards. If you say Y, you will be asked for
|
|
your specific card in the following questions.
|
|
|
|
if NET_VENDOR_META
|
|
|
|
config FBNIC
|
|
tristate "Meta Platforms Host Network Interface"
|
|
depends on X86_64 || COMPILE_TEST
|
|
depends on !S390
|
|
depends on MAX_SKB_FRAGS < 22
|
|
depends on PCI_MSI
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select NET_DEVLINK
|
|
select PAGE_POOL
|
|
select PHYLINK
|
|
help
|
|
This driver supports Meta Platforms Host Network Interface.
|
|
|
|
To compile this driver as a module, choose M here. The module
|
|
will be called fbnic. MSI-X interrupt support is required.
|
|
|
|
endif # NET_VENDOR_META
|