From: kernel test robot <lkp@intel.com>
To: Julian Braha <julianbraha@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: arch/csky/kernel/module.c:43:1: warning: 'inline' is not at beginning of declaration
Date: Sun, 11 Apr 2021 08:18:32 +0800 [thread overview]
Message-ID: <202104110828.XoEjr4wj-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3443 bytes --]
Hi Julian,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 52e44129fba5cfc4e351fdb5e45849afc74d9a53
commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS
date: 26 hours ago
config: csky-randconfig-r013-20210411 (attached as .config)
compiler: csky-linux-gcc (GCC) 9.3.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/torvalds/linux.git/commit/?id=7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=csky
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/csky/kernel/module.c:43:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
43 | static void inline jsri_2_lrw_jsr(uint32_t *location)
| ^~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/inline +43 arch/csky/kernel/module.c
f553aa1c13cbc2 Guo Ren 2019-01-08 27
f553aa1c13cbc2 Guo Ren 2019-01-08 28 static void jsri_2_lrw_jsr(uint32_t *location)
f553aa1c13cbc2 Guo Ren 2019-01-08 29 {
70c25259537c07 Guo Ren 2019-01-10 30 uint16_t *location_tmp = (uint16_t *)location;
f553aa1c13cbc2 Guo Ren 2019-01-08 31
f553aa1c13cbc2 Guo Ren 2019-01-08 32 if (IS_BSR32(*location_tmp, *(location_tmp + 1)))
f553aa1c13cbc2 Guo Ren 2019-01-08 33 return;
f553aa1c13cbc2 Guo Ren 2019-01-08 34
f553aa1c13cbc2 Guo Ren 2019-01-08 35 if (IS_JSRI32(*location_tmp, *(location_tmp + 1))) {
f553aa1c13cbc2 Guo Ren 2019-01-08 36 /* jsri 0x... --> lrw r26, 0x... */
f553aa1c13cbc2 Guo Ren 2019-01-08 37 CHANGE_JSRI_TO_LRW(location);
f553aa1c13cbc2 Guo Ren 2019-01-08 38 /* lsli r0, r0 --> jsr r26 */
f553aa1c13cbc2 Guo Ren 2019-01-08 39 SET_JSR32_R26(location + 1);
f553aa1c13cbc2 Guo Ren 2019-01-08 40 }
f553aa1c13cbc2 Guo Ren 2019-01-08 41 }
f553aa1c13cbc2 Guo Ren 2019-01-08 42 #else
f553aa1c13cbc2 Guo Ren 2019-01-08 @43 static void inline jsri_2_lrw_jsr(uint32_t *location)
f553aa1c13cbc2 Guo Ren 2019-01-08 44 {
f553aa1c13cbc2 Guo Ren 2019-01-08 45 return;
f553aa1c13cbc2 Guo Ren 2019-01-08 46 }
9d056df0924edb Guo Ren 2018-09-05 47 #endif
9d056df0924edb Guo Ren 2018-09-05 48
:::::: The code at line 43 was first introduced by commit
:::::: f553aa1c13cbc29aaf420349a28fc33ca98440e5 csky: fixup relocation error with 807 & 860
:::::: TO: Guo Ren <ren_guo@c-sky.com>
:::::: CC: Guo Ren <ren_guo@c-sky.com>
---
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: 27470 bytes --]
reply other threads:[~2021-04-11 0:18 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=202104110828.XoEjr4wj-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=julianbraha@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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