hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/drivers/mtd/mtdoops.c
....@@ -1,24 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * MTD Oops/Panic logger
34 *
45 * Copyright © 2007 Nokia Corporation. All rights reserved.
56 *
67 * Author: Richard Purdie <rpurdie@openedhand.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * version 2 as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but
13
- * WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
- * 02110-1301 USA
21
- *
228 */
239
2410 #include <linux/kernel.h>
....@@ -281,7 +267,8 @@
281267 }
282268
283269 static void mtdoops_do_dump(struct kmsg_dumper *dumper,
284
- enum kmsg_dump_reason reason)
270
+ enum kmsg_dump_reason reason,
271
+ struct kmsg_dumper_iter *iter)
285272 {
286273 struct mtdoops_context *cxt = container_of(dumper,
287274 struct mtdoops_context, dump);
....@@ -290,7 +277,7 @@
290277 if (reason == KMSG_DUMP_OOPS && !dump_oops)
291278 return;
292279
293
- kmsg_dump_get_buffer(dumper, true, cxt->oops_buf + MTDOOPS_HEADER_SIZE,
280
+ kmsg_dump_get_buffer(iter, true, cxt->oops_buf + MTDOOPS_HEADER_SIZE,
294281 record_size - MTDOOPS_HEADER_SIZE, NULL);
295282
296283 if (reason != KMSG_DUMP_OOPS) {