linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [daniel-lezcano:timers/drivers/next 4/9] drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
@ 2024-09-03  6:10 kernel test robot
  2024-09-03  8:30 ` Hans de Goede
  0 siblings, 1 reply; 6+ messages in thread
From: kernel test robot @ 2024-09-03  6:10 UTC (permalink / raw)
  To: Marek Maslanka; +Cc: oe-kbuild-all, Daniel Lezcano, Hans de Goede, linux-doc

tree:   http://git.linaro.org/people/daniel.lezcano/linux timers/drivers/next
head:   8f8b0349aa312eb7e67e623ed1f296a04126fe7f
commit: 2d167560d43c809c66e6389b6cc651b77fcbf951 [4/9] platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409031410.a9beukFc-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
    * Enable or disable ACPI PM Timer


vim +1213 drivers/platform/x86/intel/pmc/core.c

  1211	
  1212	/**
> 1213	 * Enable or disable ACPI PM Timer
  1214	 *
  1215	 * This function is intended to be a callback for ACPI PM suspend/resume event.
  1216	 * The ACPI PM Timer is enabled on resume only if it was enabled during suspend.
  1217	 */
  1218	static void pmc_core_acpi_pm_timer_suspend_resume(void *data, bool suspend)
  1219	{
  1220		struct pmc_dev *pmcdev = data;
  1221		struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN];
  1222		const struct pmc_reg_map *map = pmc->map;
  1223		bool enabled;
  1224		u32 reg;
  1225	
  1226		if (!map->acpi_pm_tmr_ctl_offset)
  1227			return;
  1228	
  1229		guard(mutex)(&pmcdev->lock);
  1230	
  1231		if (!suspend && !pmcdev->enable_acpi_pm_timer_on_resume)
  1232			return;
  1233	
  1234		reg = pmc_core_reg_read(pmc, map->acpi_pm_tmr_ctl_offset);
  1235		enabled = !(reg & map->acpi_pm_tmr_disable_bit);
  1236		if (suspend)
  1237			reg |= map->acpi_pm_tmr_disable_bit;
  1238		else
  1239			reg &= ~map->acpi_pm_tmr_disable_bit;
  1240		pmc_core_reg_write(pmc, map->acpi_pm_tmr_ctl_offset, reg);
  1241	
  1242		pmcdev->enable_acpi_pm_timer_on_resume = suspend && enabled;
  1243	}
  1244	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [daniel-lezcano:timers/drivers/next 4/9] drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
  2024-09-03  6:10 [daniel-lezcano:timers/drivers/next 4/9] drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst kernel test robot
@ 2024-09-03  8:30 ` Hans de Goede
       [not found]   ` <CAGcaFA1RbfghBahot831C0ko3Nn2HegNTd0jtD4ajawcsJESdA@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Hans de Goede @ 2024-09-03  8:30 UTC (permalink / raw)
  To: kernel test robot, Marek Maslanka
  Cc: oe-kbuild-all, Daniel Lezcano, linux-doc

Hi,

On 9/3/24 8:10 AM, kernel test robot wrote:
> tree:   http://git.linaro.org/people/daniel.lezcano/linux timers/drivers/next
> head:   8f8b0349aa312eb7e67e623ed1f296a04126fe7f
> commit: 2d167560d43c809c66e6389b6cc651b77fcbf951 [4/9] platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended
> config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/config)
> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202409031410.a9beukFc-lkp@intel.com/
> 
> All warnings (new ones prefixed by >>):
> 
>>> drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>     * Enable or disable ACPI PM Timer
> 
> 
> vim +1213 drivers/platform/x86/intel/pmc/core.c
> 
>   1211	
>   1212	/**
>> 1213	 * Enable or disable ACPI PM Timer
>   1214	 *
>   1215	 * This function is intended to be a callback for ACPI PM suspend/resume event.
>   1216	 * The ACPI PM Timer is enabled on resume only if it was enabled during suspend.
>   1217	 */

Ok, so to fix this we just need to change the /** to /* .

Marek, can you please submit a patch for this to Daniel?

Since the commit introducing this problem is in Daniel's
linux/timers/drivers/next tree, the fix will need to be merged
there too.

Regards,

Hans



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [daniel-lezcano:timers/drivers/next 4/9] drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       [not found]   ` <CAGcaFA1RbfghBahot831C0ko3Nn2HegNTd0jtD4ajawcsJESdA@mail.gmail.com>
@ 2024-09-03 21:36     ` Hans de Goede
  2024-09-04  9:47       ` [PATCH] platform/x86:intel/pmc: Fix comment for the pmc_core_acpi_pm_timer_suspend_resume function Marek Maslanka
  0 siblings, 1 reply; 6+ messages in thread
