diff options
author | 2017-12-14 16:39:05 +0100 | |
---|---|---|
committer | 2018-01-08 19:25:46 +0200 | |
commit | 1a2b3666da582f93635a9c7be663d8100b9a303f (patch) | |
tree | 72f573732f9b1e37245ee5db3ea352accac8684b /tools/perf/scripts/python/syscall-counts.py | |
parent | brcmfmac: Support 43455 save-restore (SR) feature if FW include -sr (diff) | |
download | linux-dev-1a2b3666da582f93635a9c7be663d8100b9a303f.tar.xz linux-dev-1a2b3666da582f93635a9c7be663d8100b9a303f.zip |
mt76: fix debugfs_simple_attr.cocci warnings
drivers/net/wireless/mediatek/mt76/debugfs.c:36:0-23: WARNING: fops_regval should be defined with DEFINE_DEBUGFS_ATTRIBUTE
Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE
for debugfs files.
Semantic patch information:
Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file()
imposes some significant overhead as compared to
DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe().
Generated by: scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci
Fixes: a5f6039c8f9c ("mt76: add driver code for MT76x2e")
CC: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions