diff options
author | Jakub Kicinski <[email protected]> | 2024-03-04 17:35:32 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-03-05 18:36:42 -0800 |
commit | 289e922582af5b4721ba02e86bde4d9ba918158a (patch) | |
tree | 6607a89aa36d419881b0786b4dcfcfd5a9eb5043 /drivers/net/ethernet/intel/igc/igc_main.c | |
parent | 685f7d531264599b3f167f1e94bbd22f120e5fab (diff) |
dpll: move all dpll<>netdev helpers to dpll code
Older versions of GCC really want to know the full definition
of the type involved in rcu_assign_pointer().
struct dpll_pin is defined in a local header, net/core can't
reach it. Move all the netdev <> dpll code into dpll, where
the type is known. Otherwise we'd need multiple function calls
to jump between the compilation units.
This is the same problem the commit under fixes was trying to address,
but with rcu_assign_pointer() not rcu_dereference().
Some of the exports are not needed, networking core can't
be a module, we only need exports for the helpers used by
drivers.
Reported-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 640f41ed33b5 ("dpll: fix build failure due to rcu_dereference_check() on unknown type")
Reviewed-by: Jiri Pirko <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions