[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202206101257.TRD6p5sy-lkp@intel.com>
Date: Fri, 10 Jun 2022 12:26:34 +0800
From: kernel test robot <lkp@...el.com>
To: Mayuresh Chitale <mchitale@...tanamicro.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Anup Patel <anup@...infault.org>
Subject: [avpatel:virtio_rpmsg_bus_fix_v1 35/52]
arch/riscv/include/asm/tlbflush.h:33:1: error: type defaults to 'int' in
declaration of 'DECLARE_STATIC_KEY_FALSE'
tree: https://github.com/avpatel/linux.git virtio_rpmsg_bus_fix_v1
head: 390aaf641ff2f8919268d611e864227265c3f3f2
commit: efaaec7bcbaf3346e07955be46d5e3c2bd662167 [35/52] riscv: mm: use svinval instructions instead of sfence.vma
config: riscv-randconfig-r002-20220609 (https://download.01.org/0day-ci/archive/20220610/202206101257.TRD6p5sy-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 11.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://github.com/avpatel/linux/commit/efaaec7bcbaf3346e07955be46d5e3c2bd662167
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel virtio_rpmsg_bus_fix_v1
git checkout efaaec7bcbaf3346e07955be46d5e3c2bd662167
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash net/ipv4/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/riscv/include/asm/pgtable.h:108,
from arch/riscv/include/asm/uaccess.h:12,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/compat.h:17,
from arch/riscv/include/asm/elf.h:12,
from include/linux/elf.h:6,
from include/linux/module.h:19,
from net/ipv4/route.c:63:
>> arch/riscv/include/asm/tlbflush.h:33:1: warning: data definition has no type or storage class
33 | DECLARE_STATIC_KEY_FALSE(riscv_flush_tlb_svinval);
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/riscv/include/asm/tlbflush.h:33:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int]
>> arch/riscv/include/asm/tlbflush.h:33:1: warning: parameter names (without types) in function declaration
net/ipv4/route.c: In function 'ip_rt_send_redirect':
net/ipv4/route.c:880:13: warning: variable 'log_martians' set but not used [-Wunused-but-set-variable]
880 | int log_martians;
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/riscv/include/asm/pgtable.h:108,
from arch/riscv/include/asm/uaccess.h:12,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/compat.h:17,
from arch/riscv/include/asm/elf.h:12,
from include/linux/elf.h:6,
from include/linux/module.h:19,
from net/ipv4/inetpeer.c:10:
>> arch/riscv/include/asm/tlbflush.h:33:1: warning: data definition has no type or storage class
33 | DECLARE_STATIC_KEY_FALSE(riscv_flush_tlb_svinval);
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/riscv/include/asm/tlbflush.h:33:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int]
>> arch/riscv/include/asm/tlbflush.h:33:1: warning: parameter names (without types) in function declaration
cc1: some warnings being treated as errors
vim +33 arch/riscv/include/asm/tlbflush.h
31
32 /* Check if we can use sinval for tlb flush */
> 33 DECLARE_STATIC_KEY_FALSE(riscv_flush_tlb_svinval);
34 #define riscv_use_flush_tlb_svinval() \
35 static_branch_unlikely(&riscv_flush_tlb_svinval)
36
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists