summaryrefslogtreecommitdiffstats
path: root/MAINTAINERS
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-02-13 10:54:07 +0100
committerRichard Weinberger <richard@nod.at>2024-02-25 21:21:58 +0100
commit60f16e912a53ad78306ca7cf0c95913293042411 (patch)
tree4f675feb263eae4a565ba6de2c29b61b4104350b /MAINTAINERS
parent68a24aba7c593eafa8fd00f2f76407b9b32b47a9 (diff)
downloadlinux-stable-60f16e912a53ad78306ca7cf0c95913293042411.tar.gz
linux-stable-60f16e912a53ad78306ca7cf0c95913293042411.tar.bz2
linux-stable-60f16e912a53ad78306ca7cf0c95913293042411.zip
ubifs: fix sort function prototype
The global sort() function expects a callback pointer to a function with two void* arguments, but ubifs has a function with specific object types, which causes a warning in clang-16 and higher: fs/ubifs/lprops.c:1272:9: error: cast from 'int (*)(struct ubifs_info *, const struct ubifs_lprops *, int, struct ubifs_lp_stats *)' to 'ubifs_lpt_scan_callback' (aka 'int (*)(struct ubifs_info *, const struct ubifs_lprops *, int, void *)') converts to incompatible function type [-Werror,-Wcast-function-type-strict] 1272 | (ubifs_lpt_scan_callback)scan_check_cb, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change the prototype to the regular one and cast the object pointers locally instead. Fixes: 1e51764a3c2a ("UBIFS: add new flash file system") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions