From: kernel test robot <lkp@intel.com>
To: Ramji Jiyani <ramjiyani@google.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
GNU/Weeb Mailing List <gwml@gnuweeb.org>,
linux-kernel@vger.kernel.org
Subject: [ammarfaizi2-block:google/android/kernel/common/android13-5.10 9410/9999] kernel/gki_module.c:35:6: warning: no previous prototype for function 'gki_is_module_protected_symbol'
Date: Fri, 28 Jan 2022 04:40:19 +0800 [thread overview]
Message-ID: <202201280406.7Em0aA4W-lkp@intel.com> (raw)
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.10
head: 7edc8bc69d7def26c4528360c9ec96dbeadcd0a1
commit: 9ab6a242258a9ac17506b74c6ed7332703d536f4 [9410/9999] ANDROID: GKI: Add module load time protected symbol lookup
config: arm-randconfig-r023-20220127 (https://download.01.org/0day-ci/archive/20220128/202201280406.7Em0aA4W-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f400a6012c668dfaa73462caf067ceb074e66c47)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/ammarfaizi2/linux-block/commit/9ab6a242258a9ac17506b74c6ed7332703d536f4
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.10
git checkout 9ab6a242258a9ac17506b74c6ed7332703d536f4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
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 >>):
>> 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.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHYLINK
Depends on NETDEVICES
Selected by
- GKI_HIDDEN_ETHERNET_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY
Depends on NET
Selected by
- GKI_HIDDEN_NET_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_SOC_CONFIGS
WARNING: unmet direct dependencies detected for HMM_MIRROR
Depends on MMU
Selected by
- GKI_HIDDEN_GPU_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on NET && WIRELESS && PROC_FS && WEXT_CORE
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
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@lists.01.org
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ammarfaizi2-block:google/android/kernel/common/android13-5.10 9410/9999] kernel/gki_module.c:35:6: warning: no previous prototype for function 'gki_is_module_protected_symbol'
Date: Fri, 28 Jan 2022 04:40:19 +0800 [thread overview]
Message-ID: <202201280406.7Em0aA4W-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4686 bytes --]
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.10
head: 7edc8bc69d7def26c4528360c9ec96dbeadcd0a1
commit: 9ab6a242258a9ac17506b74c6ed7332703d536f4 [9410/9999] ANDROID: GKI: Add module load time protected symbol lookup
config: arm-randconfig-r023-20220127 (https://download.01.org/0day-ci/archive/20220128/202201280406.7Em0aA4W-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f400a6012c668dfaa73462caf067ceb074e66c47)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/ammarfaizi2/linux-block/commit/9ab6a242258a9ac17506b74c6ed7332703d536f4
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.10
git checkout 9ab6a242258a9ac17506b74c6ed7332703d536f4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
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 >>):
>> 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.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for PHYLINK
Depends on NETDEVICES
Selected by
- GKI_HIDDEN_ETHERNET_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on NET && WIRELESS && (CFG80211_WEXT || WIRELESS_EXT
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY
Depends on NET
Selected by
- GKI_HIDDEN_NET_CONFIGS
WARNING: unmet direct dependencies detected for SND_PCM_IEC958
Depends on SOUND && !UML && SND
Selected by
- GKI_HIDDEN_SND_SOC_CONFIGS
WARNING: unmet direct dependencies detected for HMM_MIRROR
Depends on MMU
Selected by
- GKI_HIDDEN_GPU_CONFIGS
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on NET && WIRELESS && PROC_FS && WEXT_CORE
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on NET && WIRELESS
Selected by
- GKI_LEGACY_WEXT_ALLCONFIG
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(a)lists.01.org
next reply other threads:[~2022-01-27 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-27 20:40 kernel test robot [this message]
2022-01-27 20:40 ` [ammarfaizi2-block:google/android/kernel/common/android13-5.10 9410/9999] kernel/gki_module.c:35:6: warning: no previous prototype for function 'gki_is_module_protected_symbol' kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201280406.7Em0aA4W-lkp@intel.com \
--to=lkp@intel.com \
--cc=gwml@gnuweeb.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=ramjiyani@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.