From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mingo-tip:master 2296/2300] arch/mips/dec/platform.c:33:19: error: expected '=', ',', '; ', 'asm' or '__attribute__' before 'dec_add_devices'
Date: Sun, 09 Jan 2022 06:10:03 +0800 [thread overview]
Message-ID: <202201090604.UYYPTJHx-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3318 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 4e348e961395297bb17f101cc63bc133d8a348e9
commit: 4d78e75186678c7853df35a422c167910b400856 [2296/2300] headers/deps: driver/core: Optimize <linux/device/driver.h> dependencies, remove <linux/module.h> inclusion
config: mips-decstation_defconfig (https://download.01.org/0day-ci/archive/20220109/202201090604.UYYPTJHx-lkp(a)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=4d78e75186678c7853df35a422c167910b400856
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 4d78e75186678c7853df35a422c167910b400856
# 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
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> arch/mips/dec/platform.c:33:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dec_add_devices'
33 | static int __init dec_add_devices(void)
| ^~~~~~~~~~~~~~~
arch/mips/dec/platform.c:40:1: warning: data definition has no type or storage class
40 | device_initcall(dec_add_devices);
| ^~~~~~~~~~~~~~~
>> arch/mips/dec/platform.c:40:1: error: type defaults to 'int' in declaration of 'device_initcall' [-Werror=implicit-int]
arch/mips/dec/platform.c:40:1: warning: parameter names (without types) in function declaration
arch/mips/dec/platform.c:25:31: warning: 'dec_rtc_device' defined but not used [-Wunused-variable]
25 | static struct platform_device dec_rtc_device = {
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +33 arch/mips/dec/platform.c
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 32
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 @33 static int __init dec_add_devices(void)
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 34 {
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 35 dec_rtc_resources[0].start = RTC_PORT(0);
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 36 dec_rtc_resources[0].end = RTC_PORT(0) + dec_kn_slot_size - 1;
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 37 return platform_device_register(&dec_rtc_device);
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 38 }
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 39
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 @40 device_initcall(dec_add_devices);
:::::: The code at line 33 was first introduced by commit
:::::: fae67ad431146d2584dd813cbc198400a477aa53 arch/mips/dec: switch DECstation systems to rtc-cmos
:::::: TO: Maciej W. Rozycki <macro@linux-mips.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
WARNING: multiple messages have this Message-ID (diff)
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 2296/2300] arch/mips/dec/platform.c:33:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dec_add_devices'
Date: Sun, 9 Jan 2022 06:10:03 +0800 [thread overview]
Message-ID: <202201090604.UYYPTJHx-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 4e348e961395297bb17f101cc63bc133d8a348e9
commit: 4d78e75186678c7853df35a422c167910b400856 [2296/2300] headers/deps: driver/core: Optimize <linux/device/driver.h> dependencies, remove <linux/module.h> inclusion
config: mips-decstation_defconfig (https://download.01.org/0day-ci/archive/20220109/202201090604.UYYPTJHx-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=4d78e75186678c7853df35a422c167910b400856
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 4d78e75186678c7853df35a422c167910b400856
# 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
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> arch/mips/dec/platform.c:33:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dec_add_devices'
33 | static int __init dec_add_devices(void)
| ^~~~~~~~~~~~~~~
arch/mips/dec/platform.c:40:1: warning: data definition has no type or storage class
40 | device_initcall(dec_add_devices);
| ^~~~~~~~~~~~~~~
>> arch/mips/dec/platform.c:40:1: error: type defaults to 'int' in declaration of 'device_initcall' [-Werror=implicit-int]
arch/mips/dec/platform.c:40:1: warning: parameter names (without types) in function declaration
arch/mips/dec/platform.c:25:31: warning: 'dec_rtc_device' defined but not used [-Wunused-variable]
25 | static struct platform_device dec_rtc_device = {
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +33 arch/mips/dec/platform.c
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 32
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 @33 static int __init dec_add_devices(void)
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 34 {
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 35 dec_rtc_resources[0].start = RTC_PORT(0);
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 36 dec_rtc_resources[0].end = RTC_PORT(0) + dec_kn_slot_size - 1;
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 37 return platform_device_register(&dec_rtc_device);
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 38 }
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 39
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 @40 device_initcall(dec_add_devices);
:::::: The code at line 33 was first introduced by commit
:::::: fae67ad431146d2584dd813cbc198400a477aa53 arch/mips/dec: switch DECstation systems to rtc-cmos
:::::: TO: Maciej W. Rozycki <macro@linux-mips.org>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next reply other threads:[~2022-01-08 22:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-08 22:10 kernel test robot [this message]
2022-01-08 22:10 ` [mingo-tip:master 2296/2300] arch/mips/dec/platform.c:33:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dec_add_devices' 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=202201090604.UYYPTJHx-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 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.