Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Arnd Bergmann and committed by
Paolo Abeni
08d0185e a6984aa8

+1 -1
+1 -1
drivers/net/ethernet/airoha/airoha_eth.h
··· 540 540 struct airoha_foe_entry *airoha_ppe_foe_get_entry(struct airoha_ppe *ppe, 541 541 u32 hash); 542 542 543 - #if CONFIG_DEBUG_FS 543 + #ifdef CONFIG_DEBUG_FS 544 544 int airoha_ppe_debugfs_init(struct airoha_ppe *ppe); 545 545 #else 546 546 static inline int airoha_ppe_debugfs_init(struct airoha_ppe *ppe)