]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: avoid -Wformat-security warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 23 Apr 2025 16:43:49 +0000 (18:43 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 May 2025 18:44:59 +0000 (14:44 -0400)
commitd612a07931e261c537978aad096e7340b687cd0c
treed4dfd7f562bc77d247dc13315d9aebb6eb83e99b
parent24b7a2331fcdf6de103ea85e67eede43c0372f77
ext4: avoid -Wformat-security warning

check_igot_inode() prints a variable string, which causes a harmless
warning with 'make W=1':

fs/ext4/inode.c:4763:45: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
 4763 |         ext4_error_inode(inode, function, line, 0, err_str);

Use a trivial "%s" format string instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250423164354.2780635-1-arnd@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c