[ammarfaizi2-block:google/android/kernel/common/android-mainline 17/21] kernel/gki_module.c:35:6: warning: no previous prototype for 'gki_is_module_protected_symbol'

From: kernel test robot
Date: Fri Feb 11 2022 - 03:51:40 EST


tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-mainline
head: 368cd631746c9d700f41883314865ea3ab05cfb7
commit: 5ffc4c2275478f8d4c17795dc5f1b552559fff26 [17/21] Revert "Revert "ANDROID: GKI: Add module load time protected symbol lookup""
config: sparc-buildonly-randconfig-r006-20220211 (https://download.01.org/0day-ci/archive/20220211/202202111611.znc1YtAj-lkp@xxxxxxxxx/config)
compiler: sparc64-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://github.com/ammarfaizi2/linux-block/commit/5ffc4c2275478f8d4c17795dc5f1b552559fff26
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-mainline
git checkout 5ffc4c2275478f8d4c17795dc5f1b552559fff26
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> kernel/gki_module.c:35:6: warning: no previous prototype for 'gki_is_module_protected_symbol' [-Wmissing-prototypes]
35 | bool gki_is_module_protected_symbol(const char *name)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/gki_module.c:46:6: warning: no previous prototype for 'gki_is_module_exported_symbol' [-Wmissing-prototypes]
46 | bool gki_is_module_exported_symbol(const char *name)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY
Depends on NET
Selected by
- GKI_HIDDEN_NET_CONFIGS
WARNING: unmet direct dependencies detected for HVC_DRIVER
Depends on TTY
Selected by
- GKI_HIDDEN_VIRTUAL_CONFIGS
WARNING: unmet direct dependencies detected for PAGE_POOL
Depends on NET
Selected by
- GKI_HIDDEN_NET_CONFIGS


vim +/gki_is_module_protected_symbol +35 kernel/gki_module.c

29
30 /**
31 * gki_is_module_protected_symbol - Is a symbol protected from unsigned module?
32 *
33 * @name: Symbol being checked against protection from unsigned module
34 */
> 35 bool gki_is_module_protected_symbol(const char *name)
36 {
37 return bsearch(name, gki_protected_symbols, NO_OF_PROTECTED_SYMBOLS,
38 MAX_PROTECTED_NAME_LEN, cmp_name) != NULL;
39 }
40
41 /**
42 * gki_is_module_exported_symbol - Is a symbol exported from a GKI module?
43 *
44 * @name: Symbol being checked against exported symbols from GKI modules
45 */
> 46 bool gki_is_module_exported_symbol(const char *name)

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