diff options
author | Arnd Bergmann | 2021-10-15 23:06:01 +0200 |
---|---|---|
committer | David S. Miller | 2021-10-18 13:14:00 +0100 |
commit | 0e9e7598c68f1dc17ce1053b08494b8ed6dd4985 (patch) | |
tree | d6ffa1a14d1deb791a745c37d1a0002b53a46c4c /drivers/net/ethernet/calxeda/xgmac.c | |
parent | 91e1aef746ed8ae9f866ef34133d81d3b0b41558 (diff) |
octeontx2-nic: fix mixed module build
Building the VF and PF side of this driver differently, with one being
a loadable module and the other one built-in results in a link failure
for the common PTP driver:
ld.lld: error: undefined symbol: __this_module
>>> referenced by otx2_ptp.c
>>> net/ethernet/marvell/octeontx2/nic/otx2_ptp.o:(otx2_ptp_init) in archive drivers/built-in.a
>>> referenced by otx2_ptp.c
>>> net/ethernet/marvell/octeontx2/nic/otx2_ptp.o:(otx2_ptp_init) in archive drivers/built-in.a
Move the otx2_ptp.c code into a separate module that gets built for
both configurations, making it built-in if at least one of the other
two is built-in.
Fixes: 43510ef4ddad ("octeontx2-nicvf: Add PTP hardware clock support to NIX VF")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/calxeda/xgmac.c')
0 files changed, 0 insertions, 0 deletions