--- zzzz-none-000/linux-5.4.213/fs/pstore/platform.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/fs/pstore/platform.c 2024-08-14 09:02:08.000000000 +0000 @@ -713,6 +713,13 @@ record->compressed = false; } +ssize_t pstore_copy(enum pstore_type_id type, u64 id, void **buf) +{ + if (!psinfo->copy) + return -EOPNOTSUPP; + return psinfo->copy(type, id, buf, psinfo); +} + /* * Read all the records from one persistent store backend. Create * files in our filesystem. Don't warn about -EEXIST errors