net: airoha: fix CONFIG_DEBUG_FS check
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Mar 2025 15:49:59 +0000 (16:49 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 21 Mar 2025 17:40:32 +0000 (18:40 +0100)
commit08d0185e36ad8bb5902a73711bf114765d282161
treef755da478b2c1d7f3051b68fbe3ecf3c58b0c3ce
parenta6984aa806c8cebd761e6bb1b7ec8c9cae4788d1
net: airoha: fix CONFIG_DEBUG_FS check

The #if check causes a build failure when CONFIG_DEBUG_FS is turned
off:

In file included from drivers/net/ethernet/airoha/airoha_eth.c:17:
drivers/net/ethernet/airoha/airoha_eth.h:543:5: error: "CONFIG_DEBUG_FS" is not defined, evaluates to 0 [-Werror=undef]
  543 | #if CONFIG_DEBUG_FS
      |     ^~~~~~~~~~~~~~~

Replace it with the correct #ifdef.

Fixes: 3fe15c640f38 ("net: airoha: Introduce PPE debugfs support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250314155009.4114308-1-arnd@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.h