From: Hans de Goede @ 2024-09-03 21:36 UTC (permalink / raw)
  To: Marek Maślanka
  Cc: kernel test robot, oe-kbuild-all, Daniel Lezcano, linux-doc

Hi Marek,

On 9/3/24 11:32 PM, Marek Maślanka wrote:
> Hello Hans,
> Do I need to send the fixed patch v7 in response to the https://lore.kernel.org/lkml/e438d8c4-3c10-4674-916b-dd645d19f210@linaro.org/ <https://lore.kernel.org/lkml/e438d8c4-3c10-4674-916b-dd645d19f210@linaro.org/> to continue the thread?

Since Daniel has already merged the patches the fix should be a new separate
patch which only replaces the '/**' with '/*' on top of the:

timers/drivers/next branch of  http://git.linaro.org/people/daniel.lezcano/linux.git:

http://git.linaro.org/people/daniel.lezcano/linux.git/log/?h=timers/drivers/next

Regards,

Hans





> On Tue, Sep 3, 2024 at 10:31 AM Hans de Goede <hdegoede@redhat.com <mailto:hdegoede@redhat.com>> wrote:
> 
>     Hi,
> 
>     On 9/3/24 8:10 AM, kernel test robot wrote:
>     > tree:   http://git.linaro.org/people/daniel.lezcano/linux <http://git.linaro.org/people/daniel.lezcano/linux> timers/drivers/next
>     > head:   8f8b0349aa312eb7e67e623ed1f296a04126fe7f
>     > commit: 2d167560d43c809c66e6389b6cc651b77fcbf951 [4/9] platform/x86:intel/pmc: Enable the ACPI PM Timer to be turned off when suspended
>     > config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/config <https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/config>)
>     > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
>     > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/reproduce <https://download.01.org/0day-ci/archive/20240903/202409031410.a9beukFc-lkp@intel.com/reproduce>)
>     >
>     > If you fix the issue in a separate patch/commit (i.e. not just a new version of
>     > the same patch/commit), kindly add following tags
>     > | Reported-by: kernel test robot <lkp@intel.com <mailto:lkp@intel.com>>
>     > | Closes: https://lore.kernel.org/oe-kbuild-all/202409031410.a9beukFc-lkp@intel.com/ <https://lore.kernel.org/oe-kbuild-all/202409031410.a9beukFc-lkp@intel.com/>
>     >
>     > All warnings (new ones prefixed by >>):
>     >
>     >>> drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>     >     * Enable or disable ACPI PM Timer
>     >
>     >
>     > vim +1213 drivers/platform/x86/intel/pmc/core.c
>     >
>     >   1211       
>     >   1212        /**
>     >> 1213  * Enable or disable ACPI PM Timer
>     >   1214         *
>     >   1215         * This function is intended to be a callback for ACPI PM suspend/resume event.
>     >   1216         * The ACPI PM Timer is enabled on resume only if it was enabled during suspend.
>     >   1217         */
> 
>     Ok, so to fix this we just need to change the /** to /* .
> 
>     Marek, can you please submit a patch for this to Daniel?
> 
>     Since the commit introducing this problem is in Daniel's
>     linux/timers/drivers/next tree, the fix will need to be merged
>     there too.
> 
>     Regards,
> 
>     Hans
> 
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] platform/x86:intel/pmc: Fix comment for the pmc_core_acpi_pm_timer_suspend_resume function
  2024-09-03 21:36     ` Hans de Goede
@ 2024-09-04  9:47       ` Marek Maslanka
  2024-09-04  9:56         ` Hans de Goede
  2024-09-04  9:56         ` Daniel Lezcano
  0 siblings, 2 replies; 6+ messages in thread
From: Marek Maslanka @ 2024-09-04  9:47 UTC (permalink / raw)
  To: hdegoede; +Cc: daniel.lezcano, linux-doc, lkp, mmaslanka, oe-kbuild-all

Change incorrect kernel-doc comment to regular comment for the
pmc_core_acpi_pm_timer_suspend_resume function.

Signed-off-by: Marek Maslanka <mmaslanka@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409031410.a9beukFc-lkp@intel.com/
---
 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 c91c753b120e..e2b4c74ce7f6 100644
--- a/drivers/platform/x86/intel/pmc/core.c
+++ b/drivers/platform/x86/intel/pmc/core.c
@@ -1209,7 +1209,7 @@ static bool pmc_core_is_pson_residency_enabled(struct pmc_dev *pmcdev)
 	return val == 1;
 }
 
-/**
+/*
  * Enable or disable ACPI PM Timer
  *
  * This function is intended to be a callback for ACPI PM suspend/resume event.
-- 
2.46.0.469.g59c65b2a67-goog


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] platform/x86:intel/pmc: Fix comment for the pmc_core_acpi_pm_timer_suspend_resume function
  2024-09-04  9:47       ` [PATCH] platform/x86:intel/pmc: Fix comment for the pmc_core_acpi_pm_timer_suspend_resume function Marek Maslanka
@ 2024-09-04  9:56         ` Hans de Goede
  2024-09-04  9:56         ` Daniel Lezcano
  1 sibling, 0 replies; 6+ messages in thread
From: Hans de Goede @ 2024-09-04  9:56 UTC (permalink / raw)
  To: Marek Maslanka, daniel.lezcano; +Cc: linux-doc, lkp, oe-kbuild-all

Hi,

On 9/4/24 11:47 AM, Marek Maslanka wrote:
> Change incorrect kernel-doc comment to regular comment for the
> pmc_core_acpi_pm_timer_suspend_resume function.
> 
> Signed-off-by: Marek Maslanka <mmaslanka@google.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202409031410.a9beukFc-lkp@intel.com/

Looks good, thank you.

Daniel can you add this to the timers/drivers/next branch please?

Regards,

Hans



> ---
>  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 c91c753b120e..e2b4c74ce7f6 100644
> --- a/drivers/platform/x86/intel/pmc/core.c
> +++ b/drivers/platform/x86/intel/pmc/core.c
> @@ -1209,7 +1209,7 @@ static bool pmc_core_is_pson_residency_enabled(struct pmc_dev *pmcdev)
>  	return val == 1;
>  }
>  
> -/**
> +/*
>   * Enable or disable ACPI PM Timer
>   *
>   * This function is intended to be a callback for ACPI PM suspend/resume event.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] platform/x86:intel/pmc: Fix comment for the pmc_core_acpi_pm_timer_suspend_resume function
  2024-09-04  9:47       ` [PATCH] platform/x86:intel/pmc: Fix comment for the pmc_core_acpi_pm_timer_suspend_resume function Marek Maslanka
  2024-09-04  9:56         ` Hans de Goede
@ 2024-09-04  9:56         ` Daniel Lezcano
  1 sibling, 0 replies; 6+ messages in thread
From: Daniel Lezcano @ 2024-09-04  9:56 UTC (permalink / raw)
  To: Marek Maslanka, hdegoede; +Cc: linux-doc, lkp, oe-kbuild-all

On 04/09/2024 11:47, Marek Maslanka wrote:
> Change incorrect kernel-doc comment to regular comment for the
> pmc_core_acpi_pm_timer_suspend_resume function.
> 
> Signed-off-by: Marek Maslanka <mmaslanka@google.com>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202409031410.a9beukFc-lkp@intel.com/
> ---
>   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 c91c753b120e..e2b4c74ce7f6 100644
> --- a/drivers/platform/x86/intel/pmc/core.c
> +++ b/drivers/platform/x86/intel/pmc/core.c
> @@ -1209,7 +1209,7 @@ static bool pmc_core_is_pson_residency_enabled(struct pmc_dev *pmcdev)
>   	return val == 1;
>   }
>   
> -/**
> +/*
>    * Enable or disable ACPI PM Timer
>    *
>    * This function is intended to be a callback for ACPI PM suspend/resume event.

Applied, thanks

-- 
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-04  9:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-03  6:10 [daniel-lezcano:timers/drivers/next 4/9] drivers/platform/x86/intel/pmc/core.c:1213: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst kernel test robot
2024-09-03  8:30 ` Hans de Goede
     [not found]   ` <CAGcaFA1RbfghBahot831C0ko3Nn2HegNTd0jtD4ajawcsJESdA@mail.gmail.com>
2024-09-03 21:36     ` Hans de Goede
2024-09-04  9:47       ` [PATCH] platform/x86:intel/pmc: Fix comment for the pmc_core_acpi_pm_timer_suspend_resume function Marek Maslanka
2024-09-04  9:56         ` Hans de Goede
2024-09-04  9:56         ` Daniel Lezcano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).