]> git.baikalelectronics.ru Git - kernel.git/commit
net: ax88796c: hide ax88796c_dt_ids if !CONFIG_OF
authorJakub Kicinski <kuba@kernel.org>
Thu, 4 Nov 2021 17:55:27 +0000 (10:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Nov 2021 10:44:04 +0000 (10:44 +0000)
commitb46a8f6224bccec7a00f047a9ebdbc6362b14e5a
tree39ff3b08d2b78ea3c2e9e15877ad10a02fa16436
parent6fa7e8de7cf3e36a2473636fed1474034f9c3a8d
net: ax88796c: hide ax88796c_dt_ids if !CONFIG_OF

Build bot says:

>> drivers/net/ethernet/asix/ax88796c_main.c:1116:34: warning: unused variable 'ax88796c_dt_ids' [-Wunused-const-variable]
   static const struct of_device_id ax88796c_dt_ids[] = {
                                    ^

The only reference to this array is wrapped in of_match_ptr().

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 9c16820e2f08 ("net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/asix/ax88796c_main.c