Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: field ‘devlink_port’ has incomplete type struct devlink_port devlink_port; #14

Open
pavlinux opened this issue Feb 4, 2025 · 0 comments

Comments

@pavlinux
Copy link

pavlinux commented Feb 4, 2025

Try compile without CONFIG_NET_DEVLINK

ixgbe-6.0.5/src/ixgbe_ethtool.c:18:
ixgbe-6.0.5/src/ixgbe.h:1180:22: error: field ‘devlink_port’ has incomplete type
  struct devlink_port devlink_port;
                      ^~~~~~~~~~~~
In file included from ixgbe-6.0.5/src/ixgbe_sriov.c:15:
ixgbe-6.0.5/src/ixgbe.h:1180:22: error: field ‘devlink_port’ has incomplete type
  struct devlink_port devlink_port;
                      ^~~~~~~~~~~~
In file included from ixgbe-6.0.5/src/ixgbe_lib.c:4:
ixgbe-6.0.5/src/ixgbe.h:1180:22: error: field ‘devlink_port’ has incomplete type
  struct devlink_port devlink_port;
                      ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:250: ixgbe-6.0.5/src/ixgbe_ethtool.o] Ошибка 1
make[2]: *** Ожидание завершения заданий…
make[2]: *** [scripts/Makefile.build:250: ixgbe-6.0.5/src/ixgbe_lib.o] Ошибка 1
make[2]: *** [scripts/Makefile.build:250: ixgbe-6.0.5/src/ixgbe_sriov.o] Ошибка 1
In file included from ixgbe-6.0.5/src/ixgbe_param.c:7:
ixgbe-6.0.5/src/ixgbe.h:1180:22: error: field ‘devlink_port’ has incomplete type
  struct devlink_port devlink_port;
                      ^~~~~~~~~~~~
In file included from ixgbe-6.0.5/src/ixgbe_xsk.c:4:
ixgbe-6.0.5/src/ixgbe.h:1180:22: error: field ‘devlink_port’ has incomplete type
  struct devlink_port devlink_port;
                      ^~~~~~~~~~~~
In file included from ixgbe-6.0.5/src/ixgbe_procfs.c:4:
ixgbe-6.0.5/src/ixgbe.h:1180:22: error: field ‘devlink_port’ has incomplete type
  struct devlink_port devlink_port;
                      ^~~~~~~~~~~~
In file included from ixgbe-6.0.5/src/ixgbe_main.c:31:
ixgbe-6.0.5/src/ixgbe.h:1180:22: error: field ‘devlink_port’ has incomplete type
  struct devlink_port devlink_port;
                      ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:250: ixgbe-6.0.5/src/ixgbe_param.o] Ошибка 1
make[2]: *** [scripts/Makefile.build:251: ixgbe-6.0.5/src/ixgbe_procfs.o] Ошибка 1
make[2]: *** [scripts/Makefile.build:250: ixgbe-6.0.5/src/ixgbe_xsk.o] Ошибка 1
In file included from ixgbe-6.0.5/src/ixgbe_main.c:58:
ixgbe-6.0.5/src/ixgbe_devlink.h: In function ‘ixgbe_allocate_devlink’:
ixgbe-6.0.5/src/ixgbe_devlink.h:25:1: error: expected ‘;’ before ‘}’ token
 }
 ^
ixgbe-6.0.5/src/ixgbe_main.c: In function ‘ixgbe_probe’:
ixgbe-6.0.5/src/ixgbe_main.c:14438:3: error: implicit declaration of function ‘devlink_port_type_eth_set’ [-Werror=implicit-function-declaration]
   devlink_port_type_eth_set(&adapter->devlink_port,
   ^~~~~~~~~~~~~~~~~~~~~~~~~
ixgbe-6.0.5/src/ixgbe_main.c:14596:8: error: implicit declaration of function ‘devlink_to_dev’; did you mean ‘dev_to_bdev’? [-Werror=implicit-function-declaration]
   if (!devlink_to_dev(adapter->devlink)) {
        ^~~~~~~~~~~~~~
        dev_to_bdev
ixgbe-6.0.5/src/ixgbe_main.c:14646:3: error: implicit declaration of function ‘devlink_free’; did you mean ‘devm_kfree’? [-Werror=implicit-function-declaration]
   devlink_free(adapter->devlink);
   ^~~~~~~~~~~~
   devm_kfree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant