intel / intel/ethernet-linux-ixgbe

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

Open
#14 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
77
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.