--- zzzz-none-000/linux-4.4.271/fs/pstore/platform.c 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/fs/pstore/platform.c 2023-01-11 09:25:43.000000000 +0000 @@ -509,6 +509,13 @@ } EXPORT_SYMBOL_GPL(pstore_unregister); +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 the persistent store. Create * files in our filesystem. Don't warn about -EEXIST errors