lkml.org 
[lkml]   [2022]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC PATCH] ACPI: PCC: pcc_ctx can be static
    drivers/acpi/acpi_pcc.c:34:22: warning: symbol 'pcc_ctx' was not declared. Should it be static?

    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: kernel test robot <lkp@intel.com>
    ---
    acpi_pcc.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/acpi/acpi_pcc.c b/drivers/acpi/acpi_pcc.c
    index 64552fdb73470..9df4d740b52a6 100644
    --- a/drivers/acpi/acpi_pcc.c
    +++ b/drivers/acpi/acpi_pcc.c
    @@ -31,7 +31,7 @@ struct pcc_data {
    struct acpi_pcc_info ctx;
    };

    -struct acpi_pcc_info pcc_ctx;
    +static struct acpi_pcc_info pcc_ctx;

    static void pcc_rx_callback(struct mbox_client *cl, void *m)
    {
    \
     
     \ /
      Last update: 2022-01-05 18:47    [W:2.528 / U:0.312 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site