--- zzzz-none-000/linux-5.4.213/include/linux/pstore_ram.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/linux/pstore_ram.h 2024-08-14 09:02:08.000000000 +0000 @@ -121,6 +121,12 @@ * Ramoops platform data * @mem_size memory size for ramoops * @mem_address physical memory address to contain ramoops + * @pmsg_size array containing size of each pmsg area. 0 value in the array + * indicates the end of the content. For example, if the following + * array is given, + * .pmsg_size = { 0x1000, 0x2000, 0x0, 0x3000, }; + * then, pmsg areas are allocated for the first two size values + * and '0x3000' is just ignored. */ #define RAMOOPS_FLAG_FTRACE_PER_CPU BIT(0) @@ -132,7 +138,7 @@ unsigned long record_size; unsigned long console_size; unsigned long ftrace_size; - unsigned long pmsg_size; + unsigned long *pmsg_size; int dump_oops; u32 flags; struct persistent_ram_ecc_info ecc_info;