From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:master 2018/2375] arch/mips/ralink/bootrom.c:34:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bootrom_setup'
Date: Mon, 10 Jan 2022 18:49:44 +0800 [thread overview]
Message-ID: <202201101856.jfl5AsHo-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 391ce485ced0e47bf8d2ce8bc32bb87887e16656
commit: 8e681df39108b99bab14c70b640024589fa9fa7b [2018/2375] headers/deps: fs: Optimize <linux/seq_file.h> dependencies
config: mips-vocore2_defconfig (https://download.01.org/0day-ci/archive/20220110/202201101856.jfl5AsHo-lkp@intel.com/config)
compiler: mipsel-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://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=8e681df39108b99bab14c70b640024589fa9fa7b
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout 8e681df39108b99bab14c70b640024589fa9fa7b
# 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=mips SHELL=/bin/bash arch/mips/ralink/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> arch/mips/ralink/bootrom.c:34:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bootrom_setup'
34 | static int __init bootrom_setup(void)
| ^~~~~~~~~~~~~
>> arch/mips/ralink/bootrom.c:40:1: warning: data definition has no type or storage class
40 | postcore_initcall(bootrom_setup);
| ^~~~~~~~~~~~~~~~~
>> arch/mips/ralink/bootrom.c:40:1: error: type defaults to 'int' in declaration of 'postcore_initcall' [-Werror=implicit-int]
>> arch/mips/ralink/bootrom.c:40:1: warning: parameter names (without types) in function declaration
arch/mips/ralink/bootrom.c:27:37: warning: 'bootrom_file_ops' defined but not used [-Wunused-const-variable=]
27 | static const struct file_operations bootrom_file_ops = {
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +34 arch/mips/ralink/bootrom.c
7a1a44c909fcb4 John Crispin 2013-05-21 33
389500696810f5 Christophe JAILLET 2020-05-31 @34 static int __init bootrom_setup(void)
7a1a44c909fcb4 John Crispin 2013-05-21 35 {
4c90de4dd33d90 Greg Kroah-Hartman 2019-01-22 36 debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_file_ops);
7a1a44c909fcb4 John Crispin 2013-05-21 37 return 0;
7a1a44c909fcb4 John Crispin 2013-05-21 38 }
7a1a44c909fcb4 John Crispin 2013-05-21 39
7a1a44c909fcb4 John Crispin 2013-05-21 @40 postcore_initcall(bootrom_setup);
:::::: The code at line 34 was first introduced by commit
:::::: 389500696810f5aa8fc1fe6f375b9dabd111e1d6 MIPS: ralink: bootrom: mark a function as __init to save some memory
:::::: TO: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
:::::: CC: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-01-10 10:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202201101856.jfl5AsHo-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
/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
Powered by JetHome