GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:paulmck/linux-rcu/nmitest.2023.01.20a 4/5] arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for 'set_nmi_torture'
@ 2023-01-21  3:50 kernel test robot
  2023-01-21  4:35 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-01-21  3:50 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List

tree:   https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/nmitest.2023.01.20a
head:   53e298568bde2c728ee2aac4ac634cca8550a4b4
commit: 1f061ebc3647245564abc8b5a47882645af82199 [4/5] x86/nmi: Add a set_nmi_torture() function to control NMI testing
config: x86_64-rhel-8.3-syz (https://download.01.org/0day-ci/archive/20230121/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/1f061ebc3647245564abc8b5a47882645af82199
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/nmitest.2023.01.20a
        git checkout 1f061ebc3647245564abc8b5a47882645af82199
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for 'set_nmi_torture' [-Wmissing-prototypes]
     441 | void set_nmi_torture(int nmi_delay_in, bool nmi_halt1_in, bool nmi_halt2_in, bool nmi_halt3_in)
         |      ^~~~~~~~~~~~~~~


vim +/set_nmi_torture +441 arch/x86/kernel/nmi.c

   439	
   440	/* Set the test values as desired. */
 > 441	void set_nmi_torture(int nmi_delay_in, bool nmi_halt1_in, bool nmi_halt2_in, bool nmi_halt3_in)
   442	{
   443		WRITE_ONCE(nmi_delay, nmi_delay_in);
   444		WRITE_ONCE(nmi_halt1, nmi_halt1_in);
   445		WRITE_ONCE(nmi_halt2, nmi_halt2_in);
   446		WRITE_ONCE(nmi_halt3, nmi_halt3_in);
   447		pr_info("%s: Set NMI test parameters nmi_delay=%d nmi_halt1=%d nmi_halt2=%d nmi_halt3=%d\n",
   448			__func__, nmi_delay, nmi_halt1, nmi_halt2, nmi_halt3);
   449	}
   450	EXPORT_SYMBOL_GPL(set_nmi_torture);
   451	

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

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

* Re: [ammarfaizi2-block:paulmck/linux-rcu/nmitest.2023.01.20a 4/5] arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for 'set_nmi_torture'
  2023-01-21  3:50 [ammarfaizi2-block:paulmck/linux-rcu/nmitest.2023.01.20a 4/5] arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for 'set_nmi_torture' kernel test robot
@ 2023-01-21  4:35 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2023-01-21  4:35 UTC (permalink / raw)
  To: kernel test robot; +Cc: oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List

On Sat, Jan 21, 2023 at 11:50:25AM +0800, kernel test robot wrote:
> tree:   https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/nmitest.2023.01.20a
> head:   53e298568bde2c728ee2aac4ac634cca8550a4b4
> commit: 1f061ebc3647245564abc8b5a47882645af82199 [4/5] x86/nmi: Add a set_nmi_torture() function to control NMI testing
> config: x86_64-rhel-8.3-syz (https://download.01.org/0day-ci/archive/20230121/[email protected]/config)
> compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
> reproduce (this is a W=1 build):
>         # https://github.com/ammarfaizi2/linux-block/commit/1f061ebc3647245564abc8b5a47882645af82199
>         git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
>         git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/nmitest.2023.01.20a
>         git checkout 1f061ebc3647245564abc8b5a47882645af82199
>         # save the config file
>         mkdir build_dir && cp config build_dir/.config
>         make W=1 O=build_dir ARCH=x86_64 olddefconfig
>         make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/
> 
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <[email protected]>
> 
> All warnings (new ones prefixed by >>):
> 
> >> arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for 'set_nmi_torture' [-Wmissing-prototypes]
>      441 | void set_nmi_torture(int nmi_delay_in, bool nmi_halt1_in, bool nmi_halt2_in, bool nmi_halt3_in)
>          |      ^~~~~~~~~~~~~~~

This is a not-for-mainline test commit, so I am not worried about making
it pretty.  Not yet, anyway.  ;-)

							Thanx, Paul

> vim +/set_nmi_torture +441 arch/x86/kernel/nmi.c
> 
>    439	
>    440	/* Set the test values as desired. */
>  > 441	void set_nmi_torture(int nmi_delay_in, bool nmi_halt1_in, bool nmi_halt2_in, bool nmi_halt3_in)
>    442	{
>    443		WRITE_ONCE(nmi_delay, nmi_delay_in);
>    444		WRITE_ONCE(nmi_halt1, nmi_halt1_in);
>    445		WRITE_ONCE(nmi_halt2, nmi_halt2_in);
>    446		WRITE_ONCE(nmi_halt3, nmi_halt3_in);
>    447		pr_info("%s: Set NMI test parameters nmi_delay=%d nmi_halt1=%d nmi_halt2=%d nmi_halt3=%d\n",
>    448			__func__, nmi_delay, nmi_halt1, nmi_halt2, nmi_halt3);
>    449	}
>    450	EXPORT_SYMBOL_GPL(set_nmi_torture);
>    451	
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests

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

end of thread, other threads:[~2023-01-21  4:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-21  3:50 [ammarfaizi2-block:paulmck/linux-rcu/nmitest.2023.01.20a 4/5] arch/x86/kernel/nmi.c:441:6: warning: no previous prototype for 'set_nmi_torture' kernel test robot
2023-01-21  4:35 ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox