* [sudeep-holla:android13-5.15/ffa 2523/4062] kernel/gki_module.c:35:6: warning: no previous prototype for function 'gki_is_module_protected_symbol'
@ 2023-08-25 0:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-25 0:11 UTC (permalink / raw)
To: Ramji Jiyani; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git android13-5.15/ffa
head: c6013f50f1ae0e42d14d51a06118779ead3047ef
commit: f8bd6cf70dec3961c8b15b987866af33be2ce82b [2523/4062] ANDROID: GKI: Add module load time protected symbol lookup
config: x86_64-randconfig-015-20230825 (https://download.01.org/0day-ci/archive/20230825/202308250849.WrBmzX5x-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230825/202308250849.WrBmzX5x-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308250849.WrBmzX5x-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/gki_module.c:35:6: warning: no previous prototype for function 'gki_is_module_protected_symbol' [-Wmissing-prototypes]
bool gki_is_module_protected_symbol(const char *name)
^
kernel/gki_module.c:35:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool gki_is_module_protected_symbol(const char *name)
^
static
>> kernel/gki_module.c:46:6: warning: no previous prototype for function 'gki_is_module_exported_symbol' [-Wmissing-prototypes]
bool gki_is_module_exported_symbol(const char *name)
^
kernel/gki_module.c:46:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool gki_is_module_exported_symbol(const char *name)
^
static
2 warnings generated.
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
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-25 0:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25 0:11 [sudeep-holla:android13-5.15/ffa 2523/4062] kernel/gki_module.c:35:6: warning: no previous prototype for function 'gki_is_module_protected_symbol' 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).