diff options
| author | Rob Herring <[email protected]> | 2023-10-19 18:23:45 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-10-23 17:16:47 +0000 |
| commit | d6e48462e88fe7efc78b455ecde5b0ca43ec50b7 (patch) | |
| tree | 3e88d5ba01f6fd87699225ac805ac8657677c152 /tools/net/ynl/generated/devlink-user.h | |
| parent | tools: ynl-gen: change spacing around __attribute__ (diff) | |
| download | kernel-d6e48462e88fe7efc78b455ecde5b0ca43ec50b7.tar.gz kernel-d6e48462e88fe7efc78b455ecde5b0ca43ec50b7.zip | |
net: mdio: xgene: Fix unused xgene_mdio_of_match warning for !CONFIG_OF
Commit a243ecc323b9 ("net: mdio: xgene: Use device_get_match_data()")
dropped the unconditional use of xgene_mdio_of_match resulting in this
warning:
drivers/net/mdio/mdio-xgene.c:303:34: warning: unused variable 'xgene_mdio_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: a243ecc323b9 ("net: mdio: xgene: 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]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.h')
0 files changed, 0 insertions, 0 deletions
