2019-03-26 20:30:12

by Guenter Roeck

[permalink] [raw]
Subject: [PATCH] platform/x86: intel_pmc_core: Mark local function static

0day reports:

drivers/platform/x86/intel_pmc_core.c:833:5: sparse:
symbol 'quirk_xtal_ignore' was not declared. Should it be static?

Mark the function static since it is indeed only called locally.

Cc: Rajneesh Bhardwaj <[email protected]>
Fixes: 238f9c11351f ("platform/x86: intel_pmc_core: Quirk to ignore XTAL shutdown")
Signed-off-by: Guenter Roeck <[email protected]>
---
drivers/platform/x86/intel_pmc_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
index f2c621b55f49..9908d233305e 100644
--- a/drivers/platform/x86/intel_pmc_core.c
+++ b/drivers/platform/x86/intel_pmc_core.c
@@ -828,7 +828,7 @@ static const struct pci_device_id pmc_pci_ids[] = {
* the platform BIOS enforces 24Mhx Crystal to shutdown
* before PMC can assert SLP_S0#.
*/
-int quirk_xtal_ignore(const struct dmi_system_id *id)
+static int quirk_xtal_ignore(const struct dmi_system_id *id)
{
struct pmc_dev *pmcdev = &pmc;
u32 value;
--
2.7.4



2019-03-27 12:47:59

by Bhardwaj, Rajneesh

[permalink] [raw]
Subject: Re: [PATCH] platform/x86: intel_pmc_core: Mark local function static


On 27-Mar-19 1:59 AM, Guenter Roeck wrote:
> 0day reports:
>
> drivers/platform/x86/intel_pmc_core.c:833:5: sparse:
> symbol 'quirk_xtal_ignore' was not declared. Should it be static?

Looks good to me.

> Mark the function static since it is indeed only called locally.
>
> Cc: Rajneesh Bhardwaj <[email protected]>
> Fixes: 238f9c11351f ("platform/x86: intel_pmc_core: Quirk to ignore XTAL shutdown")
> Signed-off-by: Guenter Roeck <[email protected]>
> ---
> drivers/platform/x86/intel_pmc_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
> index f2c621b55f49..9908d233305e 100644
> --- a/drivers/platform/x86/intel_pmc_core.c
> +++ b/drivers/platform/x86/intel_pmc_core.c
> @@ -828,7 +828,7 @@ static const struct pci_device_id pmc_pci_ids[] = {
> * the platform BIOS enforces 24Mhx Crystal to shutdown
> * before PMC can assert SLP_S0#.
> */
> -int quirk_xtal_ignore(const struct dmi_system_id *id)
> +static int quirk_xtal_ignore(const struct dmi_system_id *id)
> {
> struct pmc_dev *pmcdev = &pmc;
> u32 value;

2019-04-05 14:46:35

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH] platform/x86: intel_pmc_core: Mark local function static

On Wed, Mar 27, 2019 at 2:47 PM Bhardwaj, Rajneesh
<[email protected]> wrote:
>
>
> On 27-Mar-19 1:59 AM, Guenter Roeck wrote:
> > 0day reports:
> >
> > drivers/platform/x86/intel_pmc_core.c:833:5: sparse:
> > symbol 'quirk_xtal_ignore' was not declared. Should it be static?
>
> Looks good to me.

Please, give a corresponding tag.
Meanwhile I will apply it to my review and testing queue for robots to
play with, thanks!

>
> > Mark the function static since it is indeed only called locally.
> >
> > Cc: Rajneesh Bhardwaj <[email protected]>
> > Fixes: 238f9c11351f ("platform/x86: intel_pmc_core: Quirk to ignore XTAL shutdown")
> > Signed-off-by: Guenter Roeck <[email protected]>
> > ---
> > drivers/platform/x86/intel_pmc_core.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
> > index f2c621b55f49..9908d233305e 100644
> > --- a/drivers/platform/x86/intel_pmc_core.c
> > +++ b/drivers/platform/x86/intel_pmc_core.c
> > @@ -828,7 +828,7 @@ static const struct pci_device_id pmc_pci_ids[] = {
> > * the platform BIOS enforces 24Mhx Crystal to shutdown
> > * before PMC can assert SLP_S0#.
> > */
> > -int quirk_xtal_ignore(const struct dmi_system_id *id)
> > +static int quirk_xtal_ignore(const struct dmi_system_id *id)
> > {
> > struct pmc_dev *pmcdev = &pmc;
> > u32 value;



--
With Best Regards,
Andy Shevchenko

2019-04-05 14:50:33

by Bhardwaj, Rajneesh

[permalink] [raw]
Subject: Re: [PATCH] platform/x86: intel_pmc_core: Mark local function static

Sending again as i got delivery failure notification from the mailing
list for some reason.

On 05-Apr-19 8:15 PM, Andy Shevchenko wrote:
> On Wed, Mar 27, 2019 at 2:47 PM Bhardwaj, Rajneesh
> <[email protected]> wrote:
>>
>> On 27-Mar-19 1:59 AM, Guenter Roeck wrote:
>>> 0day reports:
>>>
>>> drivers/platform/x86/intel_pmc_core.c:833:5: sparse:
>>> symbol 'quirk_xtal_ignore' was not declared. Should it be static?
>> Looks good to me.
> Please, give a corresponding tag.
> Meanwhile I will apply it to my review and testing queue for robots to
> play with, thanks!

Sure.

Acked-by: Rajneesh Bhardwaj <[email protected]>


>>> Mark the function static since it is indeed only called locally.
>>>
>>> Cc: Rajneesh Bhardwaj <[email protected]>
>>> Fixes: 238f9c11351f ("platform/x86: intel_pmc_core: Quirk to ignore XTAL shutdown")
>>> Signed-off-by: Guenter Roeck <[email protected]>
>>> ---
>>> drivers/platform/x86/intel_pmc_core.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
>>> index f2c621b55f49..9908d233305e 100644
>>> --- a/drivers/platform/x86/intel_pmc_core.c
>>> +++ b/drivers/platform/x86/intel_pmc_core.c
>>> @@ -828,7 +828,7 @@ static const struct pci_device_id pmc_pci_ids[] = {
>>> * the platform BIOS enforces 24Mhx Crystal to shutdown
>>> * before PMC can assert SLP_S0#.
>>> */
>>> -int quirk_xtal_ignore(const struct dmi_system_id *id)
>>> +static int quirk_xtal_ignore(const struct dmi_system_id *id)
>>> {
>>> struct pmc_dev *pmcdev = &pmc;
>>> u32 value;
>
>

2019-04-05 16:25:41

by Andy Shevchenko

[permalink] [raw]
Subject: Re: [PATCH] platform/x86: intel_pmc_core: Mark local function static

On Fri, Apr 5, 2019 at 5:49 PM Bhardwaj, Rajneesh
<[email protected]> wrote:
> Sending again as i got delivery failure notification from the mailing
> list for some reason.

Mailing list doesn't accept HTML as was your previous message.

--
With Best Regards,
Andy Shevchenko