diff options
author | 2022-11-29 12:15:23 +0800 | |
---|---|---|
committer | 2022-12-12 14:59:39 -0800 | |
commit | 7411143f2021530d7641fbb40daaada4ee63f7e6 (patch) | |
tree | 92498e81a0d39cb63253df6183958ab8e03058f8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | f2fs: don't call f2fs_issue_discard_timeout() when discard_cmd_cnt is 0 in f2fs_put_super() (diff) | |
download | wireguard-linux-7411143f2021530d7641fbb40daaada4ee63f7e6.tar.xz wireguard-linux-7411143f2021530d7641fbb40daaada4ee63f7e6.zip |
f2fs: fix some format WARNING in debug.c and sysfs.c
To fix:
WARNING: function definition argument 'struct f2fs_attr *' should also have an identifier name
+ ssize_t (*show)(struct f2fs_attr *, struct f2fs_sb_info *, char *);
WARNING: return sysfs_emit(...) formats should include a terminating newline
+ return sysfs_emit(buf, "(none)");
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+ unsigned npages = NODE_MAPPING(sbi)->nrpages;
WARNING: Missing a blank line after declarations
+ unsigned npages = COMPRESS_MAPPING(sbi)->nrpages;
+ si->page_mem += (unsigned long long)npages << PAGE_SHIFT;
WARNING: quoted string split across lines
+ seq_printf(s, "CP merge (Queued: %4d, Issued: %4d, Total: %4d, "
+ "Cur time: %4d(ms), Peak time: %4d(ms))\n",
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions