Skip to content

Commit 08d0185

Browse files
arndbPaolo Abeni
authored andcommitted
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: 3fe15c6 ("net: airoha: Introduce PPE debugfs support") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent a6984aa commit 08d0185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/airoha/airoha_eth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ void airoha_ppe_deinit(struct airoha_eth *eth);
540540
struct airoha_foe_entry *airoha_ppe_foe_get_entry(struct airoha_ppe *ppe,
541541
u32 hash);
542542

543-
#if CONFIG_DEBUG_FS
543+
#ifdef CONFIG_DEBUG_FS
544544
int airoha_ppe_debugfs_init(struct airoha_ppe *ppe);
545545
#else
546546
static inline int airoha_ppe_debugfs_init(struct airoha_ppe *ppe)

0 commit comments

Comments
 (0)