diff options
author | SeongJae Park <sj@kernel.org> | 2025-03-10 19:50:09 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-03-18 08:07:01 +0300 |
commit | c637c61c9ed0203d9a1f2ba21fb7a49ddca3ef8f (patch) | |
tree | e6c807aefd6646a4a7fe02fade2f67d8905e8b02 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d53c78fffe7ad364397c693522ceb4d152c2aacd (diff) | |
download | linux-c637c61c9ed0203d9a1f2ba21fb7a49ddca3ef8f.tar.xz |
mm/damon/sysfs-schemes: avoid Wformat-security warning on damon_sysfs_access_pattern_add_range_dir()
When -Wformat-security is given, compiler warns as a potential security
issue on damon_sysfs_access_pattern_add_range_dir() as below:
mm/damon/sysfs-schemes.c: In function `damon_sysfs_access_pattern_add_range_dir':
mm/damon/sysfs-schemes.c:1503:25: warning: format not a string literal and no format arguments [-Wformat-security]
1503 | &access_pattern->kobj, name);
| ^
Fix it by using "%s" as the format and the name as the argument.
Link: https://lkml.kernel.org/r/20250310165009.652491-1-sj@kernel.org
Fixes: 7e84b1f8212a ("mm/damon/sysfs: support DAMON-based Operation Schemes")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions