From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [intel-linux-intel-lts:5.4/preempt-rt 15/16] kernel/printk/printk.c:2014:5: warning: no previous prototype for function 'vprintk_default'
Date: Fri, 11 Jun 2021 00:45:02 +0800 [thread overview]
Message-ID: <202106110046.ZORmydFF-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4954 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: 2046457bf9f4a420f69e915453d59db5b38edbaa
commit: 3c3f9863f8b96ccbf6fd420c93f1685f6085651a [15/16] Merge tag 'lts-v5.4.58-yocto-200825T002733Z' into lts2019/yocto-rt
config: arm64-randconfig-r005-20210610 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d2012d965d60c3258b3a69d024491698f8aec386)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/intel/linux-intel-lts/commit/3c3f9863f8b96ccbf6fd420c93f1685f6085651a
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 3c3f9863f8b96ccbf6fd420c93f1685f6085651a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/printk/printk.c:2014:5: warning: no previous prototype for function 'vprintk_default' [-Wmissing-prototypes]
int vprintk_default(const char *fmt, va_list args)
^
kernel/printk/printk.c:2014:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int vprintk_default(const char *fmt, va_list args)
^
static
1 warning generated.
--
>> kernel/rcu/srcutree.c:739:30: warning: unused variable 'sp_llock' [-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(sp_llock);
^
1 warning generated.
--
lib/radix-tree.c:301:6: warning: no previous prototype for function 'radix_tree_node_rcu_free' [-Wmissing-prototypes]
void radix_tree_node_rcu_free(struct rcu_head *head)
^
lib/radix-tree.c:301:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void radix_tree_node_rcu_free(struct rcu_head *head)
^
static
>> lib/radix-tree.c:75:30: warning: unused variable 'radix_tree_preloads_lock' [-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(radix_tree_preloads_lock);
^
2 warnings generated.
--
>> mm/swap.c:56:30: warning: unused variable 'rotate_lock' [-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(rotate_lock);
^
1 warning generated.
--
mm/page_alloc.c:6098:23: warning: no previous prototype for function 'memmap_init' [-Wmissing-prototypes]
void __meminit __weak memmap_init(unsigned long size, int nid,
^
mm/page_alloc.c:6098:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __meminit __weak memmap_init(unsigned long size, int nid,
^
static
>> mm/page_alloc.c:361:30: warning: unused variable 'pa_lock' [-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(pa_lock);
^
2 warnings generated.
--
>> mm/memcontrol.c:96:30: warning: unused variable 'event_lock' [-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(event_lock);
^
mm/memcontrol.c:1010:43: warning: unused function 'get_mem_cgroup_from_current' [-Wunused-function]
static __always_inline struct mem_cgroup *get_mem_cgroup_from_current(void)
^
2 warnings generated.
--
>> mm/zsmalloc.c:500:30: warning: unused variable 'zs_map_area_lock' [-Wunused-const-variable]
static DEFINE_LOCAL_IRQ_LOCK(zs_map_area_lock);
^
1 warning generated.
vim +/vprintk_default +2014 kernel/printk/printk.c
^1da177e4c3f41 kernel/printk.c Linus Torvalds 2005-04-16 2013
a0cba2179ea4c1 kernel/printk/printk.c Linus Torvalds 2016-08-09 @2014 int vprintk_default(const char *fmt, va_list args)
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 2015) {
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 2016) int r;
afdc34a3d3b823 kernel/printk/printk.c Steven Rostedt (Red Hat 2014-06-19 2017)
:::::: The code at line 2014 was first introduced by commit
:::::: a0cba2179ea4c1820fce2ee046b6ed90ecc56196 Revert "printk: create pr_<level> functions"
:::::: TO: Linus Torvalds <torvalds@linux-foundation.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
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32376 bytes --]
reply other threads:[~2021-06-10 16:45 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=202106110046.ZORmydFF-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.