Re: [PATCH] sparse: use force attribute for fmode_t casts

From: Christoph Hellwig
Date: Tue May 17 2022 - 02:39:15 EST


Please just use __FMODE_NONOTIFY instead, which might be a bit misnamed,
but was added exactly for this kind of use.

And remember once more: __force casts are a massive code smell. Never
add them before thinking hard about them and adding a comment explaining
why they can't be avoided, preferably in a dedicated helper.