Skip to content

Commit 5621635

Browse files
Liu Shixinrafaeljw
authored andcommitted
ACPI: HMAT: Drop unused dev_fmt() and redundant 'HMAT' prefix
Remove unused macro dev_pmt() and redundant 'HMAT' prefix from pr_*() calls. Signed-off-by: Liu Shixin <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 211391b commit 5621635

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

drivers/acpi/numa/hmat.c

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
#define pr_fmt(fmt) "acpi/hmat: " fmt
12-
#define dev_fmt(fmt) "acpi/hmat: " fmt
1312

1413
#include <linux/acpi.h>
1514
#include <linux/bitops.h>
@@ -302,7 +301,7 @@ static __init int hmat_parse_locality(union acpi_subtable_headers *header,
302301
u8 type, mem_hier;
303302

304303
if (hmat_loc->header.length < sizeof(*hmat_loc)) {
305-
pr_notice("HMAT: Unexpected locality header length: %u\n",
304+
pr_notice("Unexpected locality header length: %u\n",
306305
hmat_loc->header.length);
307306
return -EINVAL;
308307
}
@@ -314,12 +313,12 @@ static __init int hmat_parse_locality(union acpi_subtable_headers *header,
314313
total_size = sizeof(*hmat_loc) + sizeof(*entries) * ipds * tpds +
315314
sizeof(*inits) * ipds + sizeof(*targs) * tpds;
316315
if (hmat_loc->header.length < total_size) {
317-
pr_notice("HMAT: Unexpected locality header length:%u, minimum required:%u\n",
316+
pr_notice("Unexpected locality header length:%u, minimum required:%u\n",
318317
hmat_loc->header.length, total_size);
319318
return -EINVAL;
320319
}
321320

322-
pr_info("HMAT: Locality: Flags:%02x Type:%s Initiator Domains:%u Target Domains:%u Base:%lld\n",
321+
pr_info("Locality: Flags:%02x Type:%s Initiator Domains:%u Target Domains:%u Base:%lld\n",
323322
hmat_loc->flags, hmat_data_type(type), ipds, tpds,
324323
hmat_loc->entry_base_unit);
325324

@@ -363,13 +362,13 @@ static __init int hmat_parse_cache(union acpi_subtable_headers *header,
363362
u32 attrs;
364363

365364
if (cache->header.length < sizeof(*cache)) {
366-
pr_notice("HMAT: Unexpected cache header length: %u\n",
365+
pr_notice("Unexpected cache header length: %u\n",
367366
cache->header.length);
368367
return -EINVAL;
369368
}
370369

371370
attrs = cache->cache_attributes;
372-
pr_info("HMAT: Cache: Domain:%u Size:%llu Attrs:%08x SMBIOS Handles:%d\n",
371+
pr_info("Cache: Domain:%u Size:%llu Attrs:%08x SMBIOS Handles:%d\n",
373372
cache->memory_PD, cache->cache_size, attrs,
374373
cache->number_of_SMBIOShandles);
375374

@@ -424,32 +423,32 @@ static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *heade
424423
struct memory_target *target = NULL;
425424

426425
if (p->header.length != sizeof(*p)) {
427-
pr_notice("HMAT: Unexpected address range header length: %u\n",
426+
pr_notice("Unexpected address range header length: %u\n",
428427
p->header.length);
429428
return -EINVAL;
430429
}
431430

432431
if (hmat_revision == 1)
433-
pr_info("HMAT: Memory (%#llx length %#llx) Flags:%04x Processor Domain:%u Memory Domain:%u\n",
432+
pr_info("Memory (%#llx length %#llx) Flags:%04x Processor Domain:%u Memory Domain:%u\n",
434433
p->reserved3, p->reserved4, p->flags, p->processor_PD,
435434
p->memory_PD);
436435
else
437-
pr_info("HMAT: Memory Flags:%04x Processor Domain:%u Memory Domain:%u\n",
436+
pr_info("Memory Flags:%04x Processor Domain:%u Memory Domain:%u\n",
438437
p->flags, p->processor_PD, p->memory_PD);
439438

440439
if ((hmat_revision == 1 && p->flags & ACPI_HMAT_MEMORY_PD_VALID) ||
441440
hmat_revision > 1) {
442441
target = find_mem_target(p->memory_PD);
443442
if (!target) {
444-
pr_debug("HMAT: Memory Domain missing from SRAT\n");
443+
pr_debug("Memory Domain missing from SRAT\n");
445444
return -EINVAL;
446445
}
447446
}
448447
if (target && p->flags & ACPI_HMAT_PROCESSOR_PD_VALID) {
449448
int p_node = pxm_to_node(p->processor_PD);
450449

451450
if (p_node == NUMA_NO_NODE) {
452-
pr_debug("HMAT: Invalid Processor Domain\n");
451+
pr_debug("Invalid Processor Domain\n");
453452
return -EINVAL;
454453
}
455454
target->processor_pxm = p->processor_PD;
@@ -840,15 +839,15 @@ static __init int hmat_init(void)
840839
case 2:
841840
break;
842841
default:
843-
pr_notice("Ignoring HMAT: Unknown revision:%d\n", hmat_revision);
842+
pr_notice("Ignoring: Unknown revision:%d\n", hmat_revision);
844843
goto out_put;
845844
}
846845

847846
for (i = ACPI_HMAT_TYPE_PROXIMITY; i < ACPI_HMAT_TYPE_RESERVED; i++) {
848847
if (acpi_table_parse_entries(ACPI_SIG_HMAT,
849848
sizeof(struct acpi_table_hmat), i,
850849
hmat_parse_subtable, 0) < 0) {
851-
pr_notice("Ignoring HMAT: Invalid table");
850+
pr_notice("Ignoring: Invalid table");
852851
goto out_put;
853852
}
854853
}

0 commit comments

Comments
 (0)