arch/x86/platform/efi/efi.c:1047:9: warning: no previous prototype for function 'efi_attr_is_visible'

From: kernel test robot
Date: Mon Sep 27 2021 - 13:17:40 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 92477dd1faa650e50bd3bb35a6c0b8d09198cc35
commit: 9cd437ac0ef4f324a92e2579784b03bb487ae7fb efi/x86: Make fw_vendor, config_table and runtime sysfs nodes x86 specific
date: 1 year, 7 months ago
config: x86_64-randconfig-c007-20210927 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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/torvalds/linux.git/commit/?id=9cd437ac0ef4f324a92e2579784b03bb487ae7fb
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9cd437ac0ef4f324a92e2579784b03bb487ae7fb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64

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

All warnings (new ones prefixed by >>):

arch/x86/platform/efi/efi.c:1023:7: warning: no previous prototype for function 'efi_systab_show_arch' [-Wmissing-prototypes]
char *efi_systab_show_arch(char *str)
^
arch/x86/platform/efi/efi.c:1023:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
char *efi_systab_show_arch(char *str)
^
static
>> arch/x86/platform/efi/efi.c:1047:9: warning: no previous prototype for function 'efi_attr_is_visible' [-Wmissing-prototypes]
umode_t efi_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n)
^
arch/x86/platform/efi/efi.c:1047:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
umode_t efi_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n)
^
static
2 warnings generated.


vim +/efi_attr_is_visible +1047 arch/x86/platform/efi/efi.c

1046
> 1047 umode_t efi_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n)

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

Attachment: .config.gz
Description: application/gzip