--- a/debugfs.c +++ b/debugfs.c @@ -25,6 +25,7 @@ mt76_reg_get(void *data, u64 *val) DEFINE_DEBUGFS_ATTRIBUTE(fops_regval, mt76_reg_get, mt76_reg_set, "0x%08llx\n"); +#if 0 static int mt76_napi_threaded_set(void *data, u64 val) { @@ -50,6 +51,7 @@ mt76_napi_threaded_get(void *data, u64 *val) DEFINE_DEBUGFS_ATTRIBUTE(fops_napi_threaded, mt76_napi_threaded_get, mt76_napi_threaded_set, "%llu\n"); +#endif int mt76_queues_read(struct seq_file *s, void *data) { @@ -116,8 +118,6 @@ mt76_register_debugfs_fops(struct mt76_phy *phy, debugfs_create_bool("led_active_low", 0600, dir, &phy->leds.al); debugfs_create_u32("regidx", 0600, dir, &dev->debugfs_reg); debugfs_create_file_unsafe("regval", 0600, dir, dev, fops); - debugfs_create_file_unsafe("napi_threaded", 0600, dir, dev, - &fops_napi_threaded); debugfs_create_blob("eeprom", 0400, dir, &dev->eeprom); if (dev->otp.data) debugfs_create_blob("otp", 0400, dir, &dev->otp); --- a/mt7615/mcu.c +++ b/mt7615/mcu.c @@ -6,6 +6,7 @@ */ #include +#include #include "mt7615.h" #include "mcu.h" #include "mac.h" --- a/mt7915/mt7915.h +++ b/mt7915/mt7915.h @@ -6,6 +6,7 @@ #include #include +#include #include "../mt76_connac.h" #include "regs.h" --- a/mt76_connac_mcu.c +++ b/mt76_connac_mcu.c @@ -2,6 +2,7 @@ /* Copyright (C) 2020 MediaTek Inc. */ #include +#include #include "mt76_connac2_mac.h" #include "mt76_connac_mcu.h"