diff options
| author | Rob Herring <[email protected]> | 2023-10-19 18:23:37 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-10-21 10:49:31 +0000 |
| commit | d2ca43f30611ac41bccfa8352c53f5432f0ecbb0 (patch) | |
| tree | 19ab321869c44a013f8d6d22665921e72eedc524 /tools/net/ynl/generated/devlink-user.c | |
| parent | i40e: sync next_to_clean and next_to_process for programming status desc (diff) | |
| download | kernel-d2ca43f30611ac41bccfa8352c53f5432f0ecbb0.tar.gz kernel-d2ca43f30611ac41bccfa8352c53f5432f0ecbb0.zip | |
net: xgene: Fix unused xgene_enet_of_match warning for !CONFIG_OF
Commit b0377116decd ("net: ethernet: Use device_get_match_data()") dropped
the unconditional use of xgene_enet_of_match resulting in this warning:
drivers/net/ethernet/apm/xgene/xgene_enet_main.c:2004:34: warning: unused variable 'xgene_enet_of_match' [-Wunused-const-variable]
The fix is to drop of_match_ptr() which is not necessary because DT is
always used for this driver (well, it could in theory support ACPI only,
but CONFIG_OF is always enabled for arm64).
Fixes: b0377116decd ("net: ethernet: Use device_get_match_data()")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.c')
0 files changed, 0 insertions, 0 deletions
