lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111062236.CrZrDtis-lkp@intel.com>
Date:   Sat, 6 Nov 2021 22:44:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     Borislav Petkov <bp@...e.de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [bp:rc0+notifiers 32/32] drivers/macintosh/adbhid.c:1265:9: warning:
 ignoring return value of 'blocking_notifier_chain_register' declared with
 attribute 'warn_unused_result'

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: m68k-defconfig (attached as .config)
compiler: m68k-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=m68k 

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

All warnings (new ones prefixed by >>):

   drivers/macintosh/adbhid.c: In function 'adbhid_init':
>> drivers/macintosh/adbhid.c:1265:9: warning: ignoring return value of 'blocking_notifier_chain_register' declared with attribute 'warn_unused_result' [-Wunused-result]
    1265 |         blocking_notifier_chain_register(&adb_client_list,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1266 |                         &adbhid_adb_notifier);
         |                         ~~~~~~~~~~~~~~~~~~~~~


vim +1265 drivers/macintosh/adbhid.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  1260  
^1da177e4c3f41 Linus Torvalds 2005-04-16  1261  	led_request.complete = 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1262  
^1da177e4c3f41 Linus Torvalds 2005-04-16  1263  	adbhid_probe();
^1da177e4c3f41 Linus Torvalds 2005-04-16  1264  
e041c683412d5b Alan Stern     2006-03-27 @1265  	blocking_notifier_chain_register(&adb_client_list,
e041c683412d5b Alan Stern     2006-03-27  1266  			&adbhid_adb_notifier);
^1da177e4c3f41 Linus Torvalds 2005-04-16  1267  
^1da177e4c3f41 Linus Torvalds 2005-04-16  1268  	return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1269  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  1270  

:::::: The code at line 1265 was first introduced by commit
:::::: e041c683412d5bf44dc2b109053e3b837b71742d [PATCH] Notifier chain update: API changes

:::::: TO: Alan Stern <stern@...land.harvard.edu>
:::::: CC: Linus Torvalds <torvalds@...osdl.org>

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

Download attachment ".config.gz" of type "application/gzip" (17440 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