diff options
author | 2025-03-10 09:50:09 -0700 | |
---|---|---|
committer | 2025-03-17 22:07:01 -0700 | |
commit | c637c61c9ed0203d9a1f2ba21fb7a49ddca3ef8f (patch) | |
tree | e6c807aefd6646a4a7fe02fade2f67d8905e8b02 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/shmem: use xas_try_split() in shmem_split_large_entry() (diff) | |
download | wireguard-linux-c637c61c9ed0203d9a1f2ba21fb7a49ddca3ef8f.tar.xz wireguard-linux-c637c61c9ed0203d9a1f2ba21fb7a49ddca3ef8f.zip |
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