Re: [PATCH RFC] cache: Make cpu_cache_invalidate_memregion() error out if there are no handlers
From: Andrew Morton
Date: Tue Sep 22 2026 - 22:19:58 EST
On Tue, 22 Sep 2026 09:29:31 +0200 Bence Csokas <bence.csokas@xxxxxxx> wrote:
> Currently, if there are no registered handlers,
> cpu_cache_invalidate_memregion() returns 0. Callers are expected to check
> cpu_cache_has_invalidate_memregion() and return -ENXIO themselves, instead
> of calling this function. If a caller forgets to do this, they may
> erroneously think the operation succeeded. This is in contrast to x86,
> where cpu_cache_invalidate_memregion() itself checks if the operation is
> supported, and returns -ENXIO if it is not.
Do you expect any callers to be altered as a result of this change?
If so, full details would be helpful.