diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2026-10-16 18:44:24 +0200 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2026-10-16 18:44:27 +0200 |
| commit | 655e6054acfbc3a6e0ad0e78e006e62fd49f8335 (patch) | |
| tree | c4c355a86cfbb2a1aa590c483453e5645c9847f8 /lib | |
| parent | b45ebc4a7cfad8cd24bf174366025ce148ded5db (diff) | |
| parent | b2f3a170ae968fac6270e89ce5738685bd2e530c (diff) | |
Merge tag 'cache-for-v7.4' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into soc/drivers
standalone cache drivers for v7.4
Three low-priority bugfixes for issues in the hisi hha and sifive ccache
drivers as well as the core code.
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
* tag 'cache-for-v7.4' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux:
cache: Make cpu_cache_invalidate_memregion() error out if there are no handlers
cache: sifive_ccache: Remove redundant dev_err_probe()
cache: hisi_soc_hha: use named initializers for acpi_device_id
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cache_maint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cache_maint.c b/lib/cache_maint.c index 9256a9ffc34c..132d2816d6b1 100644 --- a/lib/cache_maint.c +++ b/lib/cache_maint.c @@ -59,12 +59,12 @@ static int cache_inval_done_one(struct cache_coherency_ops_inst *cci) static int cache_invalidate_memregion(phys_addr_t addr, size_t size) { - int ret; struct cache_coherency_ops_inst *cci; struct cc_inval_params params = { .addr = addr, .size = size, }; + int ret = -ENXIO; guard(rwsem_read)(&cache_ops_instance_list_lock); list_for_each_entry(cci, &cache_ops_instance_list, node) { @@ -78,7 +78,7 @@ static int cache_invalidate_memregion(phys_addr_t addr, size_t size) return ret; } - return 0; + return ret; } struct cache_coherency_ops_inst * |
