Re: [Intel-wired-lan] [PATCH v5 intel-next 3/9] ice: split ice_ring onto Tx/Rx separate structs
by kernel test robot
Hi Maciej,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on ipvs/master]
[also build test WARNING on v5.14-rc5 next-20210813]
[cannot apply to tnguy-next-queue/dev-queue sparc-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Maciej-Fijalkowski/XDP_TX-improv...
base: https://git.kernel.org/pub/scm/linux/kernel/git/horms/ipvs.git master
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc-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://github.com/0day-ci/linux/commit/945abe6bbe5afc453bca1dcb66593b2d9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Maciej-Fijalkowski/XDP_TX-improvements-for-ice/20210814-222504
git checkout 945abe6bbe5afc453bca1dcb66593b2d9e47f7c8
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/net/ethernet/intel/ice/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/net/ethernet/intel/ice/ice_base.c:213: warning: expecting prototype for ice_calc_q_handle(). Prototype was for ice_calc_txq_handle() instead
vim +213 drivers/net/ethernet/intel/ice/ice_base.c
eff380aaffedb2 Anirudh Venkataramanan 2019-10-24 205
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 206 /**
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 207 * ice_calc_q_handle - calculate the queue handle
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 208 * @vsi: VSI that ring belongs to
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 209 * @ring: ring to get the absolute queue index
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 210 * @tc: traffic class number
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 211 */
945abe6bbe5afc Maciej Fijalkowski 2021-08-14 212 static u16 ice_calc_txq_handle(struct ice_vsi *vsi, struct ice_tx_ring *ring, u8 tc)
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 @213 {
af23635a5335aa Jesse Brandeburg 2020-02-13 214 WARN_ONCE(ice_ring_is_xdp(ring) && tc, "XDP ring can't belong to TC other than 0\n");
efc2214b6047b6 Maciej Fijalkowski 2019-11-04 215
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 216 /* Idea here for calculation is that we subtract the number of queue
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 217 * count from TC that ring belongs to from it's absolute queue index
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 218 * and as a result we get the queue's index within TC.
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 219 */
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 220 return ring->q_index - vsi->tc_cfg.tc_info[tc].qoffset;
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 221 }
e75d1b2c373199 Maciej Fijalkowski 2019-10-24 222
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[mcgrof-next:20210813-sysfs-fixes-v8 7/10] include/linux/uidgid.h:30:35: error: incompatible type for argument 4 of '__kernfs_create_file'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210813-sysfs-fixes-v8
head: f5b8aadeca76656caad8bccc795bfe7b0730230a
commit: da898d13309d7b2855a74ee4e49e0fb43a55a2f1 [7/10] sysfs: fix deadlock race with module removal
config: i386-randconfig-c001-20210812 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210813-sysfs-fixes-v8
git checkout da898d13309d7b2855a74ee4e49e0fb43a55a2f1
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/ipc.h:6,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
arch/x86/kernel/cpu/resctrl/rdtgroup.c: In function 'rdtgroup_add_file':
>> include/linux/uidgid.h:30:35: error: incompatible type for argument 4 of '__kernfs_create_file'
30 | #define KUIDT_INIT(value) (kuid_t){ value }
| ^~~~~~~~~
| |
| kuid_t {aka struct <anonymous>}
include/linux/uidgid.h:55:25: note: in expansion of macro 'KUIDT_INIT'
55 | #define GLOBAL_ROOT_UID KUIDT_INIT(0)
| ^~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:211:7: note: in expansion of macro 'GLOBAL_ROOT_UID'
211 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID,
| ^~~~~~~~~~~~~~~
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'struct module *' but argument is of type 'kuid_t' {aka 'struct <anonymous>'}
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ipc.h:6,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/uidgid.h:31:35: error: incompatible type for argument 5 of '__kernfs_create_file'
31 | #define KGIDT_INIT(value) (kgid_t){ value }
| ^~~~~~~~~
| |
| kgid_t {aka struct <anonymous>}
include/linux/uidgid.h:56:25: note: in expansion of macro 'KGIDT_INIT'
56 | #define GLOBAL_ROOT_GID KGIDT_INIT(0)
| ^~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:211:24: note: in expansion of macro 'GLOBAL_ROOT_GID'
211 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID,
| ^~~~~~~~~~~~~~~
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'kuid_t' {aka 'struct <anonymous>'} but argument is of type 'kgid_t' {aka 'struct <anonymous>'}
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/cpu/resctrl/rdtgroup.c:212:7: error: incompatible type for argument 6 of '__kernfs_create_file'
212 | 0, rft->kf_ops, rft, NULL, NULL);
| ^
| |
| int
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'kgid_t' {aka 'struct <anonymous>'} but argument is of type 'int'
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:212:13: warning: passing argument 7 of '__kernfs_create_file' makes integer from pointer without a cast [-Wint-conversion]
212 | 0, rft->kf_ops, rft, NULL, NULL);
| ~~~^~~~~~~~
| |
| const struct kernfs_ops *
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'loff_t' {aka 'long long int'} but argument is of type 'const struct kernfs_ops *'
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/cpu/resctrl/rdtgroup.c:212:23: error: passing argument 8 of '__kernfs_create_file' from incompatible pointer type [-Werror=incompatible-pointer-types]
212 | 0, rft->kf_ops, rft, NULL, NULL);
| ^~~
| |
| struct rftype *
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'const struct kernfs_ops *' but argument is of type 'struct rftype *'
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/cpu/resctrl/rdtgroup.c:210:7: error: too few arguments to function '__kernfs_create_file'
210 | kn = __kernfs_create_file(parent_kn, rft->name, rft->mode,
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: declared here
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ipc.h:6,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
arch/x86/kernel/cpu/resctrl/rdtgroup.c: In function 'mon_addfile':
>> include/linux/uidgid.h:30:35: error: incompatible type for argument 4 of '__kernfs_create_file'
30 | #define KUIDT_INIT(value) (kuid_t){ value }
| ^~~~~~~~~
| |
| kuid_t {aka struct <anonymous>}
include/linux/uidgid.h:55:25: note: in expansion of macro 'KUIDT_INIT'
55 | #define GLOBAL_ROOT_UID KUIDT_INIT(0)
| ^~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:2484:7: note: in expansion of macro 'GLOBAL_ROOT_UID'
2484 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, 0,
| ^~~~~~~~~~~~~~~
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'struct module *' but argument is of type 'kuid_t' {aka 'struct <anonymous>'}
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ipc.h:6,
from include/uapi/linux/sem.h:5,
from include/linux/sem.h:5,
from include/linux/sched.h:15,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/uidgid.h:31:35: error: incompatible type for argument 5 of '__kernfs_create_file'
31 | #define KGIDT_INIT(value) (kgid_t){ value }
| ^~~~~~~~~
| |
| kgid_t {aka struct <anonymous>}
include/linux/uidgid.h:56:25: note: in expansion of macro 'KGIDT_INIT'
56 | #define GLOBAL_ROOT_GID KGIDT_INIT(0)
| ^~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:2484:24: note: in expansion of macro 'GLOBAL_ROOT_GID'
2484 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, 0,
| ^~~~~~~~~~~~~~~
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'kuid_t' {aka 'struct <anonymous>'} but argument is of type 'kgid_t' {aka 'struct <anonymous>'}
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:2484:41: error: incompatible type for argument 6 of '__kernfs_create_file'
2484 | GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, 0,
| ^
| |
| int
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'kgid_t' {aka 'struct <anonymous>'} but argument is of type 'int'
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:2485:7: warning: passing argument 7 of '__kernfs_create_file' makes integer from pointer without a cast [-Wint-conversion]
2485 | &kf_mondata_ops, priv, NULL, NULL);
| ^~~~~~~~~~~~~~~
| |
| const struct kernfs_ops *
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: expected 'loff_t' {aka 'long long int'} but argument is of type 'const struct kernfs_ops *'
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/resctrl/rdtgroup.c:2483:7: error: too few arguments to function '__kernfs_create_file'
2483 | kn = __kernfs_create_file(parent_kn, name, 0444,
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/kernfs.h:382:21: note: declared here
382 | struct kernfs_node *__kernfs_create_file(struct kernfs_node *parent,
| ^~~~~~~~~~~~~~~~~~~~
vim +/__kernfs_create_file +30 include/linux/uidgid.h
7a4e7408c5cadb Eric W. Biederman 2011-11-14 29
7a4e7408c5cadb Eric W. Biederman 2011-11-14 @30 #define KUIDT_INIT(value) (kuid_t){ value }
7a4e7408c5cadb Eric W. Biederman 2011-11-14 31 #define KGIDT_INIT(value) (kgid_t){ value }
7a4e7408c5cadb Eric W. Biederman 2011-11-14 32
:::::: The code at line 30 was first introduced by commit
:::::: 7a4e7408c5cadb240e068a662251754a562355e3 userns: Add kuid_t and kgid_t and associated infrastructure in uidgid.h
:::::: TO: Eric W. Biederman <ebiederm(a)xmission.com>
:::::: CC: Eric W. Biederman <ebiederm(a)xmission.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
arch/arm64/kvm/va_layout.c:255:6: warning: no previous prototype for function 'kvm_get_kimage_voffset'
by kernel test robot
Hi Marc,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dfa377c35d70c31139b1274ec49f87d380996c42
commit: 68b824e428c5fb5c3dc5ef80b1543e767534b58e KVM: arm64: Patch kimage_voffset instead of loading the EL1 value
date: 9 months ago
config: arm64-randconfig-r024-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
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...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 68b824e428c5fb5c3dc5ef80b1543e767534b58e
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm64/kvm/va_layout.c:138:6: warning: no previous prototype for function 'kvm_patch_vector_branch' [-Wmissing-prototypes]
void kvm_patch_vector_branch(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_patch_vector_branch(struct alt_instr *alt,
^
static
arch/arm64/kvm/va_layout.c:249:6: warning: no previous prototype for function 'kvm_update_kimg_phys_offset' [-Wmissing-prototypes]
void kvm_update_kimg_phys_offset(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:249:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_update_kimg_phys_offset(struct alt_instr *alt,
^
static
>> arch/arm64/kvm/va_layout.c:255:6: warning: no previous prototype for function 'kvm_get_kimage_voffset' [-Wmissing-prototypes]
void kvm_get_kimage_voffset(struct alt_instr *alt,
^
arch/arm64/kvm/va_layout.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_get_kimage_voffset(struct alt_instr *alt,
^
static
3 warnings generated.
vim +/kvm_get_kimage_voffset +255 arch/arm64/kvm/va_layout.c
254
> 255 void kvm_get_kimage_voffset(struct alt_instr *alt,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[xlnx:xlnx_rebase_v5.10 1386/1761] drivers/crypto/xilinx/zynqmp-rsa.c:155:34: warning: unused variable 'zynqmp_rsa_dt_ids'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.10
head: e14d4574ca81a569ee6d07e03271f2ae2dad38e4
commit: 0dcbb157a6f9da8bad728c1e433094ba0852eba3 [1386/1761] crypto: zynqmp-rsa: switch to skcipher API
config: s390-randconfig-r012-20210812 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 767496d19cb9a1fbba57ff08095faa161998ee36)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/Xilinx/linux-xlnx/commit/0dcbb157a6f9da8bad728c1e43309...
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.10
git checkout 0dcbb157a6f9da8bad728c1e433094ba0852eba3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
^
In file included from drivers/crypto/xilinx/zynqmp-rsa.c:13:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from drivers/crypto/xilinx/zynqmp-rsa.c:13:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from drivers/crypto/xilinx/zynqmp-rsa.c:13:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from drivers/crypto/xilinx/zynqmp-rsa.c:13:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from drivers/crypto/xilinx/zynqmp-rsa.c:13:
In file included from include/linux/io.h:13:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> drivers/crypto/xilinx/zynqmp-rsa.c:155:34: warning: unused variable 'zynqmp_rsa_dt_ids' [-Wunused-const-variable]
static const struct of_device_id zynqmp_rsa_dt_ids[] = {
^
21 warnings generated.
vim +/zynqmp_rsa_dt_ids +155 drivers/crypto/xilinx/zynqmp-rsa.c
766a7aab941bca5 Nava kishore Manne 2020-02-03 154
766a7aab941bca5 Nava kishore Manne 2020-02-03 @155 static const struct of_device_id zynqmp_rsa_dt_ids[] = {
766a7aab941bca5 Nava kishore Manne 2020-02-03 156 { .compatible = "xlnx,zynqmp-rsa" },
766a7aab941bca5 Nava kishore Manne 2020-02-03 157 { /* sentinel */ }
766a7aab941bca5 Nava kishore Manne 2020-02-03 158 };
766a7aab941bca5 Nava kishore Manne 2020-02-03 159
:::::: The code at line 155 was first introduced by commit
:::::: 766a7aab941bca5265afe0641baa5bbce6ad417a crypto: zynqmp-rsa: Adopted RSA support for ZynqMP SoC
:::::: TO: Nava kishore Manne <nava.manne(a)xilinx.com>
:::::: CC: Michal Simek <michal.simek(a)xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[mchinth:sep_socwatch_linux_5_14 1/2] drivers/platform/x86/socperf/socperfdrv.o: warning: objtool: socperf_Service_IOCTL()+0x51e: unreachable instruction
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
CC: "monica.rajasekaran" <monicara(a)fxe36lin01.fx.intel.com>
tree: https://github.com/mchinth/linux sep_socwatch_linux_5_14
head: 08f135eb9b5a55343cd6c453e527d14bc883d5ce
commit: 5d1cb0f8814d98dc8859d284c15a29dc27afface [1/2] Merge branch 'master' into sep_socwatch_linux_5_13
config: x86_64-randconfig-a012-20210814 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1f7b25ea76a925aca690da28de9d78db7ca99d0c)
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/mchinth/linux/commit/5d1cb0f8814d98dc8859d284c15a29dc2...
git remote add mchinth https://github.com/mchinth/linux
git fetch --no-tags mchinth sep_socwatch_linux_5_14
git checkout 5d1cb0f8814d98dc8859d284c15a29dc27afface
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/platform/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/platform/x86/socperf/socperfdrv.o: warning: objtool: socperf_Service_IOCTL()+0x51e: unreachable instruction
--
>> drivers/platform/x86/socwatch/sw_internal.o: warning: objtool: sw_copy_to_user()+0x52: unreachable instruction
--
>> drivers/platform/x86/socwatch/sw_output_buffer.o: warning: objtool: sw_consume_data()+0x414: unreachable instruction
--
>> drivers/platform/x86/socwatch/sw_driver.o: warning: objtool: sw_unlocked_handle_ioctl_i()+0x9f6: unreachable instruction
--
>> drivers/platform/x86/sepdk/sep/sys_info.o: warning: objtool: SYS_INFO_Transfer()+0xdc: unreachable instruction
--
>> drivers/platform/x86/sepdk/sep/output.o: warning: objtool: output_Read()+0x60a: unreachable instruction
--
>> drivers/platform/x86/sepdk/sep/lwpmudrv.o: warning: objtool: lwpmu_Device_Control()+0x109d: unreachable instruction
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v1 09/12] mm: memcontrol: use obj_cgroup APIs to charge the LRU pages
by kernel test robot
Hi Muchun,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20210813]
[cannot apply to hnaz-linux-mm/master cgroup/for-next linus/master v5.14-rc5 v5.14-rc4 v5.14-rc3 v5.14-rc5]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Muchun-Song/Use-obj_cgroup-APIs-...
base: 4b358aabb93a2c654cd1dcab1a25a589f6e2b153
config: i386-randconfig-s032-20210814 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/0day-ci/linux/commit/33aa30f8c508696b533f8817a5212d6ef...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Muchun-Song/Use-obj_cgroup-APIs-to-charge-the-LRU-pages/20210814-132844
git checkout 33aa30f8c508696b533f8817a5212d6efdd424bb
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
mm/memcontrol.c:4231:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4231:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4231:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4233:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4233:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4233:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4389:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4389:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4389:9: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4483:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4483:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4483:9: sparse: struct mem_cgroup_threshold_ary *
>> mm/memcontrol.c:5836:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct obj_cgroup *objcg @@ got struct obj_cgroup [noderef] __rcu *objcg @@
mm/memcontrol.c:5837:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct obj_cgroup *objcg @@ got struct obj_cgroup [noderef] __rcu *objcg @@
mm/memcontrol.c:6133:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:6133:23: sparse: struct task_struct [noderef] __rcu *
mm/memcontrol.c:6133:23: sparse: struct task_struct *
mm/memcontrol.c: note: in included file:
include/linux/memcontrol.h:780:9: sparse: sparse: context imbalance in 'memcg_reparent_lruvec_lock' - wrong count at exit
include/linux/memcontrol.h:780:9: sparse: sparse: context imbalance in 'memcg_reparent_lruvec_unlock' - unexpected unlock
mm/memcontrol.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...):
include/linux/rcupdate.h:718:9: sparse: sparse: context imbalance in 'folio_lruvec_lock' - wrong count at exit
include/linux/rcupdate.h:718:9: sparse: sparse: context imbalance in 'folio_lruvec_lock_irq' - wrong count at exit
include/linux/rcupdate.h:718:9: sparse: sparse: context imbalance in 'folio_lruvec_lock_irqsave' - wrong count at exit
mm/memcontrol.c:2098:6: sparse: sparse: context imbalance in 'folio_memcg_lock' - wrong count at exit
mm/memcontrol.c:2154:17: sparse: sparse: context imbalance in '__folio_memcg_unlock' - unexpected unlock
vim +5836 mm/memcontrol.c
5733
5734 /**
5735 * mem_cgroup_move_account - move account of the page
5736 * @page: the page
5737 * @compound: charge the page as compound or small page
5738 * @from: mem_cgroup which the page is moved from.
5739 * @to: mem_cgroup which the page is moved to. @from != @to.
5740 *
5741 * The caller must make sure the page is not on LRU (isolate_page() is useful.)
5742 *
5743 * This function doesn't do "charge" to new cgroup and doesn't do "uncharge"
5744 * from old cgroup.
5745 */
5746 static int mem_cgroup_move_account(struct page *page,
5747 bool compound,
5748 struct mem_cgroup *from,
5749 struct mem_cgroup *to)
5750 {
5751 struct folio *folio = page_folio(page);
5752 struct lruvec *from_vec, *to_vec;
5753 struct pglist_data *pgdat;
5754 unsigned int nr_pages = compound ? folio_nr_pages(folio) : 1;
5755 int nid, ret;
5756
5757 VM_BUG_ON(from == to);
5758 VM_BUG_ON_FOLIO(folio_test_lru(folio), folio);
5759 VM_BUG_ON(compound && !folio_test_multi(folio));
5760
5761 /*
5762 * Prevent mem_cgroup_migrate() from looking at
5763 * page's memory cgroup of its source page while we change it.
5764 */
5765 ret = -EBUSY;
5766 if (!folio_trylock(folio))
5767 goto out;
5768
5769 ret = -EINVAL;
5770 if (folio_memcg(folio) != from)
5771 goto out_unlock;
5772
5773 pgdat = folio_pgdat(folio);
5774 from_vec = mem_cgroup_lruvec(from, pgdat);
5775 to_vec = mem_cgroup_lruvec(to, pgdat);
5776
5777 folio_memcg_lock(folio);
5778
5779 if (folio_test_anon(folio)) {
5780 if (folio_mapped(folio)) {
5781 __mod_lruvec_state(from_vec, NR_ANON_MAPPED, -nr_pages);
5782 __mod_lruvec_state(to_vec, NR_ANON_MAPPED, nr_pages);
5783 if (folio_test_transhuge(folio)) {
5784 __mod_lruvec_state(from_vec, NR_ANON_THPS,
5785 -nr_pages);
5786 __mod_lruvec_state(to_vec, NR_ANON_THPS,
5787 nr_pages);
5788 }
5789 }
5790 } else {
5791 __mod_lruvec_state(from_vec, NR_FILE_PAGES, -nr_pages);
5792 __mod_lruvec_state(to_vec, NR_FILE_PAGES, nr_pages);
5793
5794 if (folio_test_swapbacked(folio)) {
5795 __mod_lruvec_state(from_vec, NR_SHMEM, -nr_pages);
5796 __mod_lruvec_state(to_vec, NR_SHMEM, nr_pages);
5797 }
5798
5799 if (folio_mapped(folio)) {
5800 __mod_lruvec_state(from_vec, NR_FILE_MAPPED, -nr_pages);
5801 __mod_lruvec_state(to_vec, NR_FILE_MAPPED, nr_pages);
5802 }
5803
5804 if (folio_test_dirty(folio)) {
5805 struct address_space *mapping = folio_mapping(folio);
5806
5807 if (mapping_can_writeback(mapping)) {
5808 __mod_lruvec_state(from_vec, NR_FILE_DIRTY,
5809 -nr_pages);
5810 __mod_lruvec_state(to_vec, NR_FILE_DIRTY,
5811 nr_pages);
5812 }
5813 }
5814 }
5815
5816 if (folio_test_writeback(folio)) {
5817 __mod_lruvec_state(from_vec, NR_WRITEBACK, -nr_pages);
5818 __mod_lruvec_state(to_vec, NR_WRITEBACK, nr_pages);
5819 }
5820
5821 /*
5822 * All state has been migrated, let's switch to the new memcg.
5823 *
5824 * It is safe to change page's memcg here because the page
5825 * is referenced, charged, isolated, and locked: we can't race
5826 * with (un)charging, migration, LRU putback, or anything else
5827 * that would rely on a stable page's memory cgroup.
5828 *
5829 * Note that lock_page_memcg is a memcg lock, not a page lock,
5830 * to save space. As soon as we switch page's memory cgroup to a
5831 * new memcg that isn't locked, the above state can change
5832 * concurrently again. Make sure we're truly done with it.
5833 */
5834 smp_mb();
5835
> 5836 obj_cgroup_get(to->objcg);
5837 obj_cgroup_put(from->objcg);
5838
5839 folio->memcg_data = (unsigned long)to->objcg;
5840
5841 __folio_memcg_unlock(from);
5842
5843 ret = 0;
5844 nid = folio_nid(folio);
5845
5846 local_irq_disable();
5847 mem_cgroup_charge_statistics(to, nr_pages);
5848 memcg_check_events(to, nid);
5849 mem_cgroup_charge_statistics(from, -nr_pages);
5850 memcg_check_events(from, nid);
5851 local_irq_enable();
5852 out_unlock:
5853 folio_unlock(folio);
5854 out:
5855 return ret;
5856 }
5857
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month