security/integrity/platform_certs/keyring_handler.c:62:30: warning: no previous prototype for 'get_handler_for_db'

From: kernel test robot
Date: Sun Aug 16 2020 - 09:45:46 EST


Hi Nayna,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: ad723674d6758478829ee766e3f1a2a24d56236f x86/efi: move common keyring handler functions to new file
date: 9 months ago
config: arm-randconfig-r005-20200816 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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
git checkout ad723674d6758478829ee766e3f1a2a24d56236f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm

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

All warnings (new ones prefixed by >>):

>> security/integrity/platform_certs/keyring_handler.c:62:30: warning: no previous prototype for 'get_handler_for_db' [-Wmissing-prototypes]
62 | __init efi_element_handler_t get_handler_for_db(const efi_guid_t *sig_type)
| ^~~~~~~~~~~~~~~~~~
>> security/integrity/platform_certs/keyring_handler.c:73:30: warning: no previous prototype for 'get_handler_for_dbx' [-Wmissing-prototypes]
73 | __init efi_element_handler_t get_handler_for_dbx(const efi_guid_t *sig_type)
| ^~~~~~~~~~~~~~~~~~~

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ad723674d6758478829ee766e3f1a2a24d56236f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ad723674d6758478829ee766e3f1a2a24d56236f
vim +/get_handler_for_db +62 security/integrity/platform_certs/keyring_handler.c

57
58 /*
59 * Return the appropriate handler for particular signature list types found in
60 * the UEFI db and MokListRT tables.
61 */
> 62 __init efi_element_handler_t get_handler_for_db(const efi_guid_t *sig_type)
63 {
64 if (efi_guidcmp(*sig_type, efi_cert_x509_guid) == 0)
65 return add_to_platform_keyring;
66 return 0;
67 }
68
69 /*
70 * Return the appropriate handler for particular signature list types found in
71 * the UEFI dbx and MokListXRT tables.
72 */
> 73 __init efi_element_handler_t get_handler_for_dbx(const efi_guid_t *sig_type)

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

Attachment: .config.gz
Description: application/gzip