* [akpm-mm:mm-nonmm-unstable 80/82] kernel/watchdog_perf.c:282: warning: Function parameter or struct member 'str' not described in 'hardlockup_config_perf_event'
@ 2024-05-04 0:38 kernel test robot
2024-05-04 22:44 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2024-05-04 0:38 UTC (permalink / raw)
To: Song Liu; +Cc: oe-kbuild-all, Andrew Morton, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
head: 2ce87845f9106e693ba6d72cc95af6c86dc52d98
commit: 96dca662f6d64b4d31ad186ea1464e9b25d749c3 [80/82] watchdog: allow nmi watchdog to use raw perf event
config: x86_64-buildonly-randconfig-003-20240504 (https://download.01.org/0day-ci/archive/20240504/202405040851.2EgypmL1-lkp@intel.com/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405040851.2EgypmL1-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/202405040851.2EgypmL1-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/watchdog_perf.c:282: warning: Function parameter or struct member 'str' not described in 'hardlockup_config_perf_event'
vim +282 kernel/watchdog_perf.c
277
278 /**
279 * hardlockup_config_perf_event - Overwrite config of wd_hw_attr.
280 */
281 void __init hardlockup_config_perf_event(const char *str)
> 282 {
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [akpm-mm:mm-nonmm-unstable 80/82] kernel/watchdog_perf.c:282: warning: Function parameter or struct member 'str' not described in 'hardlockup_config_perf_event'
2024-05-04 0:38 [akpm-mm:mm-nonmm-unstable 80/82] kernel/watchdog_perf.c:282: warning: Function parameter or struct member 'str' not described in 'hardlockup_config_perf_event' kernel test robot
@ 2024-05-04 22:44 ` Andrew Morton
2024-05-04 22:47 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2024-05-04 22:44 UTC (permalink / raw)
To: kernel test robot; +Cc: Song Liu, oe-kbuild-all, Linux Memory Management List
On Sat, 4 May 2024 08:38:45 +0800 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
> head: 2ce87845f9106e693ba6d72cc95af6c86dc52d98
> commit: 96dca662f6d64b4d31ad186ea1464e9b25d749c3 [80/82] watchdog: allow nmi watchdog to use raw perf event
> config: x86_64-buildonly-randconfig-003-20240504 (https://download.01.org/0day-ci/archive/20240504/202405040851.2EgypmL1-lkp@intel.com/config)
> compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240504/202405040851.2EgypmL1-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/202405040851.2EgypmL1-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> kernel/watchdog_perf.c:282: warning: Function parameter or struct member 'str' not described in 'hardlockup_config_perf_event'
>
>
> vim +282 kernel/watchdog_perf.c
>
> 277
> 278 /**
> 279 * hardlockup_config_perf_event - Overwrite config of wd_hw_attr.
> 280 */
> 281 void __init hardlockup_config_perf_event(const char *str)
> > 282 {
Thanks, how does this look?
--- a/kernel/watchdog_perf.c~watchdog-allow-nmi-watchdog-to-use-raw-perf-event-fix
+++ a/kernel/watchdog_perf.c
@@ -277,6 +277,8 @@ int __init watchdog_hardlockup_probe(voi
/**
* hardlockup_config_perf_event - Overwrite config of wd_hw_attr.
+ *
+ * @str: number which identifies the raw perf event to use
*/
void __init hardlockup_config_perf_event(const char *str)
{
_
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [akpm-mm:mm-nonmm-unstable 80/82] kernel/watchdog_perf.c:282: warning: Function parameter or struct member 'str' not described in 'hardlockup_config_perf_event'
2024-05-04 22:44 ` Andrew Morton
@ 2024-05-04 22:47 ` Matthew Wilcox
0 siblings, 0 replies; 3+ messages in thread
From: Matthew Wilcox @ 2024-05-04 22:47 UTC (permalink / raw)
To: Andrew Morton
Cc: kernel test robot, Song Liu, oe-kbuild-all, Linux Memory Management List
On Sat, May 04, 2024 at 03:44:55PM -0700, Andrew Morton wrote:
> +++ a/kernel/watchdog_perf.c
> @@ -277,6 +277,8 @@ int __init watchdog_hardlockup_probe(voi
>
> /**
> * hardlockup_config_perf_event - Overwrite config of wd_hw_attr.
> + *
> + * @str: number which identifies the raw perf event to use
> */
> void __init hardlockup_config_perf_event(const char *str)
We don't usually put a blank line between the name of the function and
the arguments, but other than that, looks good.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-04 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-04 0:38 [akpm-mm:mm-nonmm-unstable 80/82] kernel/watchdog_perf.c:282: warning: Function parameter or struct member 'str' not described in 'hardlockup_config_perf_event' kernel test robot
2024-05-04 22:44 ` Andrew Morton
2024-05-04 22:47 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox