Skip to content

Commit 9eff303

Browse files
committed
x86/crash: Align function arguments on opening braces
... or let function calls stick out and thus remain on a single line, even if the 80 cols rule is violated by a couple of chars, for better readability. No functional changes. Signed-off-by: Borislav Petkov <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
1 parent 7c321eb commit 9eff303

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

arch/x86/kernel/crash.c

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,7 @@ static struct crash_mem *fill_up_crash_elf_data(void)
202202
unsigned int nr_ranges = 0;
203203
struct crash_mem *cmem;
204204

205-
walk_system_ram_res(0, -1, &nr_ranges,
206-
get_nr_ram_ranges_callback);
205+
walk_system_ram_res(0, -1, &nr_ranges, get_nr_ram_ranges_callback);
207206
if (!nr_ranges)
208207
return NULL;
209208

@@ -240,10 +239,9 @@ static int elf_header_exclude_ranges(struct crash_mem *cmem)
240239
if (ret)
241240
return ret;
242241

243-
if (crashk_low_res.end) {
242+
if (crashk_low_res.end)
244243
ret = crash_exclude_mem_range(cmem, crashk_low_res.start,
245-
crashk_low_res.end);
246-
}
244+
crashk_low_res.end);
247245

248246
return ret;
249247
}
@@ -270,8 +268,7 @@ static int prepare_elf_headers(struct kimage *image, void **addr,
270268
if (!cmem)
271269
return -ENOMEM;
272270

273-
ret = walk_system_ram_res(0, -1, cmem,
274-
prepare_elf64_ram_headers_callback);
271+
ret = walk_system_ram_res(0, -1, cmem, prepare_elf64_ram_headers_callback);
275272
if (ret)
276273
goto out;
277274

@@ -281,8 +278,7 @@ static int prepare_elf_headers(struct kimage *image, void **addr,
281278
goto out;
282279

283280
/* By default prepare 64bit headers */
284-
ret = crash_prepare_elf64_headers(cmem,
285-
IS_ENABLED(CONFIG_X86_64), addr, sz);
281+
ret = crash_prepare_elf64_headers(cmem, IS_ENABLED(CONFIG_X86_64), addr, sz);
286282

287283
out:
288284
vfree(cmem);
@@ -297,8 +293,7 @@ static int add_e820_entry(struct boot_params *params, struct e820_entry *entry)
297293
if (nr_e820_entries >= E820_MAX_ENTRIES_ZEROPAGE)
298294
return 1;
299295

300-
memcpy(&params->e820_table[nr_e820_entries], entry,
301-
sizeof(struct e820_entry));
296+
memcpy(&params->e820_table[nr_e820_entries], entry, sizeof(struct e820_entry));
302297
params->e820_entries++;
303298
return 0;
304299
}
@@ -353,24 +348,24 @@ int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params)
353348
cmd.type = E820_TYPE_RAM;
354349
flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
355350
walk_iomem_res_desc(IORES_DESC_NONE, flags, 0, (1<<20)-1, &cmd,
356-
memmap_entry_callback);
351+
memmap_entry_callback);
357352

358353
/* Add ACPI tables */
359354
cmd.type = E820_TYPE_ACPI;
360355
flags = IORESOURCE_MEM | IORESOURCE_BUSY;
361356
walk_iomem_res_desc(IORES_DESC_ACPI_TABLES, flags, 0, -1, &cmd,
362-
memmap_entry_callback);
357+
memmap_entry_callback);
363358

364359
/* Add ACPI Non-volatile Storage */
365360
cmd.type = E820_TYPE_NVS;
366361
walk_iomem_res_desc(IORES_DESC_ACPI_NV_STORAGE, flags, 0, -1, &cmd,
367-
memmap_entry_callback);
362+
memmap_entry_callback);
368363

369364
/* Add e820 reserved ranges */
370365
cmd.type = E820_TYPE_RESERVED;
371366
flags = IORESOURCE_MEM;
372367
walk_iomem_res_desc(IORES_DESC_RESERVED, flags, 0, -1, &cmd,
373-
memmap_entry_callback);
368+
memmap_entry_callback);
374369

375370
/* Add crashk_low_res region */
376371
if (crashk_low_res.end) {
@@ -381,8 +376,7 @@ int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params)
381376
}
382377

383378
/* Exclude some ranges from crashk_res and add rest to memmap */
384-
ret = memmap_exclude_ranges(image, cmem, crashk_res.start,
385-
crashk_res.end);
379+
ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end);
386380
if (ret)
387381
goto out;
388382

0 commit comments

Comments
 (0)