Re: [PATCH] ACPICA: make acpi_gbl_next_cmd_num static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 3, 2020 at 8:48 AM Jason Yan <yanaijie@xxxxxxxxxx> wrote:
>
> Fix the following sparse warning:
>
> drivers/acpi/acpica/dbhistry.c:30:5: warning: symbol
> 'acpi_gbl_next_cmd_num' was not declared. Should it be static?
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>

Bob, Erik, I'm leaving this one to you.

> ---
>  drivers/acpi/acpica/dbhistry.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/acpica/dbhistry.c b/drivers/acpi/acpica/dbhistry.c
> index bb9600b867ee..801b35a08174 100644
> --- a/drivers/acpi/acpica/dbhistry.c
> +++ b/drivers/acpi/acpica/dbhistry.c
> @@ -27,7 +27,7 @@ static HISTORY_INFO acpi_gbl_history_buffer[HISTORY_SIZE];
>  static u16 acpi_gbl_lo_history = 0;
>  static u16 acpi_gbl_num_history = 0;
>  static u16 acpi_gbl_next_history_index = 0;
> -u32 acpi_gbl_next_cmd_num = 1;
> +static u32 acpi_gbl_next_cmd_num = 1;
>
>  /*******************************************************************************
>   *
> --
> 2.17.2
>



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux