From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 2620/2633] kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid'
Date: Thu, 13 May 2021 00:33:23 +0800 [thread overview]
Message-ID: <202105130033.OFhAqTi6-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 5029 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec85c95b0c90a17413901b018e8ade7b9eae7cad
commit: fecf694f2b4b583d7740d55f584411b3062afa7e [2620/2633] module: add printk formats to add module build ID to stacktraces
config: riscv-randconfig-r015-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fecf694f2b4b583d7740d55f584411b3062afa7e
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout fecf694f2b4b583d7740d55f584411b3062afa7e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 >>):
kernel/kallsyms.c:310:71: error: too many arguments to function call, expected 5, have 6
return !!module_address_lookup(addr, symbolsize, offset, NULL, NULL, namebuf) ||
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
include/linux/module.h:745:27: note: 'module_address_lookup' declared here
static inline const char *module_address_lookup(unsigned long addr,
^
kernel/kallsyms.c:341:30: error: too many arguments to function call, expected 5, have 6
modname, modbuildid, namebuf);
^~~~~~~
include/linux/module.h:745:27: note: 'module_address_lookup' declared here
static inline const char *module_address_lookup(unsigned long addr,
^
>> kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid' [-Wmissing-prototypes]
const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
^
kernel/kallsyms.c:314:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
^
static
kernel/kallsyms.c:570:12: warning: no previous prototype for function 'arch_get_kallsym' [-Wmissing-prototypes]
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
kernel/kallsyms.c:570:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
static
2 warnings and 2 errors generated.
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 +/kallsyms_lookup_buildid +314 kernel/kallsyms.c
313
> 314 const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
315 unsigned long *offset, char **modname,
316 const unsigned char **modbuildid, char *namebuf)
317 {
318 const char *ret;
319
320 namebuf[KSYM_NAME_LEN - 1] = 0;
321 namebuf[0] = 0;
322
323 if (is_ksym_addr(addr)) {
324 unsigned long pos;
325
326 pos = get_symbol_pos(addr, symbolsize, offset);
327 /* Grab name */
328 kallsyms_expand_symbol(get_symbol_offset(pos),
329 namebuf, KSYM_NAME_LEN);
330 if (modname)
331 *modname = NULL;
332 if (modbuildid)
333 *modbuildid = NULL;
334
335 ret = namebuf;
336 goto found;
337 }
338
339 /* See if it's in a module or a BPF JITed image. */
340 ret = module_address_lookup(addr, symbolsize, offset,
341 modname, modbuildid, namebuf);
342 if (!ret)
343 ret = bpf_address_lookup(addr, symbolsize,
344 offset, modname, namebuf);
345
346 if (!ret)
347 ret = ftrace_mod_address_lookup(addr, symbolsize,
348 offset, modname, namebuf);
349
350 found:
351 cleanup_symbol_name(namebuf);
352 return ret;
353 }
354
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24276 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Stephen Boyd <swboyd@chromium.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
Linux Memory Management List <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [linux-next:master 2620/2633] kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid'
Date: Thu, 13 May 2021 00:33:23 +0800 [thread overview]
Message-ID: <202105130033.OFhAqTi6-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4921 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ec85c95b0c90a17413901b018e8ade7b9eae7cad
commit: fecf694f2b4b583d7740d55f584411b3062afa7e [2620/2633] module: add printk formats to add module build ID to stacktraces
config: riscv-randconfig-r015-20210512 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a0fed635fe1701470062495a6ffee1c608f3f1bc)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fecf694f2b4b583d7740d55f584411b3062afa7e
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout fecf694f2b4b583d7740d55f584411b3062afa7e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 >>):
kernel/kallsyms.c:310:71: error: too many arguments to function call, expected 5, have 6
return !!module_address_lookup(addr, symbolsize, offset, NULL, NULL, namebuf) ||
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
include/linux/module.h:745:27: note: 'module_address_lookup' declared here
static inline const char *module_address_lookup(unsigned long addr,
^
kernel/kallsyms.c:341:30: error: too many arguments to function call, expected 5, have 6
modname, modbuildid, namebuf);
^~~~~~~
include/linux/module.h:745:27: note: 'module_address_lookup' declared here
static inline const char *module_address_lookup(unsigned long addr,
^
>> kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid' [-Wmissing-prototypes]
const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
^
kernel/kallsyms.c:314:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
^
static
kernel/kallsyms.c:570:12: warning: no previous prototype for function 'arch_get_kallsym' [-Wmissing-prototypes]
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
kernel/kallsyms.c:570:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
static
2 warnings and 2 errors generated.
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 +/kallsyms_lookup_buildid +314 kernel/kallsyms.c
313
> 314 const char *kallsyms_lookup_buildid(unsigned long addr, unsigned long *symbolsize,
315 unsigned long *offset, char **modname,
316 const unsigned char **modbuildid, char *namebuf)
317 {
318 const char *ret;
319
320 namebuf[KSYM_NAME_LEN - 1] = 0;
321 namebuf[0] = 0;
322
323 if (is_ksym_addr(addr)) {
324 unsigned long pos;
325
326 pos = get_symbol_pos(addr, symbolsize, offset);
327 /* Grab name */
328 kallsyms_expand_symbol(get_symbol_offset(pos),
329 namebuf, KSYM_NAME_LEN);
330 if (modname)
331 *modname = NULL;
332 if (modbuildid)
333 *modbuildid = NULL;
334
335 ret = namebuf;
336 goto found;
337 }
338
339 /* See if it's in a module or a BPF JITed image. */
340 ret = module_address_lookup(addr, symbolsize, offset,
341 modname, modbuildid, namebuf);
342 if (!ret)
343 ret = bpf_address_lookup(addr, symbolsize,
344 offset, modname, namebuf);
345
346 if (!ret)
347 ret = ftrace_mod_address_lookup(addr, symbolsize,
348 offset, modname, namebuf);
349
350 found:
351 cleanup_symbol_name(namebuf);
352 return ret;
353 }
354
---
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: 24276 bytes --]
next reply other threads:[~2021-05-12 16:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-12 16:33 kernel test robot [this message]
2021-05-12 16:33 ` [linux-next:master 2620/2633] kernel/kallsyms.c:314:13: warning: no previous prototype for function 'kallsyms_lookup_buildid' 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=202105130033.OFhAqTi6-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.