ACPI: APEI: mark bert_disable as __initdata

Message ID 20230606122819.343378-1-linmiaohe@huawei.com
State New
Headers
Series ACPI: APEI: mark bert_disable as __initdata |

Commit Message

Miaohe Lin June 6, 2023, 12:28 p.m. UTC
  It's only used inside __init section. Mark it __initdata.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
 drivers/acpi/apei/bert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Rafael J. Wysocki June 12, 2023, 5:24 p.m. UTC | #1
On Tue, Jun 6, 2023 at 2:28 PM Miaohe Lin <linmiaohe@huawei.com> wrote:
>
> It's only used inside __init section. Mark it __initdata.
>
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
> ---
>  drivers/acpi/apei/bert.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/apei/bert.c b/drivers/acpi/apei/bert.c
> index 7514e38d5640..5427e49e646b 100644
> --- a/drivers/acpi/apei/bert.c
> +++ b/drivers/acpi/apei/bert.c
> @@ -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
> --

Applied as 6.5 material, thanks!
  

Patch

diff --git a/drivers/acpi/apei/bert.c b/drivers/acpi/apei/bert.c
index 7514e38d5640..5427e49e646b 100644
--- a/drivers/acpi/apei/bert.c
+++ b/drivers/acpi/apei/bert.c
@@ -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