--- zzzz-none-000/linux-4.4.271/fs/pstore/platform.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/fs/pstore/platform.c 2023-04-19 10:22:30.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