Skip to content

Commit

Permalink
ACPI: APEI: mark bert_disable as __initdata
Browse files Browse the repository at this point in the history
It's only used inside the __init section. Mark it __initdata.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Miaohe Lin authored and Rafael J. Wysocki committed Jun 12, 2023
1 parent 4348270 commit d38f6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/apei/bert.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#define ACPI_BERT_PRINT_MAX_RECORDS 5
#define ACPI_BERT_PRINT_MAX_LEN 1024

static int bert_disable;
static int bert_disable __initdata;

/*
* Print "all" the error records in the BERT table, but avoid huge spam to
Expand Down

0 comments on commit d38f6bc

Please sign in to comment.