linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bp:rc0+notifiers 32/32] arch/s390/kernel/ipl.c:2072:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result'
@ 2021-11-06 18:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-06 18:30 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 6950 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git rc0+notifiers
head:   29ab05dcfc8e05ffc1cae77249ea956b787939d2
commit: 29ab05dcfc8e05ffc1cae77249ea956b787939d2 [32/32] notifier: Return an error when callback is already registered
config: s390-defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/commit/?id=29ab05dcfc8e05ffc1cae77249ea956b787939d2
        git remote add bp https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git
        git fetch --no-tags bp rc0+notifiers
        git checkout 29ab05dcfc8e05ffc1cae77249ea956b787939d2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=s390 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   arch/s390/kernel/ipl.c: In function 'setup_ipl':
>> arch/s390/kernel/ipl.c:2072:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
    2072 |         atomic_notifier_chain_register(&panic_notifier_list, &on_panic_nb);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   arch/s390/kvm/kvm-s390.c: In function 'kvm_arch_hardware_setup':
>> arch/s390/kvm/kvm-s390.c:328:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
     328 |         atomic_notifier_chain_register(&s390_epoch_delta_notifier,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     329 |                                        &kvm_clock_notifier);
         |                                        ~~~~~~~~~~~~~~~~~~~~
--
   drivers/s390/char/con3270.c: In function 'con3270_init':
>> drivers/s390/char/con3270.c:644:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
     644 |         atomic_notifier_chain_register(&panic_notifier_list, &on_panic_nb);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   drivers/s390/char/con3215.c: In function 'con3215_init':
>> drivers/s390/char/con3215.c:868:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
     868 |         atomic_notifier_chain_register(&panic_notifier_list, &on_panic_nb);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   drivers/s390/char/sclp_con.c: In function 'sclp_console_init':
>> drivers/s390/char/sclp_con.c:288:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
     288 |         atomic_notifier_chain_register(&panic_notifier_list, &on_panic_nb);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   drivers/s390/char/sclp_vt220.c: In function 'sclp_vt220_con_init':
>> drivers/s390/char/sclp_vt220.c:839:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
     839 |         atomic_notifier_chain_register(&panic_notifier_list, &on_panic_nb);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
   drivers/s390/char/zcore.c: In function 'zcore_init':
>> drivers/s390/char/zcore.c:326:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
     326 |         atomic_notifier_chain_register(&panic_notifier_list, &zcore_on_panic_notifier);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +2072 arch/s390/kernel/ipl.c

99ca4e582d4a40 Michael Holzheu    2008-01-26  2044  
99ca4e582d4a40 Michael Holzheu    2008-01-26  2045  void __init setup_ipl(void)
99ca4e582d4a40 Michael Holzheu    2008-01-26  2046  {
bdbfe18595ceab Vasily Gorbik      2018-04-03  2047  	BUILD_BUG_ON(sizeof(struct ipl_parameter_block) != PAGE_SIZE);
bdbfe18595ceab Vasily Gorbik      2018-04-03  2048  
99ca4e582d4a40 Michael Holzheu    2008-01-26  2049  	ipl_info.type = get_ipl_type();
99ca4e582d4a40 Michael Holzheu    2008-01-26  2050  	switch (ipl_info.type) {
99ca4e582d4a40 Michael Holzheu    2008-01-26  2051  	case IPL_TYPE_CCW:
86c74d869d321b Martin Schwidefsky 2019-02-20  2052  		ipl_info.data.ccw.dev_id.ssid = ipl_block.ccw.ssid;
86c74d869d321b Martin Schwidefsky 2019-02-20  2053  		ipl_info.data.ccw.dev_id.devno = ipl_block.ccw.devno;
99ca4e582d4a40 Michael Holzheu    2008-01-26  2054  		break;
99ca4e582d4a40 Michael Holzheu    2008-01-26  2055  	case IPL_TYPE_FCP:
99ca4e582d4a40 Michael Holzheu    2008-01-26  2056  	case IPL_TYPE_FCP_DUMP:
18e22a17722600 Sebastian Ott      2015-06-29  2057  		ipl_info.data.fcp.dev_id.ssid = 0;
86c74d869d321b Martin Schwidefsky 2019-02-20  2058  		ipl_info.data.fcp.dev_id.devno = ipl_block.fcp.devno;
86c74d869d321b Martin Schwidefsky 2019-02-20  2059  		ipl_info.data.fcp.wwpn = ipl_block.fcp.wwpn;
86c74d869d321b Martin Schwidefsky 2019-02-20  2060  		ipl_info.data.fcp.lun = ipl_block.fcp.lun;
99ca4e582d4a40 Michael Holzheu    2008-01-26  2061  		break;
3737e8ee4f2fc7 Jason J. Herne     2020-03-02  2062  	case IPL_TYPE_NVME:
d70e38cb1deef3 Jason J. Herne     2020-03-17  2063  	case IPL_TYPE_NVME_DUMP:
3737e8ee4f2fc7 Jason J. Herne     2020-03-02  2064  		ipl_info.data.nvme.fid = ipl_block.nvme.fid;
3737e8ee4f2fc7 Jason J. Herne     2020-03-02  2065  		ipl_info.data.nvme.nsid = ipl_block.nvme.nsid;
3737e8ee4f2fc7 Jason J. Herne     2020-03-02  2066  		break;
99ca4e582d4a40 Michael Holzheu    2008-01-26  2067  	case IPL_TYPE_NSS:
99ca4e582d4a40 Michael Holzheu    2008-01-26  2068  	case IPL_TYPE_UNKNOWN:
99ca4e582d4a40 Michael Holzheu    2008-01-26  2069  		/* We have no info to copy */
99ca4e582d4a40 Michael Holzheu    2008-01-26  2070  		break;
99ca4e582d4a40 Michael Holzheu    2008-01-26  2071  	}
99ca4e582d4a40 Michael Holzheu    2008-01-26 @2072  	atomic_notifier_chain_register(&panic_notifier_list, &on_panic_nb);
99ca4e582d4a40 Michael Holzheu    2008-01-26  2073  }
99ca4e582d4a40 Michael Holzheu    2008-01-26  2074  

:::::: The code at line 2072 was first introduced by commit
:::::: 99ca4e582d4a4088969681efff97be44d98421a1 [S390] kernel: Shutdown Actions Interface

:::::: TO: Michael Holzheu <holzheu@de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@de.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 20292 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-06 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-06 18:30 [bp:rc0+notifiers 32/32] arch/s390/kernel/ipl.c:2072:9: warning: ignoring return value of 'atomic_notifier_chain_register' declared with attribute 'warn_unused_result' kernel test robot

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).