From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: arch/x86/platform/efi/efi.c:1047:9: warning: no previous prototype for function 'efi_attr_is_visible'
Date: Tue, 28 Sep 2021 01:06:44 +0800 [thread overview]
Message-ID: <202109280140.jjbore3w-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2387 bytes --]
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@intel.com>
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28554 bytes --]
next reply other threads:[~2021-09-27 17:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-27 17:06 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-11-07 11:51 arch/x86/platform/efi/efi.c:1047:9: warning: no previous prototype for function 'efi_attr_is_visible' 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=202109280140.jjbore3w-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox