diff options
| author | SeongJae Park <[email protected]> | 2025-03-10 16:50:09 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-18 05:07:01 +0000 |
| commit | c637c61c9ed0203d9a1f2ba21fb7a49ddca3ef8f (patch) | |
| tree | e6c807aefd6646a4a7fe02fade2f67d8905e8b02 /mm/sparse.c | |
| parent | mm/shmem: use xas_try_split() in shmem_split_large_entry() (diff) | |
| download | kernel-c637c61c9ed0203d9a1f2ba21fb7a49ddca3ef8f.tar.gz kernel-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/[email protected]
Fixes: 7e84b1f8212a ("mm/damon/sysfs: support DAMON-based Operation Schemes")
Signed-off-by: SeongJae Park <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions
