Re: [PATCH net-next v2 4/5] virtio-net: support rx netdim

2023-11-05 Thread kernel test robot
Hi Heng,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Heng-Qi/virtio-net-returns-whether-napi-is-complete/20231103-040818
base:   net-next/main
patch link:
https://lore.kernel.org/r/12c77098b73313eea8fdc88a3d1d20611444827d.1698929590.git.hengqi%40linux.alibaba.com
patch subject: [PATCH net-next v2 4/5] virtio-net: support rx netdim
config: arm-vexpress_defconfig 
(https://download.01.org/0day-ci/archive/20231106/202311061237.i4bmaa06-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 
4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231106/202311061237.i4bmaa06-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202311061237.i4bmaa06-...@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: net_dim_get_rx_moderation
   >>> referenced by virtio_net.c:3529 (drivers/net/virtio_net.c:3529)
   >>>   drivers/net/virtio_net.o:(virtnet_rx_dim_work) in archive 
vmlinux.a
--
>> ld.lld: error: undefined symbol: net_dim
   >>> referenced by virtio_net.c:2176 (drivers/net/virtio_net.c:2176)
   >>>   drivers/net/virtio_net.o:(virtnet_poll) in archive 
vmlinux.a

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH V2 vfio 5/9] virtio-pci: Initialize the supported admin commands

2023-11-02 Thread kernel test robot
Hi Yishai,

kernel test robot noticed the following build warnings:

[auto build test WARNING on awilliam-vfio/for-linus]
[also build test WARNING on linus/master v6.6]
[cannot apply to awilliam-vfio/next mst-vhost/linux-next next-20231102]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Yishai-Hadas/virtio-Define-feature-bit-for-administration-virtqueue/20231030-000414
base:   https://github.com/awilliam/linux-vfio.git for-linus
patch link:
https://lore.kernel.org/r/20231029155952.67686-6-yishaih%40nvidia.com
patch subject: [PATCH V2 vfio 5/9] virtio-pci: Initialize the supported admin 
commands
config: i386-randconfig-061-20231102 
(https://download.01.org/0day-ci/archive/20231103/202311030838.gjyabtjm-...@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231103/202311030838.gjyabtjm-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202311030838.gjyabtjm-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_pci_modern.c:726:16: sparse: sparse: restricted __le16 
>> degrades to integer

vim +726 drivers/virtio/virtio_pci_modern.c

   673  
   674  static int vp_modern_admin_cmd_exec(struct virtio_device *vdev,
   675  struct virtio_admin_cmd *cmd)
   676  {
   677  struct scatterlist *sgs[VIRTIO_AVQ_SGS_MAX], hdr, stat;
   678  struct virtio_pci_device *vp_dev = to_vp_device(vdev);
   679  struct virtio_admin_cmd_status *va_status;
   680  unsigned int out_num = 0, in_num = 0;
   681  struct virtio_admin_cmd_hdr *va_hdr;
   682  struct virtqueue *avq;
   683  u16 status;
   684  int ret;
   685  
   686  avq = virtio_has_feature(vdev, VIRTIO_F_ADMIN_VQ) ?
   687  vp_dev->admin_vq.info.vq : NULL;
   688  if (!avq)
   689  return -EOPNOTSUPP;
   690  
   691  va_status = kzalloc(sizeof(*va_status), GFP_KERNEL);
   692  if (!va_status)
   693  return -ENOMEM;
   694  
   695  va_hdr = kzalloc(sizeof(*va_hdr), GFP_KERNEL);
   696  if (!va_hdr) {
   697  ret = -ENOMEM;
   698  goto err_alloc;
   699  }
   700  
   701  va_hdr->opcode = cmd->opcode;
   702  va_hdr->group_type = cmd->group_type;
   703  va_hdr->group_member_id = cmd->group_member_id;
   704  
   705  /* Add header */
   706  sg_init_one(, va_hdr, sizeof(*va_hdr));
   707  sgs[out_num] = 
   708  out_num++;
   709  
   710  if (cmd->data_sg) {
   711  sgs[out_num] = cmd->data_sg;
   712  out_num++;
   713  }
   714  
   715  /* Add return status */
   716  sg_init_one(, va_status, sizeof(*va_status));
   717  sgs[out_num + in_num] = 
   718  in_num++;
   719  
   720  if (cmd->result_sg) {
   721  sgs[out_num + in_num] = cmd->result_sg;
   722  in_num++;
   723  }
   724  
   725  if (cmd->opcode == VIRTIO_ADMIN_CMD_LIST_QUERY ||
 > 726  cmd->opcode == VIRTIO_ADMIN_CMD_LIST_USE)
   727  ret = __virtqueue_exec_admin_cmd(_dev->admin_vq, sgs,
   728 out_num, in_num,
   729 sgs, GFP_KERNEL);
   730  else
   731  ret = virtqueue_exec_admin_cmd(_dev->admin_vq, sgs,
   732 out_num, in_num,
   733 sgs, GFP_KERNEL);
   734  if (ret) {
   735  dev_err(>dev,
   736  "Failed to execute command on admin vq: %d\n.", 
ret);
   737  goto err_cmd_exec;
   738  }
   739  
   740  status = le16_to_cpu(va_status->status);
   741  if (status != VIRTIO_ADMIN_STATUS_OK) {
   742  dev_err(>dev,
   743  "admin command error: status(%#x) 
qualifier(%#x)\n",
   744  status, 
le16_to_cpu(va_status->status_qualifier));
   745  ret = -status;
   746  }
   747  
   748  err_cmd_exec:
   749  kfree(va_hdr);
   750  err_alloc:
   751  kfree(va_status);
   752  return ret;
   753  }
   754  

-- 
0-DAY CI Kernel Test Service
https://gith

Re: [PATCH v3 4/5] x86/paravirt: switch mixed paravirt/alternative calls to alternative_2

2023-10-26 Thread kernel test robot
Hi Juergen,

kernel test robot noticed the following build errors:

[auto build test ERROR on kvm/queue]
[also build test ERROR on tip/master linus/master v6.6-rc7 next-20231025]
[cannot apply to tip/x86/core kvm/linux-next tip/auto-latest]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Juergen-Gross/x86-paravirt-move-some-functions-and-defines-to-alternative/20231019-171709
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
patch link:
https://lore.kernel.org/r/20231019091520.14540-5-jgross%40suse.com
patch subject: [PATCH v3 4/5] x86/paravirt: switch mixed paravirt/alternative 
calls to alternative_2
config: x86_64-allyesconfig 
(https://download.01.org/0day-ci/archive/20231026/202310261653.lkirqagq-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231026/202310261653.lkirqagq-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310261653.lkirqagq-...@intel.com/

All errors (new ones prefixed by >>):

   arch/x86/entry/entry_64.S: Assembler messages:
>> arch/x86/entry/entry_64.S:454: Error: no such instruction: `alt_call_instr'
   arch/x86/entry/entry_64.S:319:  Info: macro invoked from here
   arch/x86/entry/entry_64.S:1138:   Info: macro invoked from here


vim +454 arch/x86/entry/entry_64.S

6368558c37107b Thomas Gleixner 2020-05-21  442  
cfa82a00533f70 Thomas Gleixner 2020-02-25  443  /**
cfa82a00533f70 Thomas Gleixner 2020-02-25  444   * idtentry_mce_db - Macro to 
generate entry stubs for #MC and #DB
cfa82a00533f70 Thomas Gleixner 2020-02-25  445   * @vector: Vector 
number
cfa82a00533f70 Thomas Gleixner 2020-02-25  446   * @asmsym: ASM 
symbol for the entry point
cfa82a00533f70 Thomas Gleixner 2020-02-25  447   * @cfunc:  C 
function to be called
cfa82a00533f70 Thomas Gleixner 2020-02-25  448   *
cfa82a00533f70 Thomas Gleixner 2020-02-25  449   * The macro emits code to set 
up the kernel context for #MC and #DB
cfa82a00533f70 Thomas Gleixner 2020-02-25  450   *
cfa82a00533f70 Thomas Gleixner 2020-02-25  451   * If the entry comes from user 
space it uses the normal entry path
cfa82a00533f70 Thomas Gleixner 2020-02-25  452   * including the return to user 
space work and preemption checks on
cfa82a00533f70 Thomas Gleixner 2020-02-25  453   * exit.
cfa82a00533f70 Thomas Gleixner 2020-02-25 @454   *
cfa82a00533f70 Thomas Gleixner 2020-02-25  455   * If hits in kernel mode then 
it needs to go through the paranoid
cfa82a00533f70 Thomas Gleixner 2020-02-25  456   * entry as the exception can 
hit any random state. No preemption
cfa82a00533f70 Thomas Gleixner 2020-02-25  457   * check on exit to keep the 
paranoid path simple.
cfa82a00533f70 Thomas Gleixner 2020-02-25  458   */
cfa82a00533f70 Thomas Gleixner 2020-02-25  459  .macro idtentry_mce_db vector 
asmsym cfunc
cfa82a00533f70 Thomas Gleixner 2020-02-25  460  SYM_CODE_START(\asmsym)
4708ea14bef314 Josh Poimboeuf  2023-03-01  461  UNWIND_HINT_IRET_ENTRY
8f93402b92d443 Peter Zijlstra  2022-03-08  462  ENDBR
cfa82a00533f70 Thomas Gleixner 2020-02-25  463  ASM_CLAC
c64cc2802a784e Lai Jiangshan   2022-04-21  464  cld
cfa82a00533f70 Thomas Gleixner 2020-02-25  465  
cfa82a00533f70 Thomas Gleixner 2020-02-25  466  pushq   $-1 
/* ORIG_RAX: no syscall to restart */
cfa82a00533f70 Thomas Gleixner 2020-02-25  467  
cfa82a00533f70 Thomas Gleixner 2020-02-25  468  /*
cfa82a00533f70 Thomas Gleixner 2020-02-25  469   * If the entry is from 
userspace, switch stacks and treat it as
cfa82a00533f70 Thomas Gleixner 2020-02-25  470   * a normal entry.
cfa82a00533f70 Thomas Gleixner 2020-02-25  471   */
cfa82a00533f70 Thomas Gleixner 2020-02-25  472  testb   $3, 
CS-ORIG_RAX(%rsp)
cfa82a00533f70 Thomas Gleixner 2020-02-25  473  jnz 
.Lfrom_usermode_switch_stack_\@
cfa82a00533f70 Thomas Gleixner 2020-02-25  474  
c82965f9e53005 Chang S. Bae2020-05-28  475  /* paranoid_entry 
returns GS information for paranoid_exit in EBX. */
cfa82a00533f70 Thomas Gleixner 2020-02-25  476  callparanoid_entry
cfa82a00533f70 Thomas Gleixner 2020-02-25  477  
cfa82a00533f70 Thomas Gleixner 2020-02-25  478  UNWIND_HINT_REGS
cfa82a00533f70 Thomas Gleixner 2020-02-25  479  
cfa82a00533f70 Thomas Gleixner 2020-02-25  480  movq%rsp, %rdi  
/* pt_regs pointer */
cfa82a00533f70 Thomas Gleixner 2020-02-25  481  
cfa82a00533f70 Thomas Gleixner 2020-02-25  482  ca

Re: [PATCH V1 vfio 6/9] virtio-pci: Introduce APIs to execute legacy IO admin commands

2023-10-21 Thread kernel test robot
Hi Yishai,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.6-rc6]
[cannot apply to next-20231020]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Yishai-Hadas/virtio-pci-Fix-common-config-map-for-modern-device/20231017-214450
base:   linus/master
patch link:
https://lore.kernel.org/r/20231017134217.82497-7-yishaih%40nvidia.com
patch subject: [PATCH V1 vfio 6/9] virtio-pci: Introduce APIs to execute legacy 
IO admin commands
config: x86_64-rhel-8.3-rust 
(https://download.01.org/0day-ci/archive/20231022/202310220842.adaiizso-...@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git 
ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231022/202310220842.adaiizso-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310220842.adaiizso-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/virtio/virtio_pci_modern.c:731:5: warning: no previous prototype for 
>> function 'virtio_pci_admin_list_query' [-Wmissing-prototypes]
   int virtio_pci_admin_list_query(struct pci_dev *pdev, u8 *buf, int buf_size)
   ^
   drivers/virtio/virtio_pci_modern.c:731:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int virtio_pci_admin_list_query(struct pci_dev *pdev, u8 *buf, int buf_size)
   ^
   static 
>> drivers/virtio/virtio_pci_modern.c:758:5: warning: no previous prototype for 
>> function 'virtio_pci_admin_list_use' [-Wmissing-prototypes]
   int virtio_pci_admin_list_use(struct pci_dev *pdev, u8 *buf, int buf_size)
   ^
   drivers/virtio/virtio_pci_modern.c:758:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int virtio_pci_admin_list_use(struct pci_dev *pdev, u8 *buf, int buf_size)
   ^
   static 
>> drivers/virtio/virtio_pci_modern.c:786:5: warning: no previous prototype for 
>> function 'virtio_pci_admin_legacy_io_write' [-Wmissing-prototypes]
   int virtio_pci_admin_legacy_io_write(struct pci_dev *pdev, u16 opcode,
   ^
   drivers/virtio/virtio_pci_modern.c:786:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int virtio_pci_admin_legacy_io_write(struct pci_dev *pdev, u16 opcode,
   ^
   static 
>> drivers/virtio/virtio_pci_modern.c:831:5: warning: no previous prototype for 
>> function 'virtio_pci_admin_legacy_io_read' [-Wmissing-prototypes]
   int virtio_pci_admin_legacy_io_read(struct pci_dev *pdev, u16 opcode,
   ^
   drivers/virtio/virtio_pci_modern.c:831:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int virtio_pci_admin_legacy_io_read(struct pci_dev *pdev, u16 opcode,
   ^
   static 
>> drivers/virtio/virtio_pci_modern.c:877:5: warning: no previous prototype for 
>> function 'virtio_pci_admin_legacy_io_notify_info' [-Wmissing-prototypes]
   int virtio_pci_admin_legacy_io_notify_info(struct pci_dev *pdev,
   ^
   drivers/virtio/virtio_pci_modern.c:877:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   int virtio_pci_admin_legacy_io_notify_info(struct pci_dev *pdev,
   ^
   static 
   5 warnings generated.


vim +/virtio_pci_admin_list_query +731 drivers/virtio/virtio_pci_modern.c

   721  
   722  /*
   723   * virtio_pci_admin_list_query - Provides to driver list of commands
   724   * supported for the PCI VF.
   725   * @dev: VF pci_dev
   726   * @buf: buffer to hold the returned list
   727   * @buf_size: size of the given buffer
   728   *
   729   * Returns 0 on success, or negative on failure.
   730   */
 > 731  int virtio_pci_admin_list_query(struct pci_dev *pdev, u8 *buf, int 
 > buf_size)
   732  {
   733  struct virtio_device *virtio_dev = 
virtio_pci_vf_get_pf_dev(pdev);
   734  struct virtio_admin_cmd cmd = {};
   735  struct scatterlist result_sg;
   736  
   737  if (!virtio_dev)
   738  return -ENODEV;
   739  
   740  sg_init_one(_sg, buf, buf_size);
   741  cmd.opcode = cpu_to_le16(VIRTIO_ADMIN_CMD_LIST_QUERY);
   742  cmd.group_type = cpu_to_le16(VIRTIO_ADMIN_GROUP_TYPE_SRIOV);
   743  cmd.result_sg = _sg;
   744  
   745  return vp_modern_admin_cmd_exec(virtio_dev, );
   746  }
   747  EXPORT_SYMBOL_GPL(virtio_pci_admin_list_que

Re: [PATCH v3 5/5] x86/paravirt: remove no longer needed paravirt patching code

2023-10-19 Thread kernel test robot
Hi Juergen,

kernel test robot noticed the following build warnings:

[auto build test WARNING on kvm/queue]
[cannot apply to tip/x86/core]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Juergen-Gross/x86-paravirt-move-some-functions-and-defines-to-alternative/20231019-171709
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
patch link:
https://lore.kernel.org/r/20231019091520.14540-6-jgross%40suse.com
patch subject: [PATCH v3 5/5] x86/paravirt: remove no longer needed paravirt 
patching code
reproduce: 
(https://download.01.org/0day-ci/archive/20231019/202310191909.ussrxzxc-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310191909.ussrxzxc-...@intel.com/

# many are suggestions rather than must-fix

WARNING:SPLIT_STRING: quoted string split across lines
#327: FILE: arch/x86/tools/relocs.c:69:
"__x86_cpu_dev_(start|end)|"
+   "__alt_instructions(_end)?|"

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v3 4/5] x86/paravirt: switch mixed paravirt/alternative calls to alternative_2

2023-10-19 Thread kernel test robot
Hi Juergen,

kernel test robot noticed the following build warnings:

[auto build test WARNING on kvm/queue]
[cannot apply to tip/x86/core]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Juergen-Gross/x86-paravirt-move-some-functions-and-defines-to-alternative/20231019-171709
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
patch link:
https://lore.kernel.org/r/20231019091520.14540-5-jgross%40suse.com
patch subject: [PATCH v3 4/5] x86/paravirt: switch mixed paravirt/alternative 
calls to alternative_2
reproduce: 
(https://download.01.org/0day-ci/archive/20231019/202310191920.r0c39s5h-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310191920.r0c39s5h-...@intel.com/

# many are suggestions rather than must-fix

ERROR:BRACKET_SPACE: space prohibited before open square bracket '['
#92: FILE: arch/x86/include/asm/paravirt_types.h:281:
+#define paravirt_ptr(op)   [paravirt_opptr] "m" (pv_ops.op)

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v3 1/5] x86/paravirt: move some functions and defines to alternative

2023-10-19 Thread kernel test robot
Hi Juergen,

kernel test robot noticed the following build warnings:

[auto build test WARNING on kvm/queue]
[cannot apply to tip/x86/core]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Juergen-Gross/x86-paravirt-move-some-functions-and-defines-to-alternative/20231019-171709
base:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
patch link:
https://lore.kernel.org/r/20231019091520.14540-2-jgross%40suse.com
patch subject: [PATCH v3 1/5] x86/paravirt: move some functions and defines to 
alternative
reproduce: 
(https://download.01.org/0day-ci/archive/20231019/202310191944.z8sc9h8o-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310191944.z8sc9h8o-...@intel.com/

# many are suggestions rather than must-fix

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in 
parentheses
#32: FILE: arch/x86/include/asm/alternative.h:334:
+#define DEFINE_ASM_FUNC(func, instr, sec)  \
+   asm (".pushsection " #sec ", \"ax\"\n"  \
+".global " #func "\n\t"\
+".type " #func ", @function\n\t"   \
+ASM_FUNC_ALIGN "\n"\
+#func ":\n\t"  \
+ASM_ENDBR  \
+instr "\n\t"   \
+ASM_RET\
+".size " #func ", . - " #func "\n\t"   \
+".popsection")

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


[mst-vhost:vhost 18/35] drivers/virtio/virtio_pci_modern.c:54:17: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'}

2023-10-18 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   185ec99c107fe7659a9d809bc7a8e7ab3c338bf9
commit: 37c82be3988d4cc710dee436d47cd80e792cab93 [18/35] virtio_pci: add check 
for common cfg size
config: parisc-allyesconfig 
(https://download.01.org/0day-ci/archive/20231019/202310190338.es0nnnf4-...@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231019/202310190338.es0nnnf4-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310190338.es0nnnf4-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/device.h:15,
from include/linux/pci.h:37,
from drivers/virtio/virtio_pci_common.h:21,
from drivers/virtio/virtio_pci_modern.c:20:
   drivers/virtio/virtio_pci_modern.c: In function 
'__vp_check_common_size_one_feature':
>> drivers/virtio/virtio_pci_modern.c:54:17: warning: format '%ld' expects 
>> argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned 
>> int'} [-Wformat=]
  54 | "virtio: common cfg size(%ld) does not match the 
feature %s\n",
 | 
^~
   include/linux/dev_printk.h:110:30: note: in definition of macro 
'dev_printk_index_wrap'
 110 | _p_func(dev, fmt, ##__VA_ARGS__);
   \
 |  ^~~
   include/linux/dev_printk.h:144:56: note: in expansion of macro 'dev_fmt'
 144 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), 
##__VA_ARGS__)
 |^~~
   drivers/virtio/virtio_pci_modern.c:53:9: note: in expansion of macro 
'dev_err'
  53 | dev_err(>dev,
 | ^~~
   drivers/virtio/virtio_pci_modern.c:54:44: note: format string is defined here
  54 | "virtio: common cfg size(%ld) does not match the 
feature %s\n",
 |  ~~^
 ||
 |long int
 |  %d


vim +54 drivers/virtio/virtio_pci_modern.c

  > 20  #include "virtio_pci_common.h"
21  
22  static u64 vp_get_features(struct virtio_device *vdev)
23  {
24  struct virtio_pci_device *vp_dev = to_vp_device(vdev);
25  
26  return vp_modern_get_features(_dev->mdev);
27  }
28  
29  static void vp_transport_features(struct virtio_device *vdev, u64 
features)
30  {
31  struct virtio_pci_device *vp_dev = to_vp_device(vdev);
32  struct pci_dev *pci_dev = vp_dev->pci_dev;
33  
34  if ((features & BIT_ULL(VIRTIO_F_SR_IOV)) &&
35  pci_find_ext_capability(pci_dev, 
PCI_EXT_CAP_ID_SRIOV))
36  __virtio_set_bit(vdev, VIRTIO_F_SR_IOV);
37  
38  if (features & BIT_ULL(VIRTIO_F_RING_RESET))
39  __virtio_set_bit(vdev, VIRTIO_F_RING_RESET);
40  }
41  
42  static int __vp_check_common_size_one_feature(struct virtio_device 
*vdev, u32 fbit,
43  u32 offset, const char 
*fname)
44  {
45  struct virtio_pci_device *vp_dev = to_vp_device(vdev);
46  
47  if (!__virtio_test_bit(vdev, fbit))
48  return 0;
49  
50  if (likely(vp_dev->mdev.common_len >= offset))
51  return 0;
52  
53  dev_err(>dev,
  > 54  "virtio: common cfg size(%ld) does not match the 
feature %s\n",
55  vp_dev->mdev.common_len, fname);
56  
57  return -EINVAL;
58  }
59  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v2] ALSA: virtio: use copy and fill_silence callbacks

2023-10-18 Thread kernel test robot
Hi Matias,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8a749fd1a8720d4619c91c8b6e7528c0a355c0aa]

url:
https://github.com/intel-lab-lkp/linux/commits/Matias-Ezequiel-Vara-Larsen/ALSA-virtio-use-copy-and-fill_silence-callbacks/20231018-185108
base:   8a749fd1a8720d4619c91c8b6e7528c0a355c0aa
patch link:https://lore.kernel.org/r/ZS%2B392ZzVIoEyv8n%40fedora
patch subject: [PATCH v2] ALSA: virtio: use copy and fill_silence callbacks
config: m68k-allyesconfig 
(https://download.01.org/0day-ci/archive/20231018/202310182118.4uwjre2p-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231018/202310182118.4uwjre2p-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310182118.4uwjre2p-...@intel.com/

All warnings (new ones prefixed by >>):

>> sound/virtio/virtio_pcm_msg.c:200: warning: Function parameter or member 
>> 'offset' not described in 'virtsnd_pcm_msg_send'
>> sound/virtio/virtio_pcm_msg.c:200: warning: Function parameter or member 
>> 'bytes' not described in 'virtsnd_pcm_msg_send'
   2 warnings as Errors


vim +200 sound/virtio/virtio_pcm_msg.c

f40a28679e0b7c Anton Yakovlev  2021-03-02  184  
f40a28679e0b7c Anton Yakovlev  2021-03-02  185  /**
f40a28679e0b7c Anton Yakovlev  2021-03-02  186   * 
virtsnd_pcm_msg_send() - Send asynchronous I/O messages.
f40a28679e0b7c Anton Yakovlev  2021-03-02  187   * @vss: VirtIO PCM 
substream.
f40a28679e0b7c Anton Yakovlev  2021-03-02  188   *
f40a28679e0b7c Anton Yakovlev  2021-03-02  189   * All messages are 
organized in an ordered circular list. Each time the
f40a28679e0b7c Anton Yakovlev  2021-03-02  190   * function is 
called, all currently non-enqueued messages are added to the
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  191   * virtqueue. For 
this, the function uses offset and bytes to calculate the
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  192   * messages that 
need to be added.
f40a28679e0b7c Anton Yakovlev  2021-03-02  193   *
f40a28679e0b7c Anton Yakovlev  2021-03-02  194   * Context: Any 
context. Expects the tx/rx queue and the VirtIO substream
f40a28679e0b7c Anton Yakovlev  2021-03-02  195   *  
spinlocks to be held by caller.
f40a28679e0b7c Anton Yakovlev  2021-03-02  196   * Return: 0 on 
success, -errno on failure.
f40a28679e0b7c Anton Yakovlev  2021-03-02  197   */
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  198  int 
virtsnd_pcm_msg_send(struct virtio_pcm_substream *vss, unsigned long offset,
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  199  
 unsigned long bytes)
f40a28679e0b7c Anton Yakovlev  2021-03-02 @200  {
f40a28679e0b7c Anton Yakovlev  2021-03-02  201  struct 
virtio_snd *snd = vss->snd;
f40a28679e0b7c Anton Yakovlev  2021-03-02  202  struct 
virtio_device *vdev = snd->vdev;
f40a28679e0b7c Anton Yakovlev  2021-03-02  203  struct 
virtqueue *vqueue = virtsnd_pcm_queue(vss)->vqueue;
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  204  unsigned long 
period_bytes = snd_pcm_lib_period_bytes(vss->substream);
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  205  unsigned long 
start, end, i;
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  206  unsigned int 
msg_count = vss->msg_count;
f40a28679e0b7c Anton Yakovlev  2021-03-02  207  bool notify = 
false;
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  208  int rc;
f40a28679e0b7c Anton Yakovlev  2021-03-02  209  
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  210  start = offset 
/ period_bytes;
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  211  end = (offset + 
bytes - 1) / period_bytes;
f40a28679e0b7c Anton Yakovlev  2021-03-02  212  
10ad52116c3a46 Matias Ezequiel Vara Larsen 2023-10-18  213  for (i = start; 
i <= end; i++) {
f40a28679e0b7c Anton Yakovlev  2021-03-02  214  struct 
virtio_pcm_msg *msg = vss->msgs[i];
f40a28679e0b7c Anton Yakovlev  2021-03-02  215  struct 
scatterlist *psgs[] = {
f40a28679e0b7c Anton Yakovlev  2021-03-02  216  
>sgs[PCM_MSG_SG_XFER],
f40a28679e0b7c Anton Yakovlev  2021-03-02  217  
>sgs[PCM_MSG_SG_DATA],
f40a28679e0b7c Anton Yakovlev  2021-03-02  218  
>sgs[PCM_MSG_SG_STATUS]
f40a28679e0b7c Anton Yakovlev  2021-03-02  219  }

Re: [PATCH V1 vfio 6/9] virtio-pci: Introduce APIs to execute legacy IO admin commands

2023-10-17 Thread kernel test robot
Hi Yishai,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.6-rc6 next-20231017]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Yishai-Hadas/virtio-pci-Fix-common-config-map-for-modern-device/20231017-214450
base:   linus/master
patch link:
https://lore.kernel.org/r/20231017134217.82497-7-yishaih%40nvidia.com
patch subject: [PATCH V1 vfio 6/9] virtio-pci: Introduce APIs to execute legacy 
IO admin commands
config: alpha-allyesconfig 
(https://download.01.org/0day-ci/archive/20231018/202310180437.jo2csm6u-...@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231018/202310180437.jo2csm6u-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310180437.jo2csm6u-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/virtio/virtio_pci_modern.c:731:5: warning: no previous prototype for 
>> 'virtio_pci_admin_list_query' [-Wmissing-prototypes]
 731 | int virtio_pci_admin_list_query(struct pci_dev *pdev, u8 *buf, int 
buf_size)
 | ^~~
>> drivers/virtio/virtio_pci_modern.c:758:5: warning: no previous prototype for 
>> 'virtio_pci_admin_list_use' [-Wmissing-prototypes]
 758 | int virtio_pci_admin_list_use(struct pci_dev *pdev, u8 *buf, int 
buf_size)
 | ^
>> drivers/virtio/virtio_pci_modern.c:786:5: warning: no previous prototype for 
>> 'virtio_pci_admin_legacy_io_write' [-Wmissing-prototypes]
 786 | int virtio_pci_admin_legacy_io_write(struct pci_dev *pdev, u16 
opcode,
 | ^~~~
>> drivers/virtio/virtio_pci_modern.c:831:5: warning: no previous prototype for 
>> 'virtio_pci_admin_legacy_io_read' [-Wmissing-prototypes]
 831 | int virtio_pci_admin_legacy_io_read(struct pci_dev *pdev, u16 opcode,
 | ^~~
>> drivers/virtio/virtio_pci_modern.c:877:5: warning: no previous prototype for 
>> 'virtio_pci_admin_legacy_io_notify_info' [-Wmissing-prototypes]
 877 | int virtio_pci_admin_legacy_io_notify_info(struct pci_dev *pdev,
 | ^~


vim +/virtio_pci_admin_list_query +731 drivers/virtio/virtio_pci_modern.c

   721  
   722  /*
   723   * virtio_pci_admin_list_query - Provides to driver list of commands
   724   * supported for the PCI VF.
   725   * @dev: VF pci_dev
   726   * @buf: buffer to hold the returned list
   727   * @buf_size: size of the given buffer
   728   *
   729   * Returns 0 on success, or negative on failure.
   730   */
 > 731  int virtio_pci_admin_list_query(struct pci_dev *pdev, u8 *buf, int 
 > buf_size)
   732  {
   733  struct virtio_device *virtio_dev = 
virtio_pci_vf_get_pf_dev(pdev);
   734  struct virtio_admin_cmd cmd = {};
   735  struct scatterlist result_sg;
   736  
   737  if (!virtio_dev)
   738  return -ENODEV;
   739  
   740  sg_init_one(_sg, buf, buf_size);
   741  cmd.opcode = cpu_to_le16(VIRTIO_ADMIN_CMD_LIST_QUERY);
   742  cmd.group_type = cpu_to_le16(VIRTIO_ADMIN_GROUP_TYPE_SRIOV);
   743  cmd.result_sg = _sg;
   744  
   745  return vp_modern_admin_cmd_exec(virtio_dev, );
   746  }
   747  EXPORT_SYMBOL_GPL(virtio_pci_admin_list_query);
   748  
   749  /*
   750   * virtio_pci_admin_list_use - Provides to device list of commands
   751   * used for the PCI VF.
   752   * @dev: VF pci_dev
   753   * @buf: buffer which holds the list
   754   * @buf_size: size of the given buffer
   755   *
   756   * Returns 0 on success, or negative on failure.
   757   */
 > 758  int virtio_pci_admin_list_use(struct pci_dev *pdev, u8 *buf, int 
 > buf_size)
   759  {
   760  struct virtio_device *virtio_dev = 
virtio_pci_vf_get_pf_dev(pdev);
   761  struct virtio_admin_cmd cmd = {};
   762  struct scatterlist data_sg;
   763  
   764  if (!virtio_dev)
   765  return -ENODEV;
   766  
   767  sg_init_one(_sg, buf, buf_size);
   768  cmd.opcode = cpu_to_le16(VIRTIO_ADMIN_CMD_LIST_USE);
   769  cmd.group_type = cpu_to_le16(VIRTIO_ADMIN_GROUP_TYPE_SRIOV);
   770  cmd.data_sg = _sg;
   771  
   772  return vp_modern_admin_cmd_exec(virtio_dev, );
   773  }
   774  EXPORT_SYMBOL_GPL(virtio_pci_admin_list_use);
   775  
   776  /*
   777   * virtio_pci_admin_le

Re: [PATCH vhost 11/22] virtio_net: sq support premapped mode

2023-10-13 Thread kernel test robot
Hi Xuan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.6-rc5 next-20231013]
[cannot apply to mst-vhost/linux-next]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-virtqueue_set_dma_premapped-support-disable/20231011-180709
base:   linus/master
patch link:
https://lore.kernel.org/r/20231011092728.105904-12-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH vhost 11/22] virtio_net: sq support premapped mode
config: parisc-randconfig-001-20231013 
(https://download.01.org/0day-ci/archive/20231013/202310131711.qjbkiwe0-...@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231013/202310131711.qjbkiwe0-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310131711.qjbkiwe0-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/net/virtio/main.c:25:
   drivers/net/virtio/virtio_net.h: In function 'virtnet_sq_unmap':
>> drivers/net/virtio/virtio_net.h:235:25: warning: cast from pointer to 
>> integer of different size [-Wpointer-to-int-cast]
 235 | head = (void *)((u64)data & ~VIRTIO_XMIT_DATA_MASK);
 | ^
>> drivers/net/virtio/virtio_net.h:235:16: warning: cast to pointer from 
>> integer of different size [-Wint-to-pointer-cast]
 235 | head = (void *)((u64)data & ~VIRTIO_XMIT_DATA_MASK);
 |^
   drivers/net/virtio/main.c: In function 'virtnet_sq_map_sg':
>> drivers/net/virtio/main.c:600:25: warning: cast from pointer to integer of 
>> different size [-Wpointer-to-int-cast]
 600 | return (void *)((u64)head | ((u64)data & 
VIRTIO_XMIT_DATA_MASK));
 | ^
   drivers/net/virtio/main.c:600:38: warning: cast from pointer to integer of 
different size [-Wpointer-to-int-cast]
 600 | return (void *)((u64)head | ((u64)data & 
VIRTIO_XMIT_DATA_MASK));
 |  ^
>> drivers/net/virtio/main.c:600:16: warning: cast to pointer from integer of 
>> different size [-Wint-to-pointer-cast]
 600 | return (void *)((u64)head | ((u64)data & 
VIRTIO_XMIT_DATA_MASK));
 |^
   drivers/net/virtio/main.c: In function 'virtnet_find_vqs':
   drivers/net/virtio/main.c:3977:48: warning: '%d' directive writing between 1 
and 11 bytes into a region of size 10 [-Wformat-overflow=]
3977 | sprintf(vi->rq[i].name, "input.%d", i);
 |^~
   drivers/net/virtio/main.c:3977:41: note: directive argument in the range 
[-2147483641, 65534]
3977 | sprintf(vi->rq[i].name, "input.%d", i);
 | ^~
   drivers/net/virtio/main.c:3977:17: note: 'sprintf' output between 8 and 18 
bytes into a destination of size 16
3977 | sprintf(vi->rq[i].name, "input.%d", i);
 | ^~
   drivers/net/virtio/main.c:3978:49: warning: '%d' directive writing between 1 
and 11 bytes into a region of size 9 [-Wformat-overflow=]
3978 | sprintf(vi->sq[i].name, "output.%d", i);
 | ^~
   drivers/net/virtio/main.c:3978:41: note: directive argument in the range 
[-2147483641, 65534]
3978 | sprintf(vi->sq[i].name, "output.%d", i);
 | ^~~
   drivers/net/virtio/main.c:3978:17: note: 'sprintf' output between 9 and 19 
bytes into a destination of size 16
3978 | sprintf(vi->sq[i].name, "output.%d", i);
 | ^~~


vim +235 drivers/net/virtio/virtio_net.h

   230  
   231  static inline void *virtnet_sq_unmap(struct virtnet_sq *sq, void *data)
   232  {
   233  struct virtnet_sq_dma *next, *head;
   234  
 > 235  head = (void *)((u64)data & ~VIRTIO_XMIT_DATA_MASK);
   236  
   237  data = head->data;
   238  
   239  while (head) {
   240  virtqueue_dma_unmap_page_attrs(sq->vq, head->addr, 
head->len, DMA_TO_DEVICE, 0);
   241  
   242  next = head->next;
   243  
   244  head-&

Re: [PATCH vhost 05/22] virtio_net: independent directory

2023-10-11 Thread kernel test robot
Hi Xuan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.6-rc5 next-20231011]
[cannot apply to mst-vhost/linux-next]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-virtqueue_set_dma_premapped-support-disable/20231011-180709
base:   linus/master
patch link:
https://lore.kernel.org/r/20231011092728.105904-6-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH vhost 05/22] virtio_net: independent directory
config: sparc-allyesconfig 
(https://download.01.org/0day-ci/archive/20231012/202310120705.ar0wpj7m-...@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231012/202310120705.ar0wpj7m-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310120705.ar0wpj7m-...@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/virtio/main.c: In function 'virtnet_find_vqs':
>> drivers/net/virtio/main.c:4091:48: warning: '%d' directive writing between 1 
>> and 11 bytes into a region of size 10 [-Wformat-overflow=]
4091 | sprintf(vi->rq[i].name, "input.%d", i);
 |^~
   drivers/net/virtio/main.c:4091:41: note: directive argument in the range 
[-2147483641, 65534]
4091 | sprintf(vi->rq[i].name, "input.%d", i);
 | ^~
   drivers/net/virtio/main.c:4091:17: note: 'sprintf' output between 8 and 18 
bytes into a destination of size 16
4091 | sprintf(vi->rq[i].name, "input.%d", i);
 | ^~
   drivers/net/virtio/main.c:4092:49: warning: '%d' directive writing between 1 
and 11 bytes into a region of size 9 [-Wformat-overflow=]
4092 | sprintf(vi->sq[i].name, "output.%d", i);
 | ^~
   drivers/net/virtio/main.c:4092:41: note: directive argument in the range 
[-2147483641, 65534]
4092 | sprintf(vi->sq[i].name, "output.%d", i);
 | ^~~
   drivers/net/virtio/main.c:4092:17: note: 'sprintf' output between 9 and 19 
bytes into a destination of size 16
4092 | sprintf(vi->sq[i].name, "output.%d", i);
 | ^~~


vim +4091 drivers/net/virtio/main.c

d85b758f72b05a drivers/net/virtio_net.c Michael S. Tsirkin 2017-03-09  4046  
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4047  
static int virtnet_find_vqs(struct virtnet_info *vi)
3f9c10b0d478a3 drivers/net/virtio_net.c Amit Shah  2011-12-22  4048  {
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4049 
vq_callback_t **callbacks;
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4050 
struct virtqueue **vqs;
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4051 
int ret = -ENOMEM;
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4052 
int i, total_vqs;
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4053 
const char **names;
d45b897b11eaf9 drivers/net/virtio_net.c Michael S. Tsirkin 2017-03-06  4054 
bool *ctx;
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4055  
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4056 
/* We expect 1 RX virtqueue followed by 1 TX virtqueue, followed by
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4057 
 * possible N-1 RX/TX queue pairs used in multiqueue mode, followed by
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4058 
 * possible control vq.
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4059 
 */
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4060 
total_vqs = vi->max_queue_pairs * 2 +
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4061 
virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ);
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4062  
986a4f4d452dec drivers/net/virtio_net.c Jason Wang 2012-12-07  4063 
/* Allocate space for find_vqs parameters */
6396bb221514d2 drivers/net/virtio_net.c Kees 

Re: [PATCH vhost 01/22] virtio_ring: virtqueue_set_dma_premapped support disable

2023-10-11 Thread kernel test robot
Hi Xuan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.6-rc5 next-20231011]
[cannot apply to mst-vhost/linux-next]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-virtqueue_set_dma_premapped-support-disable/20231011-180709
base:   linus/master
patch link:
https://lore.kernel.org/r/20231011092728.105904-2-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH vhost 01/22] virtio_ring: virtqueue_set_dma_premapped 
support disable
config: m68k-allyesconfig 
(https://download.01.org/0day-ci/archive/20231011/202310112204.h03tudph-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20231011/202310112204.h03tudph-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202310112204.h03tudph-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/virtio/virtio_ring.c:2788: warning: Function parameter or member 
>> 'mode' not described in 'virtqueue_set_dma_premapped'


vim +2788 drivers/virtio/virtio_ring.c

c790e8e1817f1a Xuan Zhuo 2022-08-01  2765  
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2766  /**
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2767   * virtqueue_set_dma_premapped - set 
the vring premapped mode
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2768   * @_vq: the struct virtqueue we're 
talking about.
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2769   *
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2770   * Enable the premapped mode of the 
vq.
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2771   *
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2772   * The vring in premapped mode does 
not do dma internally, so the driver must
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2773   * do dma mapping in advance. The 
driver must pass the dma_address through
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2774   * dma_address of scatterlist. When 
the driver got a used buffer from
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2775   * the vring, it has to unmap the 
dma address.
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2776   *
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2777   * This function must be called 
immediately after creating the vq, or after vq
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2778   * reset, and before adding any 
buffers to it.
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2779   *
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2780   * Caller must ensure we don't call 
this with other virtqueue operations
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2781   * at the same time (except where 
noted).
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2782   *
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2783   * Returns zero or a negative error.
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2784   * 0: success.
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2785   * -EINVAL: vring does not use the 
dma api, so we can not enable premapped mode.
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2786   */
f8d1a236ad114f Xuan Zhuo 2023-10-11  2787  int 
virtqueue_set_dma_premapped(struct virtqueue *_vq, bool mode)
8daafe9ebbd21a Xuan Zhuo 2023-08-10 @2788  {
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2789   struct vring_virtqueue *vq = 
to_vvq(_vq);
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2790   u32 num;
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2791  
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2792   START_USE(vq);
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2793  
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2794   num = vq->packed_ring ? 
vq->packed.vring.num : vq->split.vring.num;
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2795  
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2796   if (num != vq->vq.num_free) {
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2797   END_USE(vq);
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2798   return -EINVAL;
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2799   }
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2800  
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2801   if (!vq->use_dma_api) {
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2802   END_USE(vq);
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2803   return -EINVAL;
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2804   }
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2805  
f8d1a236ad114f Xuan Zhuo 2023-10-11  2806   if (mode) {
8daafe9ebbd21a Xuan Zhuo 2023-08-10  2807   vq->premapped = true;
b319940f83c21b Xuan Zhuo 2023-08-10  2808   vq->do_unmap = false;
f8d1a236ad114f Xuan Zhuo 2023-10-11  2809   } else {
f8d1a236ad114f Xuan Zhuo 2023-10-11  2810   vq->premapped = false;
f8d1a236ad114f Xuan Zhuo 2023-10-11  2811   vq->do_unmap

Re: [PATCH vfio 07/11] virtio-pci: Introduce admin commands

2023-09-24 Thread kernel test robot
Hi Yishai,

kernel test robot noticed the following build warnings:

[auto build test WARNING on awilliam-vfio/for-linus]
[also build test WARNING on linus/master v6.6-rc3 next-20230921]
[cannot apply to awilliam-vfio/next]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Yishai-Hadas/virtio-pci-Use-virtio-pci-device-layer-vq-info-instead-of-generic-one/20230922-062611
base:   https://github.com/awilliam/linux-vfio.git for-linus
patch link:
https://lore.kernel.org/r/20230921124040.145386-8-yishaih%40nvidia.com
patch subject: [PATCH vfio 07/11] virtio-pci: Introduce admin commands
config: x86_64-rhel-8.3-rust 
(https://download.01.org/0day-ci/archive/20230925/202309251120.rwbiazym-...@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git 
ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20230925/202309251120.rwbiazym-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202309251120.rwbiazym-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/virtio/virtio_pci_modern_dev.c:3:
   In file included from include/linux/virtio_pci_modern.h:6:
>> include/uapi/linux/virtio_pci.h:270:4: warning: attribute '__packed__' is 
>> ignored, place it after "struct" to apply attribute to type declaration 
>> [-Wignored-attributes]
   }; __packed
  ^
   include/linux/compiler_attributes.h:304:56: note: expanded from macro 
'__packed'
   #define __packed__attribute__((__packed__))
  ^
   1 warning generated.


vim +270 include/uapi/linux/virtio_pci.h

   264  
   265  struct virtio_admin_cmd_notify_info_data {
   266  u8 flags; /* 0 = end of list, 1 = owner device, 2 = member 
device */
   267  u8 bar; /* BAR of the member or the owner device */
   268  u8 padding[6];
   269  __le64 offset; /* Offset within bar. */
 > 270  }; __packed
   271  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH vfio 07/11] virtio-pci: Introduce admin commands

2023-09-23 Thread kernel test robot
Hi Yishai,

kernel test robot noticed the following build errors:

[auto build test ERROR on awilliam-vfio/for-linus]
[also build test ERROR on mst-vhost/linux-next linus/master v6.6-rc2 
next-20230921]
[cannot apply to awilliam-vfio/next]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Yishai-Hadas/virtio-pci-Use-virtio-pci-device-layer-vq-info-instead-of-generic-one/20230922-062611
base:   https://github.com/awilliam/linux-vfio.git for-linus
patch link:
https://lore.kernel.org/r/20230921124040.145386-8-yishaih%40nvidia.com
patch subject: [PATCH vfio 07/11] virtio-pci: Introduce admin commands
config: i386-randconfig-012-20230924 
(https://download.01.org/0day-ci/archive/20230924/202309241353.ykr3cc2k-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20230924/202309241353.ykr3cc2k-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202309241353.ykr3cc2k-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from :
>> ./usr/include/linux/virtio_pci.h:250:9: error: unknown type name 'u8'
 250 | u8 offset; /* Starting offset of the register(s) to write. */
 | ^~
   ./usr/include/linux/virtio_pci.h:251:9: error: unknown type name 'u8'
 251 | u8 reserved[7];
 | ^~
   ./usr/include/linux/virtio_pci.h:252:9: error: unknown type name 'u8'
 252 | u8 registers[];
 | ^~
   ./usr/include/linux/virtio_pci.h:256:9: error: unknown type name 'u8'
 256 | u8 offset; /* Starting offset of the register(s) to read. */
 | ^~
   ./usr/include/linux/virtio_pci.h:266:9: error: unknown type name 'u8'
 266 | u8 flags; /* 0 = end of list, 1 = owner device, 2 = member 
device */
 | ^~
   ./usr/include/linux/virtio_pci.h:267:9: error: unknown type name 'u8'
 267 | u8 bar; /* BAR of the member or the owner device */
 | ^~
   ./usr/include/linux/virtio_pci.h:268:9: error: unknown type name 'u8'
 268 | u8 padding[6];
 | ^~

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] vdpa/mlx5: Fix firmware error on creation of 1k VQs

2023-08-29 Thread kernel test robot
Hi Dragos,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.5 next-20230829]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Dragos-Tatulea/vdpa-mlx5-Fix-firmware-error-on-creation-of-1k-VQs/20230830-014600
base:   linus/master
patch link:
https://lore.kernel.org/r/20230829174219.928343-1-dtatulea%40nvidia.com
patch subject: [PATCH] vdpa/mlx5: Fix firmware error on creation of 1k VQs
config: sparc-allyesconfig 
(https://download.01.org/0day-ci/archive/20230830/202308300241.q7t7ouf3-...@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20230830/202308300241.q7t7ouf3-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202308300241.q7t7ouf3-...@intel.com/

All warnings (new ones prefixed by >>):

   drivers/vdpa/mlx5/net/mlx5_vnet.c: In function 'read_umem_params':
>> drivers/vdpa/mlx5/net/mlx5_vnet.c:658:1: warning: the frame size of 4128 
>> bytes is larger than 2048 bytes [-Wframe-larger-than=]
 658 | }
 | ^


vim +658 drivers/vdpa/mlx5/net/mlx5_vnet.c

   627  
   628  static int read_umem_params(struct mlx5_vdpa_net *ndev)
   629  {
   630  u32 out[MLX5_ST_SZ_DW(query_hca_cap_out)] = {};
   631  u32 in[MLX5_ST_SZ_DW(query_hca_cap_in)] = {};
   632  u16 opmod = (MLX5_CAP_VDPA_EMULATION << 1) | 
(HCA_CAP_OPMOD_GET_CUR & 0x01);
   633  struct mlx5_core_dev *mdev = ndev->mvdev.mdev;
   634  void *caps;
   635  int err;
   636  
   637  MLX5_SET(query_hca_cap_in, in, opcode, 
MLX5_CMD_OP_QUERY_HCA_CAP);
   638  MLX5_SET(query_hca_cap_in, in, op_mod, opmod);
   639  err = mlx5_cmd_exec_inout(mdev, query_hca_cap, in, out);
   640  if (err) {
   641  mlx5_vdpa_warn(>mvdev,
   642  "Failed reading vdpa umem capabilities with err 
%d\n", err);
   643  return err;
   644  }
   645  
   646  caps =  MLX5_ADDR_OF(query_hca_cap_out, out, capability);
   647  
   648  ndev->umem_1_buffer_param_a = MLX5_GET(virtio_emulation_cap, 
caps, umem_1_buffer_param_a);
   649  ndev->umem_1_buffer_param_b = MLX5_GET(virtio_emulation_cap, 
caps, umem_1_buffer_param_b);
   650  
   651  ndev->umem_2_buffer_param_a = MLX5_GET(virtio_emulation_cap, 
caps, umem_2_buffer_param_a);
   652  ndev->umem_2_buffer_param_b = MLX5_GET(virtio_emulation_cap, 
caps, umem_2_buffer_param_b);
   653  
   654  ndev->umem_3_buffer_param_a = MLX5_GET(virtio_emulation_cap, 
caps, umem_3_buffer_param_a);
   655  ndev->umem_3_buffer_param_b = MLX5_GET(virtio_emulation_cap, 
caps, umem_3_buffer_param_b);
   656  
   657  return 0;
 > 658  }
   659  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH net-next 6/8] virtio-net: support rx netdim

2023-08-14 Thread kernel test robot
Hi Heng,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Heng-Qi/virtio-net-initially-change-the-value-of-tx-frames/20230811-150529
base:   net-next/main
patch link:
https://lore.kernel.org/r/20230811065512.22190-7-hengqi%40linux.alibaba.com
patch subject: [PATCH net-next 6/8] virtio-net: support rx netdim
config: microblaze-randconfig-r081-20230814 
(https://download.01.org/0day-ci/archive/20230814/202308142100.l4cn4g6z-...@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 12.3.0
reproduce: 
(https://download.01.org/0day-ci/archive/20230814/202308142100.l4cn4g6z-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202308142100.l4cn4g6z-...@intel.com/

All errors (new ones prefixed by >>):

   microblaze-linux-ld: drivers/net/virtio_net.o: in function 
`virtnet_rx_dim_work':
>> drivers/net/virtio_net.c:3269: undefined reference to 
>> `net_dim_get_rx_moderation'
   microblaze-linux-ld: drivers/net/virtio_net.o: in function 
`virtnet_rx_dim_update':
>> drivers/net/virtio_net.c:1985: undefined reference to `net_dim'


vim +3269 drivers/net/virtio_net.c

  3258  
  3259  static void virtnet_rx_dim_work(struct work_struct *work)
  3260  {
  3261  struct dim *dim = container_of(work, struct dim, work);
  3262  struct receive_queue *rq = container_of(dim,
  3263  struct receive_queue, dim);
  3264  struct virtnet_info *vi = rq->vq->vdev->priv;
  3265  struct net_device *dev = vi->dev;
  3266  struct dim_cq_moder update_moder;
  3267  int qnum = rq - vi->rq, err;
  3268  
> 3269  update_moder = net_dim_get_rx_moderation(dim->mode, 
> dim->profile_ix);
  3270  err = virtnet_send_rx_notf_coal_vq_cmd(vi, qnum,
  3271 update_moder.usec,
  3272 update_moder.pkts);
  3273  if (err)
  3274  pr_debug("%s: Failed to send dim parameters on rxq%d\n",
  3275   dev->name, (int)(rq - vi->rq));
  3276  
  3277  dim->state = DIM_START_MEASURE;
  3278  }
  3279  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH net-next 7/8] virtio-net: support tx netdim

2023-08-11 Thread kernel test robot
Hi Heng,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Heng-Qi/virtio-net-initially-change-the-value-of-tx-frames/20230811-150529
base:   net-next/main
patch link:
https://lore.kernel.org/r/20230811065512.22190-8-hengqi%40linux.alibaba.com
patch subject: [PATCH net-next 7/8] virtio-net: support tx netdim
config: i386-randconfig-i011-20230811 
(https://download.01.org/0day-ci/archive/20230811/202308112350.gtajkzog-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: 
(https://download.01.org/0day-ci/archive/20230811/202308112350.gtajkzog-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202308112350.gtajkzog-...@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-kworld-315u.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-kworld-pc150u.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-leadtek-y04g0051.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-lme2510.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-manli.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-mecool-kiii-pro.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-mecool-kii-pro.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-medion-x10.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-minix-neo.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-digivox-iii.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-digivox-ii.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-tvanywhere.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-nebula.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-norwood.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-npgtech.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-odroid.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pctv-sedna.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pine64.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pinnacle-color.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pinnacle-grey.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview-002t.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview-mk12.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview-new.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-powercolor-real-angel.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-proteus-2309.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-purpletv.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pv951.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-rc6-mce.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-real-audio-220-32-keys.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-reddo.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-snapstream-firefly.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-streamzap.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-su3000.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-tanix-tx3mini.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-tanix-tx5max.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-tbs-nec.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-technisat-ts35.o
WARNING: modp

Re: [PATCH net-next 6/8] virtio-net: support rx netdim

2023-08-11 Thread kernel test robot
Hi Heng,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Heng-Qi/virtio-net-initially-change-the-value-of-tx-frames/20230811-150529
base:   net-next/main
patch link:
https://lore.kernel.org/r/20230811065512.22190-7-hengqi%40linux.alibaba.com
patch subject: [PATCH net-next 6/8] virtio-net: support rx netdim
config: i386-randconfig-i011-20230811 
(https://download.01.org/0day-ci/archive/20230811/202308112234.awbppmuv-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: 
(https://download.01.org/0day-ci/archive/20230811/202308112234.awbppmuv-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202308112234.awbppmuv-...@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-kworld-315u.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-kworld-pc150u.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-kworld-plus-tv-analog.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-leadtek-y04g0051.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-lme2510.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-manli.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-mecool-kiii-pro.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-mecool-kii-pro.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-medion-x10.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-minix-neo.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-digivox-iii.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-digivox-ii.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-tvanywhere.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-msi-tvanywhere-plus.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-nebula.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-nec-terratec-cinergy-xs.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-norwood.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-npgtech.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-odroid.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pctv-sedna.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pine64.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pinnacle-color.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pinnacle-grey.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pinnacle-pctv-hd.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview-002t.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview-mk12.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview-new.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pixelview.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-powercolor-real-angel.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-proteus-2309.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-purpletv.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-pv951.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-rc6-mce.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-real-audio-220-32-keys.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-reddo.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-snapstream-firefly.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-streamzap.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-su3000.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-tanix-tx3mini.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-tanix-tx5max.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-tbs-nec.o
WARNING: modpost: missing MODULE_DESCRIPTION() in 
drivers/media/rc/keymaps/rc-technisat-ts35.o
WARNING: modp

[mst-vhost:vhost 34/46] drivers/vdpa/vdpa_user/vduse_dev.c:1812:23: error: use of undeclared identifier 'VIRTIO_RING_F_INDIRECT_DESC'

2023-08-10 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   bb59e1f960bd07f70a4b3d8de99bfd8d71835199
commit: 334f48a83105ebe129a660d1ea1a0c29f87d50c7 [34/46] vduse: Temporarily 
disable control queue features
config: x86_64-buildonly-randconfig-r001-20230811 
(https://download.01.org/0day-ci/archive/20230811/202308110712.wcqoog00-...@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git 
ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: 
(https://download.01.org/0day-ci/archive/20230811/202308110712.wcqoog00-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202308110712.wcqoog00-...@intel.com/

All errors (new ones prefixed by >>):

>> drivers/vdpa/vdpa_user/vduse_dev.c:1812:23: error: use of undeclared 
>> identifier 'VIRTIO_RING_F_INDIRECT_DESC'
   config->features &= VDUSE_NET_VALID_FEATURES_MASK;
   ^
   drivers/vdpa/vdpa_user/vduse_dev.c:66:11: note: expanded from macro 
'VDUSE_NET_VALID_FEATURES_MASK'
BIT_ULL(VIRTIO_RING_F_INDIRECT_DESC) | \
^
>> drivers/vdpa/vdpa_user/vduse_dev.c:1812:23: error: use of undeclared 
>> identifier 'VIRTIO_F_EVENT_IDX'
   drivers/vdpa/vdpa_user/vduse_dev.c:67:11: note: expanded from macro 
'VDUSE_NET_VALID_FEATURES_MASK'
BIT_ULL(VIRTIO_F_EVENT_IDX) |  \
^
>> drivers/vdpa/vdpa_user/vduse_dev.c:1812:23: error: use of undeclared 
>> identifier 'VIRTIO_F_IOMMU_PLATFORM'
   drivers/vdpa/vdpa_user/vduse_dev.c:69:11: note: expanded from macro 
'VDUSE_NET_VALID_FEATURES_MASK'
BIT_ULL(VIRTIO_F_IOMMU_PLATFORM) | \
^
   drivers/vdpa/vdpa_user/vduse_dev.c:2007:51: warning: shift count >= width of 
type [-Wshift-count-overflow]
   ret = dma_set_mask_and_coherent(>vdpa.dev, DMA_BIT_MASK(64));
^~~~
   include/linux/dma-mapping.h:77:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
   1 warning and 3 errors generated.


vim +/VIRTIO_RING_F_INDIRECT_DESC +1812 drivers/vdpa/vdpa_user/vduse_dev.c

  1804  
  1805  static void vduse_dev_features_filter(struct vduse_dev_config *config)
  1806  {
  1807  /*
  1808   * Temporarily filter out virtio-net's control virtqueue and 
features
  1809   * that depend on it while CVQ is being made more robust for 
VDUSE.
  1810   */
  1811  if (config->device_id == VIRTIO_ID_NET)
> 1812  config->features &= VDUSE_NET_VALID_FEATURES_MASK;
  1813  }
  1814  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] A new virtio pci driver is added for listening to vcpus inside guest. Each vcpu creates a corresponding thread to periodically send data to qemu's back-end watchdog device.

2023-08-10 Thread kernel test robot
Hi zhanghao1,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.5-rc5 next-20230809]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/zhanghao1/A-new-virtio-pci-driver-is-added-for-listening-to-vcpus-inside-guest-Each-vcpu-creates-a-corresponding-thread-to-periodi/20230731-092546
base:   linus/master
patch link:
https://lore.kernel.org/r/20230731012405.234611-1-zhanghao1%40kylinos.cn
patch subject: [PATCH] A new virtio pci driver is added for listening to vcpus 
inside guest. Each vcpu creates a corresponding thread to periodically send 
data to qemu's back-end watchdog device.
config: sparc64-randconfig-r071-20230811 
(https://download.01.org/0day-ci/archive/20230811/202308110442.0txlneks-...@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.3.0
reproduce: 
(https://download.01.org/0day-ci/archive/20230811/202308110442.0txlneks-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202308110442.0txlneks-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_vcpu_stall_detector.c:76:17: sparse: sparse: incorrect 
>> type in initializer (different address spaces) @@ expected void const 
>> [noderef] __percpu *__vpp_verify @@ got struct vcpu_stall_priv * @@
   drivers/virtio/virtio_vcpu_stall_detector.c:76:17: sparse: expected void 
const [noderef] __percpu *__vpp_verify
   drivers/virtio/virtio_vcpu_stall_detector.c:76:17: sparse: got struct 
vcpu_stall_priv *
>> drivers/virtio/virtio_vcpu_stall_detector.c:89:37: sparse: sparse: incorrect 
>> type in assignment (different base types) @@ expected unsigned int 
>> [usertype] ticks @@ got restricted __virtio32 @@
   drivers/virtio/virtio_vcpu_stall_detector.c:89:37: sparse: expected 
unsigned int [usertype] ticks
   drivers/virtio/virtio_vcpu_stall_detector.c:89:37: sparse: got 
restricted __virtio32
   drivers/virtio/virtio_vcpu_stall_detector.c:117:17: sparse: sparse: 
incorrect type in initializer (different address spaces) @@ expected void 
const [noderef] __percpu *__vpp_verify @@ got struct vcpu_stall_priv * @@
   drivers/virtio/virtio_vcpu_stall_detector.c:117:17: sparse: expected 
void const [noderef] __percpu *__vpp_verify
   drivers/virtio/virtio_vcpu_stall_detector.c:117:17: sparse: got struct 
vcpu_stall_priv *
   drivers/virtio/virtio_vcpu_stall_detector.c:129:37: sparse: sparse: 
incorrect type in assignment (different base types) @@ expected unsigned 
int [usertype] ticks @@ got restricted __virtio32 @@
   drivers/virtio/virtio_vcpu_stall_detector.c:129:37: sparse: expected 
unsigned int [usertype] ticks
   drivers/virtio/virtio_vcpu_stall_detector.c:129:37: sparse: got 
restricted __virtio32
>> drivers/virtio/virtio_vcpu_stall_detector.c:193:26: sparse: sparse: 
>> incorrect type in assignment (different address spaces) @@ expected 
>> struct vcpu_stall_priv *priv @@ got struct vcpu_stall_priv [noderef] 
>> __percpu * @@
   drivers/virtio/virtio_vcpu_stall_detector.c:193:26: sparse: expected 
struct vcpu_stall_priv *priv
   drivers/virtio/virtio_vcpu_stall_detector.c:193:26: sparse: got struct 
vcpu_stall_priv [noderef] __percpu *
   drivers/virtio/virtio_vcpu_stall_detector.c:203:24: sparse: sparse: 
incorrect type in initializer (different address spaces) @@ expected void 
const [noderef] __percpu *__vpp_verify @@ got struct vcpu_stall_priv * @@
   drivers/virtio/virtio_vcpu_stall_detector.c:203:24: sparse: expected 
void const [noderef] __percpu *__vpp_verify
   drivers/virtio/virtio_vcpu_stall_detector.c:203:24: sparse: got struct 
vcpu_stall_priv *
>> drivers/virtio/virtio_vcpu_stall_detector.c:207:15: sparse: sparse: no 
>> generic selection for 'unsigned int virtio_cread_v'
>> drivers/virtio/virtio_vcpu_stall_detector.c:207:15: sparse: sparse: 
>> incompatible types in comparison expression (different base types):
>> drivers/virtio/virtio_vcpu_stall_detector.c:207:15: sparse:bad type *
>> drivers/virtio/virtio_vcpu_stall_detector.c:207:15: sparse:unsigned int *
>> drivers/virtio/virtio_vcpu_stall_detector.c:207:15: sparse: sparse: no 
>> generic selection for 'unsigned int [addressable] virtio_cread_v'
   drivers/virtio/virtio_vcpu_stall_detector.c:217:15: sparse: sparse: no 
generic selection for 'unsigned int virtio_cread_v'
   drivers/virtio/virtio_vcpu_stall_detector.c:217:15: sparse: sparse: 
incompatible ty

[linux-next:master] BUILD REGRESSION a734662572708cf062e974f659ae50c24fc1ad17

2023-08-01 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: a734662572708cf062e974f659ae50c24fc1ad17  Add linux-next specific 
files for 20230801

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202307251531.p8zlftmz-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202308020154.xrcb9bwt-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

../lib/gcc/loongarch64-linux/12.3.0/plugin/include/config/loongarch/loongarch-opts.h:31:10:
 fatal error: loongarch-def.h: No such file or directory
clang-16: error: unknown argument: '-msym32'
drivers/i2c/busses/i2c-virtio.c:270:3: error: field designator 'freeze' does 
not refer to any field in type 'struct virtio_driver'
drivers/i2c/busses/i2c-virtio.c:271:3: error: field designator 'restore' does 
not refer to any field in type 'struct virtio_driver'
drivers/regulator/max77857-regulator.c:312:16: error: initializer element is 
not a compile-time constant
include/asm-generic/io.h:1137:20: error: static declaration of 'ioport_map' 
follows non-static declaration
include/asm-generic/io.h:1147:22: error: static declaration of 'ioport_unmap' 
follows non-static declaration
include/asm-generic/io.h:636:15: error: redefinition of 'inb_p'
include/asm-generic/io.h:644:15: error: redefinition of 'inw_p'
include/asm-generic/io.h:652:15: error: redefinition of 'inl_p'
include/asm-generic/io.h:660:16: error: redefinition of 'outb_p'
include/asm-generic/io.h:668:16: error: redefinition of 'outw_p'
include/asm-generic/io.h:676:16: error: redefinition of 'outl_p'
include/asm-generic/io.h:689:14: error: redefinition of 'insb'
include/asm-generic/io.h:697:14: error: redefinition of 'insw'
include/asm-generic/io.h:705:14: error: redefinition of 'insl'
include/asm-generic/io.h:713:15: error: redefinition of 'outsb'
include/asm-generic/io.h:722:15: error: redefinition of 'outsw'
include/asm-generic/io.h:731:15: error: redefinition of 'outsl'

Unverified Error/Warning (likely false positive, please contact us if 
interested):

sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated 
program cc1
{standard input}: Warning: end of file not at end of a line; newline inserted
{standard input}:1095: Error: pcrel too far

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- loongarch-allmodconfig
|   `-- 
lib-gcc-loongarch64-linux-..-plugin-include-config-loongarch-loongarch-opts.h:fatal-error:loongarch-def.h:No-such-file-or-directory
|-- sh-allmodconfig
|   |-- 
sh4-linux-gcc:internal-compiler-error:Segmentation-fault-signal-terminated-program-cc1
|   |-- standard-input:Error:pcrel-too-far
|   `-- standard-input:Warning:end-of-file-not-at-end-of-a-line-newline-inserted
`-- sh-randconfig-r023-20230731
|-- include-asm-generic-io.h:error:redefinition-of-inb_p
|-- include-asm-generic-io.h:error:redefinition-of-inl_p
|-- include-asm-generic-io.h:error:redefinition-of-insb
|-- include-asm-generic-io.h:error:redefinition-of-insl
|-- include-asm-generic-io.h:error:redefinition-of-insw
|-- include-asm-generic-io.h:error:redefinition-of-inw_p
|-- include-asm-generic-io.h:error:redefinition-of-outb_p
|-- include-asm-generic-io.h:error:redefinition-of-outl_p
|-- include-asm-generic-io.h:error:redefinition-of-outsb
|-- include-asm-generic-io.h:error:redefinition-of-outsl
|-- include-asm-generic-io.h:error:redefinition-of-outsw
|-- include-asm-generic-io.h:error:redefinition-of-outw_p
|-- 
include-asm-generic-io.h:error:static-declaration-of-ioport_map-follows-non-static-declaration
`-- 
include-asm-generic-io.h:error:static-declaration-of-ioport_unmap-follows-non-static-declaration
clang_recent_errors
|-- hexagon-allmodconfig
|   |-- 
drivers-i2c-busses-i2c-virtio.c:error:field-designator-freeze-does-not-refer-to-any-field-in-type-struct-virtio_driver
|   |-- 
drivers-i2c-busses-i2c-virtio.c:error:field-designator-restore-does-not-refer-to-any-field-in-type-struct-virtio_driver
|   `-- 
drivers-regulator-max77857-regulator.c:error:initializer-element-is-not-a-compile-time-constant
|-- hexagon-randconfig-r015-20230731
|   `-- 
drivers-regulator-max77857-regulator.c:error:initializer-element-is-not-a-compile-time-constant
|-- i386-randconfig-i012-20230731
|   |-- 
drivers-i2c-busses-i2c-virtio.c:error:field-designator-freeze-does-not-refer-to-any-field-in-type-struct-virtio_driver
|   `-- 
drivers-i2c-busses-i2c-virtio.c:error:field-designator-restore-does-not-refer-to-any-field-in-type-struct-virtio_driver
`-- mips-sb1250_swarm_defconfig
`-- clang:error:unknown-argument:msym32

elapsed time: 725m

configs tested: 111
configs skipped: 5

tested configs:
alphaallyesconfig   gcc  
alpha   defconfig   gcc  
alpharandconfig-r026-20230731   gcc  
arc  alldefconfig   gcc  
arc  allyesconfig   gcc  
arc   

Re: [PATCH v2 21/22] i2c: virtio: Remove #ifdef guards for PM related functions

2023-07-22 Thread kernel test robot
Hi Paul,

kernel test robot noticed the following build errors:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on brgl/gpio/for-next krzk/for-next linus/master 
v6.5-rc2 next-20230721]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Paul-Cercueil/i2c-au1550-Remove-ifdef-guards-for-PM-related-functions/20230722-200209
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git 
i2c/for-next
patch link:
https://lore.kernel.org/r/20230722115310.27681-5-paul%40crapouillou.net
patch subject: [PATCH v2 21/22] i2c: virtio: Remove #ifdef guards for PM 
related functions
config: i386-randconfig-r015-20230722 
(https://download.01.org/0day-ci/archive/20230722/20230746.k1gyogcb-...@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 
8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: 
(https://download.01.org/0day-ci/archive/20230722/20230746.k1gyogcb-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/20230746.k1gyogcb-...@intel.com/

All errors (new ones prefixed by >>):

>> drivers/i2c/busses/i2c-virtio.c:270:3: error: field designator 'freeze' does 
>> not refer to any field in type 'struct virtio_driver'
   .freeze = pm_sleep_ptr(virtio_i2c_freeze),
^
>> drivers/i2c/busses/i2c-virtio.c:271:3: error: field designator 'restore' 
>> does not refer to any field in type 'struct virtio_driver'
   .restore= pm_sleep_ptr(virtio_i2c_restore),
^
   2 errors generated.


vim +270 drivers/i2c/busses/i2c-virtio.c

   260  
   261  static struct virtio_driver virtio_i2c_driver = {
   262  .feature_table  = features,
   263  .feature_table_size = ARRAY_SIZE(features),
   264  .id_table   = id_table,
   265  .probe  = virtio_i2c_probe,
   266  .remove = virtio_i2c_remove,
   267  .driver = {
   268  .name   = "i2c_virtio",
   269  },
 > 270  .freeze = pm_sleep_ptr(virtio_i2c_freeze),
 > 271  .restore= pm_sleep_ptr(virtio_i2c_restore),
   272  };
   273  module_virtio_driver(virtio_i2c_driver);
   274  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v2 21/22] i2c: virtio: Remove #ifdef guards for PM related functions

2023-07-22 Thread kernel test robot
Hi Paul,

kernel test robot noticed the following build errors:

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on brgl/gpio/for-next krzk/for-next linus/master 
v6.5-rc2 next-20230721]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Paul-Cercueil/i2c-au1550-Remove-ifdef-guards-for-PM-related-functions/20230722-200209
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git 
i2c/for-next
patch link:
https://lore.kernel.org/r/20230722115310.27681-5-paul%40crapouillou.net
patch subject: [PATCH v2 21/22] i2c: virtio: Remove #ifdef guards for PM 
related functions
config: nios2-randconfig-r005-20230722 
(https://download.01.org/0day-ci/archive/20230722/202307222129.q7wjpurg-...@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.3.0
reproduce: 
(https://download.01.org/0day-ci/archive/20230722/202307222129.q7wjpurg-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202307222129.q7wjpurg-...@intel.com/

All errors (new ones prefixed by >>):

>> drivers/i2c/busses/i2c-virtio.c:270:10: error: 'struct virtio_driver' has no 
>> member named 'freeze'
 270 | .freeze = pm_sleep_ptr(virtio_i2c_freeze),
 |  ^~
   In file included from include/linux/cpumask.h:10,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/slab.h:16,
from include/linux/resource_ext.h:11,
from include/linux/acpi.h:13,
from drivers/i2c/busses/i2c-virtio.c:11:
>> include/linux/kernel.h:58:33: error: initialization of 'const struct 
>> virtio_device_id *' from incompatible pointer type 'int (*)(struct 
>> virtio_device *)' [-Werror=incompatible-pointer-types]
  58 | #define PTR_IF(cond, ptr)   ((cond) ? (ptr) : NULL)
 | ^
   include/linux/pm.h:452:28: note: in expansion of macro 'PTR_IF'
 452 | #define pm_sleep_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM_SLEEP), 
(_ptr))
 |^~
   drivers/i2c/busses/i2c-virtio.c:270:35: note: in expansion of macro 
'pm_sleep_ptr'
 270 | .freeze = pm_sleep_ptr(virtio_i2c_freeze),
 |   ^~~~
   include/linux/kernel.h:58:33: note: (near initialization for 
'virtio_i2c_driver.id_table')
  58 | #define PTR_IF(cond, ptr)   ((cond) ? (ptr) : NULL)
 | ^
   include/linux/pm.h:452:28: note: in expansion of macro 'PTR_IF'
 452 | #define pm_sleep_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM_SLEEP), 
(_ptr))
 |^~
   drivers/i2c/busses/i2c-virtio.c:270:35: note: in expansion of macro 
'pm_sleep_ptr'
 270 | .freeze = pm_sleep_ptr(virtio_i2c_freeze),
 |   ^~~~
   include/linux/kernel.h:58:33: warning: initialized field overwritten 
[-Woverride-init]
  58 | #define PTR_IF(cond, ptr)   ((cond) ? (ptr) : NULL)
 | ^
   include/linux/pm.h:452:28: note: in expansion of macro 'PTR_IF'
 452 | #define pm_sleep_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM_SLEEP), 
(_ptr))
 |^~
   drivers/i2c/busses/i2c-virtio.c:270:35: note: in expansion of macro 
'pm_sleep_ptr'
 270 | .freeze = pm_sleep_ptr(virtio_i2c_freeze),
 |   ^~~~
   include/linux/kernel.h:58:33: note: (near initialization for 
'virtio_i2c_driver.id_table')
  58 | #define PTR_IF(cond, ptr)   ((cond) ? (ptr) : NULL)
 | ^
   include/linux/pm.h:452:28: note: in expansion of macro 'PTR_IF'
 452 | #define pm_sleep_ptr(_ptr) PTR_IF(IS_ENABLED(CONFIG_PM_SLEEP), 
(_ptr))
 |^~
   drivers/i2c/busses/i2c-virtio.c:270:35: note: in expansion of macro 
'pm_sleep_ptr'
 270 | .freeze = pm_sleep_ptr(virtio_i2c_freeze),
 |   ^~~~
>> drivers/i2c/busses/i2c-virtio.c:271:10: error: 'struct virtio_driver' has no 
>> member named 'restore'
 271 | .restore= pm_sleep_ptr(virtio_i2c_restore),
 |

Re: [PATCH vhost v12 10/10] virtio_net: merge dma operations when filling mergeable buffers

2023-07-19 Thread kernel test robot
Hi Xuan,

kernel test robot noticed the following build warnings:

[auto build test WARNING on v6.4]
[cannot apply to mst-vhost/linux-next linus/master v6.5-rc2 v6.5-rc1 
next-20230719]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-check-use_dma_api-before-unmap-desc-for-indirect/20230719-121424
base:   v6.4
patch link:
https://lore.kernel.org/r/20230719040422.126357-11-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH vhost v12 10/10] virtio_net: merge dma operations when 
filling mergeable buffers
config: i386-randconfig-i006-20230718 
(https://download.01.org/0day-ci/archive/20230719/202307191819.0tatknwa-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: 
(https://download.01.org/0day-ci/archive/20230719/202307191819.0tatknwa-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202307191819.0tatknwa-...@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/virtio_net.c: In function 'virtnet_rq_init_one_sg':
>> drivers/net/virtio_net.c:624:41: warning: cast from pointer to integer of 
>> different size [-Wpointer-to-int-cast]
 624 | rq->sg[0].dma_address = (dma_addr_t)addr;
 | ^
   drivers/net/virtio_net.c: In function 'virtnet_rq_alloc':
>> drivers/net/virtio_net.c:682:28: warning: cast to pointer from integer of 
>> different size [-Wint-to-pointer-cast]
 682 | *sg_addr = (void *)(dma->addr + alloc_frag->offset - 
sizeof(*dma));
 |^


vim +624 drivers/net/virtio_net.c

   619  
   620  static void virtnet_rq_init_one_sg(struct receive_queue *rq, void 
*addr, u32 len)
   621  {
   622  if (rq->do_dma) {
   623  sg_init_table(rq->sg, 1);
 > 624  rq->sg[0].dma_address = (dma_addr_t)addr;
   625  rq->sg[0].length = len;
   626  } else {
   627  sg_init_one(rq->sg, addr, len);
   628  }
   629  }
   630  
   631  static void *virtnet_rq_alloc(struct receive_queue *rq, u32 size,
   632void **sg_addr, gfp_t gfp)
   633  {
   634  struct page_frag *alloc_frag = >alloc_frag;
   635  struct virtnet_rq_dma *dma;
   636  struct device *dev;
   637  void *buf, *head;
   638  dma_addr_t addr;
   639  
   640  if (unlikely(!skb_page_frag_refill(size, alloc_frag, gfp)))
   641  return NULL;
   642  
   643  head = (char *)page_address(alloc_frag->page);
   644  
   645  if (rq->do_dma) {
   646  dma = head;
   647  
   648  /* new pages */
   649  if (!alloc_frag->offset) {
   650  if (rq->last_dma) {
   651  /* Now, the new page is allocated, the 
last dma
   652   * will not be used. So the dma can be 
unmapped
   653   * if the ref is 0.
   654   */
   655  virtnet_rq_unmap(rq, rq->last_dma, 0);
   656  rq->last_dma = NULL;
   657  }
   658  
   659  dev = virtqueue_dma_dev(rq->vq);
   660  
   661  dma->len = alloc_frag->size - sizeof(*dma);
   662  
   663  addr = dma_map_single_attrs(dev, dma + 1, 
dma->len, DMA_FROM_DEVICE, 0);
   664  if (addr == DMA_MAPPING_ERROR)
   665  return NULL;
   666  
   667  dma->addr = addr;
   668  dma->need_sync = dma_need_sync(dev, addr);
   669  
   670  /* Add a reference to dma to prevent the entire 
dma from
   671   * being released during error handling. This 
reference
   672   * will be freed after the pages are no longer 
used.
   673   */
   674  get_page(alloc_frag->page);
   675  dma->ref = 1;
   676  alloc_frag->offset = sizeof(*dma);
   677  
   678  rq->last_dma = dma;
   679  }
   680  
   681  ++dma->ref;
 > 682  *sg_addr = (void *)(dma->addr + alloc_frag->o

[linux-next:master] BUILD REGRESSION 1c6f93977947dbba1fc4d250c4eb8a7d4cfdecf1

2023-07-04 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: 1c6f93977947dbba1fc4d250c4eb8a7d4cfdecf1  Add linux-next specific 
files for 20230704

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202306260401.qzlyqpv2-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202306301709.lvrxzycj-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202306301756.x8dgyynl-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

drivers/bluetooth/btmtk.c:386:32: error: no member named 'dump' in 'struct 
hci_dev'
drivers/bluetooth/btmtk.c:386:44: error: 'struct hci_dev' has no member named 
'dump'
drivers/char/mem.c:164:25: error: implicit declaration of function 
'unxlate_dev_mem_ptr'; did you mean 'xlate_dev_mem_ptr'? 
[-Werror=implicit-function-declaration]
drivers/mfd/max77541.c:176:18: warning: cast to smaller integer type 'enum 
max7754x_ids' from 'const void *' [-Wvoid-pointer-to-enum-cast]
lib/kunit/executor_test.c:138:4: warning: cast from 'void (*)(const void *)' to 
'kunit_action_t *' (aka 'void (*)(void *)') converts to incompatible function 
type [-Wcast-function-type-strict]
lib/kunit/test.c:775:38: warning: cast from 'void (*)(const void *)' to 
'kunit_action_t *' (aka 'void (*)(void *)') converts to incompatible function 
type [-Wcast-function-type-strict]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/vhost/vhost.c:1654 vhost_vring_ioctl() error: uninitialized symbol 'vq'.
drivers/vhost/vhost.c:1685 vhost_vring_ioctl() error: uninitialized symbol 
'idx'.
drivers/vhost/vhost.c:763 vhost_worker_ioctl() error: uninitialized symbol 'vq'.
drivers/vhost/vhost.c:774 vhost_worker_ioctl() error: uninitialized symbol 
'idx'.
{standard input}: Error: local label `"2" (instance number 9 of a fb label)' is 
not defined

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-randconfig-r002-20230704
|   `-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
|-- loongarch-randconfig-r022-20230704
|   `-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
|-- m68k-randconfig-r016-20230704
|   `-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
|-- microblaze-randconfig-r073-20230703
|   `-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
|-- nios2-randconfig-r034-20230704
|   `-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
|-- riscv-randconfig-m031-20230703
|   |-- 
drivers-vhost-vhost.c-vhost_vring_ioctl()-error:uninitialized-symbol-idx-.
|   |-- 
drivers-vhost-vhost.c-vhost_vring_ioctl()-error:uninitialized-symbol-vq-.
|   |-- 
drivers-vhost-vhost.c-vhost_worker_ioctl()-error:uninitialized-symbol-idx-.
|   `-- 
drivers-vhost-vhost.c-vhost_worker_ioctl()-error:uninitialized-symbol-vq-.
|-- sh-allmodconfig
|   |-- 
drivers-char-mem.c:error:implicit-declaration-of-function-unxlate_dev_mem_ptr
|   `-- 
standard-input:Error:local-label-(instance-number-of-a-fb-label)-is-not-defined
|-- sh-randconfig-r015-20230704
|   |-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
|   `-- 
drivers-char-mem.c:error:implicit-declaration-of-function-unxlate_dev_mem_ptr
|-- sh-sh7710voipgw_defconfig
|   `-- 
drivers-char-mem.c:error:implicit-declaration-of-function-unxlate_dev_mem_ptr
|-- sparc-randconfig-r005-20230704
|   `-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
`-- x86_64-buildonly-randconfig-r003-20230703
`-- drivers-bluetooth-btmtk.c:error:struct-hci_dev-has-no-member-named-dump
clang_recent_errors
|-- arm64-randconfig-r033-20230704
|   `-- 
drivers-mfd-max77541.c:warning:cast-to-smaller-integer-type-enum-max7754x_ids-from-const-void
|-- hexagon-randconfig-r041-20230703
|   |-- drivers-bluetooth-btmtk.c:error:no-member-named-dump-in-struct-hci_dev
|   |-- 
lib-kunit-executor_test.c:warning:cast-from-void-(-)(const-void-)-to-kunit_action_t-(aka-void-(-)(void-)-)-converts-to-incompatible-function-type
|   `-- 
lib-kunit-test.c:warning:cast-from-void-(-)(const-void-)-to-kunit_action_t-(aka-void-(-)(void-)-)-converts-to-incompatible-function-type
|-- hexagon-randconfig-r045-20230703
|   |-- 
lib-kunit-executor_test.c:warning:cast-from-void-(-)(const-void-)-to-kunit_action_t-(aka-void-(-)(void-)-)-converts-to-incompatible-function-type
|   `-- 
lib-kunit-test.c:warning:cast-from-void-(-)(const-void-)-to-kunit_action_t-(aka-void-(-)(void-)-)-converts-to-incompatible-function-type
|-- i386-randconfig-i011-20230703
|   `-- drivers-bluetooth-btmtk.c:error:no-member-named-dump-in-struct-hci_dev
`-- s390-randconfig-r006-20230704
|-- 
lib-kunit-executor_test.c:warning:cast-from-void-(-)(const-void-)-to-kunit_action_t-(aka-void-(-)(void-)-)-converts-to-incompatible-function-type
`-- 
lib-kunit-test.c:warning:cast-from-void-(-)(const-void-)-to-kunit_action_t-(aka-void-(-)(void-)-)-converts-to-incompatible-function-type


Re: [PATCH v1 3/5] mm/memory_hotplug: make offline_and_remove_memory() timeout instead of failing on fatal signals

2023-06-27 Thread kernel test robot
Hi David,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 6995e2de6891c724bfeb2db33d7b87775f913ad1]

url:
https://github.com/intel-lab-lkp/linux/commits/David-Hildenbrand/mm-memory_hotplug-check-for-fatal-signals-only-in-offline_pages/20230627-192444
base:   6995e2de6891c724bfeb2db33d7b87775f913ad1
patch link:
https://lore.kernel.org/r/20230627112220.229240-4-david%40redhat.com
patch subject: [PATCH v1 3/5] mm/memory_hotplug: make 
offline_and_remove_memory() timeout instead of failing on fatal signals
config: x86_64-randconfig-x006-20230627 
(https://download.01.org/0day-ci/archive/20230628/202306280935.dktwlhfd-...@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 
8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: 
(https://download.01.org/0day-ci/archive/20230628/202306280935.dktwlhfd-...@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202306280935.dktwlhfd-...@intel.com/

All warnings (new ones prefixed by >>):

>> mm/memory_hotplug.c:163:13: warning: unused variable 
>> 'mhp_offlining_timer_active' [-Wunused-variable]
   static bool mhp_offlining_timer_active;
   ^
   mm/memory_hotplug.c:166:13: warning: unused function 'mhp_offline_timer_fn' 
[-Wunused-function]
   static void mhp_offline_timer_fn(struct timer_list *unused)
   ^
   2 warnings generated.


vim +/mhp_offlining_timer_active +163 mm/memory_hotplug.c

   154  
   155  /*
   156   * Protected by the device hotplug lock: offline_and_remove_memory()
   157   * will activate a timer such that offlining cannot be stuck forever.
   158   *
   159   * With an active timer, fatal signals will be ignored, because they 
can be
   160   * counter-productive when dying user space triggers device 
unplug/driver
   161   * unloading that ends up offlining+removing device memory.
   162   */
 > 163  static bool mhp_offlining_timer_active;
   164  static atomic_t mhp_offlining_timer_expired;
   165  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] Revert "virtio-blk: support completion batching for the IRQ path"

2023-06-08 Thread kernel test robot
Hi Michael,

kernel test robot noticed the following build errors:

[auto build test ERROR on axboe-block/for-next]
[also build test ERROR on linus/master v6.4-rc5 next-20230608]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Michael-S-Tsirkin/Revert-virtio-blk-support-completion-batching-for-the-IRQ-path/20230609-054840
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
patch link:
https://lore.kernel.org/r/9443f7273fbba6e62f89e54cbb2a70d2c93ed8e9.1686260774.git.mst%40redhat.com
patch subject: [PATCH] Revert "virtio-blk: support completion batching for the 
IRQ path"
config: alpha-allyesconfig 
(https://download.01.org/0day-ci/archive/20230609/202306090826.c1fzmdme-...@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add axboe-block 
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch axboe-block for-next
git checkout axboe-block/for-next
b4 shazam 
https://lore.kernel.org/r/9443f7273fbba6e62f89e54cbb2a70d2c93ed8e9.1686260774.git@redhat.com
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross 
W=1 O=build_dir ARCH=alpha olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross 
W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202306090826.c1fzmdme-...@intel.com/

All errors (new ones prefixed by >>):

   drivers/block/virtio_blk.c: In function 'virtblk_poll':
>> drivers/block/virtio_blk.c:1283:55: error: 'struct virtblk_req' has no 
>> member named 'status'
1283 | !blk_mq_add_to_batch(req, iob, vbr->status,
 |   ^~


vim +1283 drivers/block/virtio_blk.c

  1266  
  1267  static int virtblk_poll(struct blk_mq_hw_ctx *hctx, struct 
io_comp_batch *iob)
  1268  {
  1269  struct virtio_blk *vblk = hctx->queue->queuedata;
  1270  struct virtio_blk_vq *vq = get_virtio_blk_vq(hctx);
  1271  struct virtblk_req *vbr;
  1272  unsigned long flags;
  1273  unsigned int len;
  1274  int found = 0;
  1275  
  1276  spin_lock_irqsave(>lock, flags);
  1277  
  1278  while ((vbr = virtqueue_get_buf(vq->vq, )) != NULL) {
  1279  struct request *req = blk_mq_rq_from_pdu(vbr);
  1280  
  1281  found++;
  1282  if (!blk_mq_complete_request_remote(req) &&
> 1283  !blk_mq_add_to_batch(req, iob, vbr->status,
  1284  virtblk_complete_batch))
  1285  virtblk_request_done(req);
  1286  }
  1287  
  1288  if (found)
  1289  blk_mq_start_stopped_hw_queues(vblk->disk->queue, true);
  1290  
  1291  spin_unlock_irqrestore(>lock, flags);
  1292  
  1293  return found;
  1294  }
  1295  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] Revert "virtio-blk: support completion batching for the IRQ path"

2023-06-08 Thread kernel test robot
Hi Michael,

kernel test robot noticed the following build errors:

[auto build test ERROR on axboe-block/for-next]
[also build test ERROR on linus/master v6.4-rc5 next-20230608]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Michael-S-Tsirkin/Revert-virtio-blk-support-completion-batching-for-the-IRQ-path/20230609-054840
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git 
for-next
patch link:
https://lore.kernel.org/r/9443f7273fbba6e62f89e54cbb2a70d2c93ed8e9.1686260774.git.mst%40redhat.com
patch subject: [PATCH] Revert "virtio-blk: support completion batching for the 
IRQ path"
config: s390-randconfig-r014-20230608 
(https://download.01.org/0day-ci/archive/20230609/202306090808.d1u5zgz9-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 
4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build):
mkdir -p ~/bin
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
git remote add axboe-block 
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch axboe-block for-next
git checkout axboe-block/for-next
b4 shazam 
https://lore.kernel.org/r/9443f7273fbba6e62f89e54cbb2a70d2c93ed8e9.1686260774.git@redhat.com
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 
O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 
O=build_dir ARCH=s390 SHELL=/bin/bash drivers/block/

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202306090808.d1u5zgz9-...@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/block/virtio_blk.c:10:
   In file included from include/linux/virtio.h:7:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:75:
   include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a 
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
 547 | val = __raw_readb(PCI_IOBASE + addr);
 |   ~~ ^
   include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a 
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + 
addr));
 | ~~ ^
   include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro 
'__le16_to_cpu'
  37 | #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
 |   ^
   include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
 102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
 |  ^
   In file included from drivers/block/virtio_blk.c:10:
   In file included from include/linux/virtio.h:7:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:75:
   include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a 
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + 
addr));
 | ~~ ^
   include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro 
'__le32_to_cpu'
  35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
 |   ^
   include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
 115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
 |  ^
   In file included from drivers/block/virtio_blk.c:10:
   In file included from include/linux/virtio.h:7:
   In file included from include/linux/scatterlist.h:9:
   In file included from arch/s390/include/asm/io.h:75:
   include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a 
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
 584 | __raw_writeb(

Re: [PATCH v4 1/1] vringh: IOMEM support

2023-06-02 Thread kernel test robot
Hi Shunsuke,

kernel test robot noticed the following build warnings:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master horms-ipvs/master v6.4-rc4 
next-20230602]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230602055211.309960-2-mie%40igel.co.jp
patch subject: [PATCH v4 1/1] vringh: IOMEM support
config: nios2-randconfig-s053-20230531 
(https://download.01.org/0day-ci/archive/20230603/202306031019.wwkekrgz-...@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.3.0
reproduce:
mkdir -p ~/bin
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/de2a1f5220c32e953400f225aba6bd294a8d41b8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
git checkout de2a1f5220c32e953400f225aba6bd294a8d41b8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross 
C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 
olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross 
C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 
SHELL=/bin/bash drivers/vhost/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202306031019.wwkekrgz-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/vhost/vringh.c:1630:21: sparse: sparse: incorrect type in argument 1 
>> (different address spaces) @@ expected void volatile [noderef] __iomem 
>> *addr @@ got struct vring_used_elem *dst @@
   drivers/vhost/vringh.c:1630:21: sparse: expected void volatile [noderef] 
__iomem *addr
   drivers/vhost/vringh.c:1630:21: sparse: got struct vring_used_elem *dst
   drivers/vhost/vringh.c:592:18: sparse: sparse: restricted __virtio16 
degrades to integer
   drivers/vhost/vringh.c:592:18: sparse: sparse: restricted __virtio16 
degrades to integer
   drivers/vhost/vringh.c:592:18: sparse: sparse: cast to restricted __virtio16
   drivers/vhost/vringh.c:1280:23: sparse: sparse: restricted __virtio16 
degrades to integer
   drivers/vhost/vringh.c:1280:23: sparse: sparse: restricted __virtio16 
degrades to integer
   drivers/vhost/vringh.c:1280:23: sparse: sparse: cast to restricted __virtio16
>> drivers/vhost/vringh.c:1610:46: sparse: sparse: incorrect type in argument 1 
>> (different address spaces) @@ expected void const volatile [noderef] 
>> __iomem *addr @@ got restricted __virtio16 const [usertype] *p @@
   drivers/vhost/vringh.c:1610:46: sparse: expected void const volatile 
[noderef] __iomem *addr
   drivers/vhost/vringh.c:1610:46: sparse: got restricted __virtio16 const 
[usertype] *p
>> drivers/vhost/vringh.c:1610:45: sparse: sparse: incorrect type in argument 2 
>> (different base types) @@ expected restricted __virtio16 [usertype] val 
>> @@ got unsigned short @@
   drivers/vhost/vringh.c:1610:45: sparse: expected restricted __virtio16 
[usertype] val
   drivers/vhost/vringh.c:1610:45: sparse: got unsigned short
>> drivers/vhost/vringh.c:1623:28: sparse: sparse: incorrect type in argument 2 
>> (different address spaces) @@ expected void const volatile [noderef] 
>> __iomem *addr @@ got void const *src @@
   drivers/vhost/vringh.c:1623:28: sparse: expected void const volatile 
[noderef] __iomem *addr
   drivers/vhost/vringh.c:1623:28: sparse: got void const *src
>> drivers/vhost/vringh.c:1637:28: sparse: sparse: incorrect type in argument 2 
>> (different address spaces) @@ expected void const volatile [noderef] 
>> __iomem *addr @@ got void *src @@
   drivers/vhost/vringh.c:1637:28: sparse: expected void const volatile 
[noderef] __iomem *addr
   drivers/vhost/vringh.c:1637:28: sparse: got void *src
>> drivers/vhost/vringh.c:1644:21: sparse: sparse: incorrect type in argument 1 
>> (different address spaces) @@ expected void volatile [noderef] __iomem 
>> *addr @@ got void *dst @@
   drivers/vhost/vringh.c:1644:21: sparse: expected void volatile [noderef] 
__

Re: [PATCH v4 1/1] vringh: IOMEM support

2023-06-02 Thread kernel test robot
Hi Shunsuke,

kernel test robot noticed the following build errors:

[auto build test ERROR on mst-vhost/linux-next]
[also build test ERROR on linus/master horms-ipvs/master v6.4-rc4 next-20230602]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230602055211.309960-2-mie%40igel.co.jp
patch subject: [PATCH v4 1/1] vringh: IOMEM support
config: i386-randconfig-i003-20230531 
(https://download.01.org/0day-ci/archive/20230603/202306030216.bpwr6xv0-...@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/de2a1f5220c32e953400f225aba6bd294a8d41b8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
git checkout de2a1f5220c32e953400f225aba6bd294a8d41b8
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202306030216.bpwr6xv0-...@intel.com/

All errors (new ones prefixed by >>):

   drivers/vhost/vringh.c: In function 'getu16_iomem':
>> drivers/vhost/vringh.c:1610:37: error: implicit declaration of function 
>> 'ioread16' [-Werror=implicit-function-declaration]
1610 | *val = vringh16_to_cpu(vrh, ioread16(p));
 | ^~~~
   drivers/vhost/vringh.c: In function 'putu16_iomem':
>> drivers/vhost/vringh.c:1616:9: error: implicit declaration of function 
>> 'iowrite16' [-Werror=implicit-function-declaration]
1616 | iowrite16(cpu_to_vringh16(vrh, val), p);
 | ^
   drivers/vhost/vringh.c: In function 'copydesc_iomem':
>> drivers/vhost/vringh.c:1623:9: error: implicit declaration of function 
>> 'memcpy_fromio'; did you mean 'memcpy_from_bvec'? 
>> [-Werror=implicit-function-declaration]
1623 | memcpy_fromio(dst, src, len);
 | ^
 | memcpy_from_bvec
   drivers/vhost/vringh.c: In function 'putused_iomem':
>> drivers/vhost/vringh.c:1630:9: error: implicit declaration of function 
>> 'memcpy_toio' [-Werror=implicit-function-declaration]
1630 | memcpy_toio(dst, src, num * sizeof(*dst));
 | ^~~
   drivers/vhost/vringh.c: At top level:
   drivers/vhost/vringh.c:1661:5: warning: no previous prototype for 
'vringh_init_iomem' [-Wmissing-prototypes]
1661 | int vringh_init_iomem(struct vringh *vrh, u64 features, unsigned int 
num,
 | ^
   drivers/vhost/vringh.c:1683:5: warning: no previous prototype for 
'vringh_getdesc_iomem' [-Wmissing-prototypes]
1683 | int vringh_getdesc_iomem(struct vringh *vrh, struct vringh_kiov 
*riov,
 | ^~~~
   drivers/vhost/vringh.c:1714:9: warning: no previous prototype for 
'vringh_iov_pull_iomem' [-Wmissing-prototypes]
1714 | ssize_t vringh_iov_pull_iomem(struct vringh *vrh, struct vringh_kiov 
*riov,
 | ^
   drivers/vhost/vringh.c:1729:9: warning: no previous prototype for 
'vringh_iov_push_iomem' [-Wmissing-prototypes]
1729 | ssize_t vringh_iov_push_iomem(struct vringh *vrh, struct vringh_kiov 
*wiov,
 | ^
   drivers/vhost/vringh.c:1744:6: warning: no previous prototype for 
'vringh_abandon_iomem' [-Wmissing-prototypes]
1744 | void vringh_abandon_iomem(struct vringh *vrh, unsigned int num)
 |  ^~~~
   drivers/vhost/vringh.c:1759:5: warning: no previous prototype for 
'vringh_complete_iomem' [-Wmissing-prototypes]
1759 | int vringh_complete_iomem(struct vringh *vrh, u16 head, u32 len)
 | ^
   drivers/vhost/vringh.c:1777:6: warning: no previous prototype for 
'vringh_notify_enable_iomem' [-Wmissing-prototypes]
1777 | bool vringh_notify_enable_iomem(struct vringh *vrh)
 |  ^~
   drivers/vhost/vringh.c:1790:6: warning: no previous prototype for 
'vringh_notify_disable_iomem' [-Wmissing-prototypes]
1790 | void vringh_notify_disable_iomem(struct vringh *vrh)
 |  ^~~
   drivers/vhost/vringh.c:1802:5: warning: no previous prototype for 
'vringh_need_notify_iomem' [-Wmissing-pr

Re: [PATCH v4 1/1] vringh: IOMEM support

2023-06-02 Thread kernel test robot
Hi Shunsuke,

kernel test robot noticed the following build warnings:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master horms-ipvs/master v6.4-rc4 
next-20230602]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230602055211.309960-2-mie%40igel.co.jp
patch subject: [PATCH v4 1/1] vringh: IOMEM support
config: hexagon-randconfig-r034-20230531 
(https://download.01.org/0day-ci/archive/20230603/202306030119.ng7cqmj8-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 
4faf3aaf28226a4e950c103a14f6fc1d1fdabb1b)
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# 
https://github.com/intel-lab-lkp/linux/commit/de2a1f5220c32e953400f225aba6bd294a8d41b8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
git checkout de2a1f5220c32e953400f225aba6bd294a8d41b8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 
O=build_dir ARCH=hexagon olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 
O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/vhost/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202306030119.ng7cqmj8-...@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/vhost/vringh.c:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a 
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   val = __raw_readb(PCI_IOBASE + addr);
 ~~ ^
   include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a 
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
   ~~ ^
   include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from 
macro '__le16_to_cpu'
   #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
 ^
   In file included from drivers/vhost/vringh.c:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:573: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/little_endian.h:35:51: note: expanded from 
macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
 ^
   In file included from drivers/vhost/vringh.c:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:12:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a 
null pointer has undefined behavior [-Wnull-pointer-arithmetic]
   __ra

Re: [PATCH v4 1/1] vringh: IOMEM support

2023-06-02 Thread kernel test robot
Hi Shunsuke,

kernel test robot noticed the following build warnings:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master horms-ipvs/master v6.4-rc4 
next-20230602]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230602055211.309960-2-mie%40igel.co.jp
patch subject: [PATCH v4 1/1] vringh: IOMEM support
config: alpha-allyesconfig 
(https://download.01.org/0day-ci/archive/20230602/202306021725.3otsfxpf-...@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# 
https://github.com/intel-lab-lkp/linux/commit/de2a1f5220c32e953400f225aba6bd294a8d41b8
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Shunsuke-Mie/vringh-IOMEM-support/20230602-135351
git checkout de2a1f5220c32e953400f225aba6bd294a8d41b8
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross 
W=1 O=build_dir ARCH=alpha olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross 
W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202306021725.3otsfxpf-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/vhost/vringh.c:1661:5: warning: no previous prototype for 
>> 'vringh_init_iomem' [-Wmissing-prototypes]
1661 | int vringh_init_iomem(struct vringh *vrh, u64 features, unsigned int 
num,
 | ^
>> drivers/vhost/vringh.c:1683:5: warning: no previous prototype for 
>> 'vringh_getdesc_iomem' [-Wmissing-prototypes]
1683 | int vringh_getdesc_iomem(struct vringh *vrh, struct vringh_kiov 
*riov,
 | ^~~~
>> drivers/vhost/vringh.c:1714:9: warning: no previous prototype for 
>> 'vringh_iov_pull_iomem' [-Wmissing-prototypes]
1714 | ssize_t vringh_iov_pull_iomem(struct vringh *vrh, struct vringh_kiov 
*riov,
 | ^
>> drivers/vhost/vringh.c:1729:9: warning: no previous prototype for 
>> 'vringh_iov_push_iomem' [-Wmissing-prototypes]
1729 | ssize_t vringh_iov_push_iomem(struct vringh *vrh, struct vringh_kiov 
*wiov,
 | ^
>> drivers/vhost/vringh.c:1744:6: warning: no previous prototype for 
>> 'vringh_abandon_iomem' [-Wmissing-prototypes]
1744 | void vringh_abandon_iomem(struct vringh *vrh, unsigned int num)
 |  ^~~~
>> drivers/vhost/vringh.c:1759:5: warning: no previous prototype for 
>> 'vringh_complete_iomem' [-Wmissing-prototypes]
1759 | int vringh_complete_iomem(struct vringh *vrh, u16 head, u32 len)
 | ^
>> drivers/vhost/vringh.c:1777:6: warning: no previous prototype for 
>> 'vringh_notify_enable_iomem' [-Wmissing-prototypes]
1777 | bool vringh_notify_enable_iomem(struct vringh *vrh)
 |  ^~
>> drivers/vhost/vringh.c:1790:6: warning: no previous prototype for 
>> 'vringh_notify_disable_iomem' [-Wmissing-prototypes]
1790 | void vringh_notify_disable_iomem(struct vringh *vrh)
 |  ^~~
>> drivers/vhost/vringh.c:1802:5: warning: no previous prototype for 
>> 'vringh_need_notify_iomem' [-Wmissing-prototypes]
1802 | int vringh_need_notify_iomem(struct vringh *vrh)
 | ^~~~


vim +/vringh_init_iomem +1661 drivers/vhost/vringh.c

  1647  
  1648  /**
  1649   * vringh_init_iomem - initialize a vringh for a vring on io-memory.
  1650   * @vrh: the vringh to initialize.
  1651   * @features: the feature bits for this ring.
  1652   * @num: the number of elements.
  1653   * @weak_barriers: true if we only need memory barriers, not I/O.
  1654   * @desc: the userspace descriptor pointer.
  1655   * @avail: the userspace avail pointer.
  1656   * @used: the userspace used pointer.
  1657   *
  1658   * Returns an error if num is invalid: you should check pointers
  1659   * yourself!
  1660   */
> 1661  int vringh_init_iomem(struct vringh *vrh, u64 features, unsigned int 
> num,
  1662bool weak_barrie

Re: [PATCH net-next 3/5] virtio_net: Add page pool fragmentation support

2023-05-26 Thread kernel test robot
Hi Liang,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Liang-Chen/virtio_net-Add-page_pool-support-to-improve-performance/20230526-135805
base:   net-next/main
patch link:
https://lore.kernel.org/r/20230526054621.18371-3-liangchen.linux%40gmail.com
patch subject: [PATCH net-next 3/5] virtio_net: Add page pool fragmentation 
support
config: x86_64-defconfig 
(https://download.01.org/0day-ci/archive/20230527/202305270116.tj31ijnl-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/dda0469e059354b61192e1d25b77c57351346282
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Liang-Chen/virtio_net-Add-page_pool-support-to-improve-performance/20230526-135805
git checkout dda0469e059354b61192e1d25b77c57351346282
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202305270116.tj31ijnl-...@intel.com/

All errors (new ones prefixed by >>):

   ld: vmlinux.o: in function `virtnet_find_vqs':
   virtio_net.c:(.text+0x901fd2): undefined reference to `page_pool_create'
   ld: vmlinux.o: in function `add_recvbuf_mergeable.isra.0':
   virtio_net.c:(.text+0x905662): undefined reference to `page_pool_alloc_pages'
>> ld: virtio_net.c:(.text+0x905715): undefined reference to 
>> `page_pool_alloc_frag'
   ld: vmlinux.o: in function `xdp_linearize_page':
   virtio_net.c:(.text+0x906c50): undefined reference to `page_pool_alloc_pages'
   ld: virtio_net.c:(.text+0x906e33): undefined reference to 
`page_pool_alloc_frag'
   ld: vmlinux.o: in function `mergeable_xdp_get_buf.isra.0':
>> virtio_net.c:(.text+0x90740e): undefined reference to `page_pool_alloc_frag'
>> ld: virtio_net.c:(.text+0x90750b): undefined reference to 
>> `page_pool_alloc_pages'

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH net-next 5/5] virtio_net: Implement DMA pre-handler

2023-05-26 Thread kernel test robot
Hi Liang,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Liang-Chen/virtio_net-Add-page_pool-support-to-improve-performance/20230526-135805
base:   net-next/main
patch link:
https://lore.kernel.org/r/20230526054621.18371-5-liangchen.linux%40gmail.com
patch subject: [PATCH net-next 5/5] virtio_net: Implement DMA pre-handler
config: m68k-allmodconfig 
(https://download.01.org/0day-ci/archive/20230527/202305270110.tbnsdh0z-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# 
https://github.com/intel-lab-lkp/linux/commit/e968bb5cacd30b672d0ccf705a24f1a792ff45aa
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Liang-Chen/virtio_net-Add-page_pool-support-to-improve-performance/20230526-135805
git checkout e968bb5cacd30b672d0ccf705a24f1a792ff45aa
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross 
W=1 O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross 
W=1 O=build_dir ARCH=m68k SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202305270110.tbnsdh0z-...@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "iommu_get_dma_domain" [drivers/net/virtio_net.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH net-next 2/5] virtio_net: Add page_pool support to improve performance

2023-05-26 Thread kernel test robot
Hi Liang,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Liang-Chen/virtio_net-Add-page_pool-support-to-improve-performance/20230526-135805
base:   net-next/main
patch link:
https://lore.kernel.org/r/20230526054621.18371-2-liangchen.linux%40gmail.com
patch subject: [PATCH net-next 2/5] virtio_net: Add page_pool support to 
improve performance
config: x86_64-defconfig 
(https://download.01.org/0day-ci/archive/20230526/202305262334.gifq3wpg-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/bfba563f43bba37181d8502cb2e566c32f96ec9e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Liang-Chen/virtio_net-Add-page_pool-support-to-improve-performance/20230526-135805
git checkout bfba563f43bba37181d8502cb2e566c32f96ec9e
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202305262334.gifq3wpg-...@intel.com/

All errors (new ones prefixed by >>):

   ld: vmlinux.o: in function `virtnet_find_vqs':
>> virtio_net.c:(.text+0x901fb5): undefined reference to `page_pool_create'
   ld: vmlinux.o: in function `add_recvbuf_mergeable.isra.0':
>> virtio_net.c:(.text+0x905618): undefined reference to `page_pool_alloc_pages'
   ld: vmlinux.o: in function `xdp_linearize_page':
   virtio_net.c:(.text+0x906b6b): undefined reference to `page_pool_alloc_pages'
   ld: vmlinux.o: in function `mergeable_xdp_get_buf.isra.0':
   virtio_net.c:(.text+0x90728f): undefined reference to `page_pool_alloc_pages'

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v2 1/2] virtio: abstract virtqueue related methods

2023-05-17 Thread kernel test robot
Hi zhenwei,

kernel test robot noticed the following build warnings:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.4-rc2 next-20230517]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/zhenwei-pi/virtio-abstract-virtqueue-related-methods/20230517-110311
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230517025424.601141-2-pizhenwei%40bytedance.com
patch subject: [PATCH v2 1/2] virtio: abstract virtqueue related methods
config: alpha-randconfig-r003-20230517
compiler: alpha-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/146086b281eebe5c5368c387f96a0395c6252d41
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
zhenwei-pi/virtio-abstract-virtqueue-related-methods/20230517-110311
git checkout 146086b281eebe5c5368c387f96a0395c6252d41
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=alpha olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=alpha SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202305171458.bzuep6rl-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/virtio/virtio_ring.c:2310: warning: expecting prototype for 
>> virtqueue_detach_unused_buf(). Prototype was for 
>> vring_virtqueue_detach_unused_buf() instead
>> drivers/virtio/virtio_ring.c:2499: warning: expecting prototype for 
>> virtqueue_resize(). Prototype was for vring_virtqueue_resize() instead
>> drivers/virtio/virtio_ring.c:2673: warning: expecting prototype for 
>> virtqueue_get_vring_size(). Prototype was for 
>> vring_virtqueue_get_vring_size() instead


vim +2310 drivers/virtio/virtio_ring.c

e6f633e5beab65 Tiwei Bie  2018-11-21  2300  
138fd25148638a Tiwei Bie  2018-11-21  2301  /**
138fd25148638a Tiwei Bie  2018-11-21  2302   * 
virtqueue_detach_unused_buf - detach first unused buffer
a5581206c565a7 Jiang Biao 2019-04-23  2303   * @_vq: the struct 
virtqueue we're talking about.
138fd25148638a Tiwei Bie  2018-11-21  2304   *
138fd25148638a Tiwei Bie  2018-11-21  2305   * Returns NULL or the 
"data" token handed to virtqueue_add_*().
a62eecb3a9c086 Xuan Zhuo  2022-08-01  2306   * This is not valid on an 
active queue; it is useful for device
a62eecb3a9c086 Xuan Zhuo  2022-08-01  2307   * shutdown or the reset 
queue.
138fd25148638a Tiwei Bie  2018-11-21  2308   */
146086b281eebe zhenwei pi 2023-05-17  2309  static void 
*vring_virtqueue_detach_unused_buf(struct virtqueue *_vq)
138fd25148638a Tiwei Bie  2018-11-21 @2310  {
1ce9e6055fa0a9 Tiwei Bie  2018-11-21  2311  struct vring_virtqueue 
*vq = to_vvq(_vq);
1ce9e6055fa0a9 Tiwei Bie  2018-11-21  2312  
1ce9e6055fa0a9 Tiwei Bie  2018-11-21  2313  return vq->packed_ring 
? virtqueue_detach_unused_buf_packed(_vq) :
1ce9e6055fa0a9 Tiwei Bie  2018-11-21  2314  
 virtqueue_detach_unused_buf_split(_vq);
138fd25148638a Tiwei Bie  2018-11-21  2315  }
c021eac4148c16 Shirley Ma 2010-01-18  2316  
138fd25148638a Tiwei Bie  2018-11-21  2317  static inline bool 
more_used(const struct vring_virtqueue *vq)
138fd25148638a Tiwei Bie  2018-11-21  2318  {
1ce9e6055fa0a9 Tiwei Bie  2018-11-21  2319  return vq->packed_ring 
? more_used_packed(vq) : more_used_split(vq);
138fd25148638a Tiwei Bie  2018-11-21  2320  }
138fd25148638a Tiwei Bie  2018-11-21  2321  
5c669c4a4c6aa0 Ricardo Cañuelo2022-08-10  2322  /**
5c669c4a4c6aa0 Ricardo Cañuelo2022-08-10  2323   * vring_interrupt - notify 
a virtqueue on an interrupt
5c669c4a4c6aa0 Ricardo Cañuelo2022-08-10  2324   * @irq: the IRQ number 
(ignored)
5c669c4a4c6aa0 Ricardo Cañuelo2022-08-10  2325   * @_vq: the struct 
virtqueue to notify
5c669c4a4c6aa0 Ricardo Cañuelo2022-08-10  2326   *
5c669c4a4c6aa0 Ricardo Cañuelo2022-08-10  2327   * Calls the callback 
function of @_vq to process the virtqueue
5c669c4a4c6aa0 Ricardo Cañuelo2022-08-10  2328   * notification.
5c669c4a4c6aa0 Ricardo Cañuelo2022-08

Re: [PATCH 1/2] virtio: abstract virtqueue related methods

2023-05-13 Thread kernel test robot
Hi zhenwei,

kernel test robot noticed the following build warnings:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.4-rc1 next-20230512]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/zhenwei-pi/virtio-abstract-virtqueue-related-methods/20230512-174928
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230512094618.433707-2-pizhenwei%40bytedance.com
patch subject: [PATCH 1/2] virtio: abstract virtqueue related methods
reproduce:
# 
https://github.com/intel-lab-lkp/linux/commit/372bc1a0371968752fe0f5ec6e81edee6f9c44dd
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
zhenwei-pi/virtio-abstract-virtqueue-related-methods/20230512-174928
git checkout 372bc1a0371968752fe0f5ec6e81edee6f9c44dd
make menuconfig
# enable CONFIG_COMPILE_TEST, CONFIG_WARN_MISSING_DOCUMENTS, 
CONFIG_WARN_ABI_ERRORS
make htmldocs

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202305140142.c0qqq9wz-...@intel.com/

All warnings (new ones prefixed by >>):

>> ./drivers/virtio/virtio_ring.c:1: warning: 'virtqueue_add_inbuf' not found
>> ./drivers/virtio/virtio_ring.c:1: warning: 'virtqueue_add_outbuf' not found
>> ./drivers/virtio/virtio_ring.c:1: warning: 'virtqueue_add_sgs' not found
>> ./drivers/virtio/virtio_ring.c:1: warning: 'virtqueue_get_buf_ctx' not found
>> ./drivers/virtio/virtio_ring.c:1: warning: 'virtqueue_disable_cb' not found
>> ./drivers/virtio/virtio_ring.c:1: warning: 'virtqueue_enable_cb' not found

vim +/virtqueue_add_inbuf +1 ./drivers/virtio/virtio_ring.c

fd534e9b5fdcf9 Thomas Gleixner 2019-05-23  @1  // SPDX-License-Identifier: 
GPL-2.0-or-later
0a8a69dd77ddbd Rusty Russell   2007-10-22   2  /* Virtio ring 
implementation.
0a8a69dd77ddbd Rusty Russell   2007-10-22   3   *
0a8a69dd77ddbd Rusty Russell   2007-10-22   4   *  Copyright 2007 Rusty 
Russell IBM Corporation
0a8a69dd77ddbd Rusty Russell   2007-10-22   5   */
0a8a69dd77ddbd Rusty Russell   2007-10-22   6  #include 
0a8a69dd77ddbd Rusty Russell   2007-10-22   7  #include 

e34f87256794b8 Rusty Russell   2008-07-25   8  #include 

0a8a69dd77ddbd Rusty Russell   2007-10-22   9  #include 
5a0e3ad6af8660 Tejun Heo   2010-03-24  10  #include 
b5a2c4f1996d1d Paul Gortmaker  2011-07-03  11  #include 
e93300b1afc7cd Rusty Russell   2012-01-12  12  #include 
780bc7903a32ed Andy Lutomirski 2016-02-02  13  #include 

88938359e2dfe1 Alexander Potapenko 2022-09-15  14  #include 
f8ce72632fa7ed Michael S. Tsirkin  2021-08-10  15  #include 
78fe39872378b0 Andy Lutomirski 2016-02-02  16  #include 
0a8a69dd77ddbd Rusty Russell   2007-10-22  17  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 1/2] virtio: abstract virtqueue related methods

2023-05-12 Thread kernel test robot
Hi zhenwei,

kernel test robot noticed the following build errors:

[auto build test ERROR on mst-vhost/linux-next]
[also build test ERROR on linus/master v6.4-rc1 next-20230512]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/zhenwei-pi/virtio-abstract-virtqueue-related-methods/20230512-174928
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230512094618.433707-2-pizhenwei%40bytedance.com
patch subject: [PATCH 1/2] virtio: abstract virtqueue related methods
config: loongarch-allyesconfig 
(https://download.01.org/0day-ci/archive/20230513/202305130012.lq2kto5c-...@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/372bc1a0371968752fe0f5ec6e81edee6f9c44dd
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
zhenwei-pi/virtio-abstract-virtqueue-related-methods/20230512-174928
git checkout 372bc1a0371968752fe0f5ec6e81edee6f9c44dd
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=loongarch olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=loongarch SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202305130012.lq2kto5c-...@intel.com/

All errors (new ones prefixed by >>):

   drivers/virtio/virtio.c: In function 'virtio_break_device':
>> drivers/virtio/virtio.c:893:24: error: 'struct virtqueue_ops' has no member 
>> named '__builtin_loongarch_break'
 893 | vq->ops->__break(vq);
 |^~


vim +893 drivers/virtio/virtio.c

   882  
   883  /*
   884   * This should prevent the device from being used, allowing drivers to
   885   * recover.  You may need to grab appropriate locks to flush.
   886   */
   887  void virtio_break_device(struct virtio_device *dev)
   888  {
   889  struct virtqueue *vq;
   890  
   891  spin_lock(>vqs_list_lock);
   892  list_for_each_entry(vq, >vqs, list) {
 > 893  vq->ops->__break(vq);
   894  }
   895  spin_unlock(>vqs_list_lock);
   896  }
   897  EXPORT_SYMBOL_GPL(virtio_break_device);
   898  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH net-next] xsk: introduce xsk_dma_ops

2023-04-17 Thread kernel test robot
Hi Xuan,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/xsk-introduce-xsk_dma_ops/20230417-112903
patch link:
https://lore.kernel.org/r/20230417032750.7086-1-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net-next] xsk: introduce xsk_dma_ops
config: mips-randconfig-r021-20230416 
(https://download.01.org/0day-ci/archive/20230417/202304171441.ezrwcnsh-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 
9638da200e00bd069e6dd63604e14cbafede9324)
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 mips cross compiling tool for clang build
# apt-get install binutils-mipsel-linux-gnu
# 
https://github.com/intel-lab-lkp/linux/commit/28e766603a33761d7bd1fdd3e107595408319f7d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xuan-Zhuo/xsk-introduce-xsk_dma_ops/20230417-112903
git checkout 28e766603a33761d7bd1fdd3e107595408319f7d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=mips SHELL=/bin/bash net/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202304171441.ezrwcnsh-...@intel.com/

All errors (new ones prefixed by >>):

>> net/xdp/xsk_buff_pool.c:430:26: error: incompatible function pointer types 
>> assigning to 'dma_addr_t (*)(struct device *, struct page *, unsigned long, 
>> size_t, enum dma_data_direction, unsigned long)' (aka 'unsigned int 
>> (*)(struct device *, struct page *, unsigned long, unsigned int, enum 
>> dma_data_direction, unsigned long)') from 'dma_addr_t (struct device *, 
>> struct page *, size_t, size_t, enum dma_data_direction, unsigned long)' (aka 
>> 'unsigned int (struct device *, struct page *, unsigned int, unsigned int, 
>> enum dma_data_direction, unsigned long)') 
>> [-Wincompatible-function-pointer-types]
   pool->dma_ops.map_page = dma_map_page_attrs;
  ^ ~~
   1 error generated.


vim +430 net/xdp/xsk_buff_pool.c

   409  
   410  int xp_dma_map(struct xsk_buff_pool *pool, struct device *dev,
   411 struct xsk_dma_ops *dma_ops,
   412 unsigned long attrs, struct page **pages, u32 nr_pages)
   413  {
   414  struct xsk_dma_map *dma_map;
   415  dma_addr_t dma;
   416  int err;
   417  u32 i;
   418  
   419  dma_map = xp_find_dma_map(pool);
   420  if (dma_map) {
   421  err = xp_init_dma_info(pool, dma_map);
   422  if (err)
   423  return err;
   424  
   425  refcount_inc(_map->users);
   426  return 0;
   427  }
   428  
   429  if (!dma_ops) {
 > 430  pool->dma_ops.map_page = dma_map_page_attrs;
   431  pool->dma_ops.mapping_error = dma_mapping_error;
   432  pool->dma_ops.need_sync = dma_need_sync;
   433  pool->dma_ops.sync_single_range_for_device = 
dma_sync_single_range_for_device;
   434  pool->dma_ops.sync_single_range_for_cpu = 
dma_sync_single_range_for_cpu;
   435  dma_ops = >dma_ops;
   436  } else {
   437  pool->dma_ops = *dma_ops;
   438  }
   439  
   440  dma_map = xp_create_dma_map(dev, pool->netdev, nr_pages, 
pool->umem);
   441  if (!dma_map)
   442  return -ENOMEM;
   443  
   444  for (i = 0; i < dma_map->dma_pages_cnt; i++) {
   445  dma = dma_ops->map_page(dev, pages[i], 0, PAGE_SIZE,
   446  DMA_BIDIRECTIONAL, attrs);
   447  if (dma_ops->mapping_error(dev, dma)) {
   448  __xp_dma_unmap(dma_map, dma_ops, attrs);
   449  return -ENOMEM;
   450  }
   451  if (dma_ops->need_sync(dev, dma))
   452  dma_map->dma_need_sync = true;
   453  dma_map->dma_pages[i] = dma;
   454  }
   455  
   456  if (pool->unaligned)
   457  xp_check_dma_contiguity(dma_map);
   458  
   459  err = xp_init_dma_info(pool, dma_map);
   460  if (err) {
   461  __xp_dma

Re: [PATCH net-next] xsk: introduce xsk_dma_ops

2023-04-17 Thread kernel test robot
Hi Xuan,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/xsk-introduce-xsk_dma_ops/20230417-112903
patch link:
https://lore.kernel.org/r/20230417032750.7086-1-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net-next] xsk: introduce xsk_dma_ops
config: i386-randconfig-a011-20230417 
(https://download.01.org/0day-ci/archive/20230417/202304171427.uaryn9jl-...@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project 
f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/28e766603a33761d7bd1fdd3e107595408319f7d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xuan-Zhuo/xsk-introduce-xsk_dma_ops/20230417-112903
git checkout 28e766603a33761d7bd1fdd3e107595408319f7d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash net/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202304171427.uaryn9jl-...@intel.com/

All errors (new ones prefixed by >>):

>> net/xdp/xsk_buff_pool.c:430:26: error: incompatible function pointer types 
>> assigning to 'dma_addr_t (*)(struct device *, struct page *, unsigned long, 
>> size_t, enum dma_data_direction, unsigned long)' (aka 'unsigned int 
>> (*)(struct device *, struct page *, unsigned long, unsigned int, enum 
>> dma_data_direction, unsigned long)') from 'dma_addr_t (struct device *, 
>> struct page *, size_t, size_t, enum dma_data_direction, unsigned long)' (aka 
>> 'unsigned int (struct device *, struct page *, unsigned int, unsigned int, 
>> enum dma_data_direction, unsigned long)') 
>> [-Werror,-Wincompatible-function-pointer-types]
   pool->dma_ops.map_page = dma_map_page_attrs;
  ^ ~~
   1 error generated.


vim +430 net/xdp/xsk_buff_pool.c

   409  
   410  int xp_dma_map(struct xsk_buff_pool *pool, struct device *dev,
   411 struct xsk_dma_ops *dma_ops,
   412 unsigned long attrs, struct page **pages, u32 nr_pages)
   413  {
   414  struct xsk_dma_map *dma_map;
   415  dma_addr_t dma;
   416  int err;
   417  u32 i;
   418  
   419  dma_map = xp_find_dma_map(pool);
   420  if (dma_map) {
   421  err = xp_init_dma_info(pool, dma_map);
   422  if (err)
   423  return err;
   424  
   425  refcount_inc(_map->users);
   426  return 0;
   427  }
   428  
   429  if (!dma_ops) {
 > 430  pool->dma_ops.map_page = dma_map_page_attrs;
   431  pool->dma_ops.mapping_error = dma_mapping_error;
   432  pool->dma_ops.need_sync = dma_need_sync;
   433  pool->dma_ops.sync_single_range_for_device = 
dma_sync_single_range_for_device;
   434  pool->dma_ops.sync_single_range_for_cpu = 
dma_sync_single_range_for_cpu;
   435  dma_ops = >dma_ops;
   436  } else {
   437  pool->dma_ops = *dma_ops;
   438  }
   439  
   440  dma_map = xp_create_dma_map(dev, pool->netdev, nr_pages, 
pool->umem);
   441  if (!dma_map)
   442  return -ENOMEM;
   443  
   444  for (i = 0; i < dma_map->dma_pages_cnt; i++) {
   445  dma = dma_ops->map_page(dev, pages[i], 0, PAGE_SIZE,
   446  DMA_BIDIRECTIONAL, attrs);
   447  if (dma_ops->mapping_error(dev, dma)) {
   448  __xp_dma_unmap(dma_map, dma_ops, attrs);
   449  return -ENOMEM;
   450  }
   451  if (dma_ops->need_sync(dev, dma))
   452  dma_map->dma_need_sync = true;
   453  dma_map->dma_pages[i] = dma;
   454  }
   455  
   456  if (pool->unaligned)
   457  xp_check_dma_contiguity(dma_map);
   458  
   459  err = xp_init_dma_info(pool, dma_map);
   460  if (err) {
   461  __xp_dma_unmap(dma_map, dma_ops, attrs);
   462  return err;
   463  }
   464  
   465

[linux-next:master] BUILD REGRESSION 198925fae644b0099b66fac1d972721e6e563b17

2023-03-29 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: 198925fae644b0099b66fac1d972721e6e563b17  Add linux-next specific 
files for 20230329

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202303082135.njdx1bij-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202303161521.jbgbafjj-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202303291916.ovlfjk2i-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

drivers/base/power/domain.c:3090:23: error: 'struct dev_pm_info' has no member 
named 'runtime_error'
drivers/base/power/domain.c:3092:28: error: 'struct dev_pm_info' has no member 
named 'disable_depth'
drivers/base/power/domain.c:3094:28: error: 'struct dev_pm_info' has no member 
named 'runtime_status'
drivers/base/power/domain.c:654:20: error: 'pm_wq' undeclared (first use in 
this function)
drivers/base/power/domain.c:853:39: error: 'struct dev_pm_info' has no member 
named 'ignore_children'
drivers/base/power/domain_governor.c:85:24: error: 'struct dev_pm_info' has no 
member named 'ignore_children'
drivers/clk/clk-sp7021.c:316:8: warning: result of comparison of constant 
18446744073709551615 with expression of type 'typeof (_Generic((_m), char: 
(unsigned char)0, unsigned char: (unsigned char)0, signed char: (unsigned 
char)0, unsigned short: (unsigned short)0, short: (unsigned short)0, unsigned 
int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, 
long: (unsigned long)0, unsigned long long: (unsigned long long)0, long long: 
(unsigned long long)0, default: (_m)))' (aka 'unsigned int') is always false 
[-Wtautological-constant-out-of-range-compare]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:351:13: 
warning: variable 'bw_needed' set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_validation.c:352:25: 
warning: variable 'link' set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_6_ppt.c:309:17: sparse:  
  int
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_6_ppt.c:309:17: sparse:  
  void
drivers/net/wireless/legacy/ray_cs.c:628:17: warning: 'strncpy' specified bound 
32 equals destination size [-Wstringop-truncation]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/pinctrl/pinctrl-mlxbf3.c:162:20: sparse: sparse: symbol 
'mlxbf3_pmx_funcs' was not declared. Should it be static?
drivers/soc/fsl/qe/tsa.c:140:26: sparse: sparse: incorrect type in argument 2 
(different address spaces)
drivers/soc/fsl/qe/tsa.c:140:9: sparse: sparse: incorrect type in argument 2 
(different address spaces)
drivers/soc/fsl/qe/tsa.c:150:16: sparse: sparse: incorrect type in argument 1 
(different address spaces)
drivers/soc/fsl/qe/tsa.c:150:27: sparse: sparse: incorrect type in argument 1 
(different address spaces)
drivers/soc/fsl/qe/tsa.c:189:26: sparse: sparse: dereference of noderef 
expression
drivers/soc/fsl/qe/tsa.c:663:22: sparse: sparse: incorrect type in assignment 
(different address spaces)
drivers/soc/fsl/qe/tsa.c:673:21: sparse: sparse: incorrect type in assignment 
(different address spaces)
drivers/virtio/virtio_ring.c:2784:3: warning: Value stored to 'err' is never 
read [clang-analyzer-deadcode.DeadStores]
drivers/watchdog/imx2_wdt.c:442:22: sparse: sparse: symbol 'imx_wdt' was not 
declared. Should it be static?
drivers/watchdog/imx2_wdt.c:446:22: sparse: sparse: symbol 'imx_wdt_legacy' was 
not declared. Should it be static?
include/linux/gpio/consumer.h: linux/err.h is included more than once.
include/linux/gpio/driver.h: asm/bug.h is included more than once.
io_uring/io_uring.c:432 io_prep_async_work() error: we previously assumed 
'req->file' could be null (see line 425)
io_uring/kbuf.c:221 __io_remove_buffers() warn: variable dereferenced before 
check 'bl->buf_ring' (see line 219)
net/mac80211/mesh_pathtbl.c:616:24: warning: Value stored to 'cache' during its 
initialization is never read [clang-analyzer-deadcode.DeadStores]

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_validation.c:warning:variable-bw_needed-set-but-not-used
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_validation.c:warning:variable-link-set-but-not-used
|   `-- 
drivers-net-wireless-legacy-ray_cs.c:warning:strncpy-specified-bound-equals-destination-size
|-- alpha-randconfig-r021-20230326
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_validation.c:warning:variable-bw_needed-set-but-not-used
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_validation.c:warning:variable-link-set-but-not-used
|-- arc-allyesconfig
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_validation.c:warning:variable-bw_needed-set-but-not-used
|   `-- 

Re: [PATCH net-next 8/8] virtio_net: introduce receive_small_xdp()

2023-03-22 Thread kernel test robot
Hi Xuan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_net-mergeable-xdp-put-old-page-immediately/20230322-110445
patch link:
https://lore.kernel.org/r/20230322030308.16046-9-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net-next 8/8] virtio_net: introduce receive_small_xdp()
config: i386-randconfig-a002 
(https://download.01.org/0day-ci/archive/20230323/202303230953.y0p1e1fc-...@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project 
f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/6445923dc4c91e57f98b8356d0bd706e95dafaa1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xuan-Zhuo/virtio_net-mergeable-xdp-put-old-page-immediately/20230322-110445
git checkout 6445923dc4c91e57f98b8356d0bd706e95dafaa1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303230953.y0p1e1fc-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/virtio_net.c:969:6: warning: variable 'buflen' is used 
>> uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
   if (unlikely(xdp_headroom < virtnet_get_headroom(vi))) {
   ^
   include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
   ^~
   drivers/net/virtio_net.c:990:22: note: uninitialized use occurs here
   xdp_init_buff(, buflen, >xdp_rxq);
   ^~
   drivers/net/virtio_net.c:969:2: note: remove the 'if' if its condition is 
always true
   if (unlikely(xdp_headroom < virtnet_get_headroom(vi))) {
   ^~~
   drivers/net/virtio_net.c:958:21: note: initialize the variable 'buflen' to 
silence this warning
   unsigned int buflen;
  ^
   = 0
   drivers/net/virtio_net.c:1428:6: warning: variable 'page' is used 
uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
   if (unlikely(len > truesize - room)) {
   ^~~
   include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
   ^~
   drivers/net/virtio_net.c:1519:11: note: uninitialized use occurs here
   put_page(page);
^~~~
   drivers/net/virtio_net.c:1428:2: note: remove the 'if' if its condition is 
always false
   if (unlikely(len > truesize - room)) {
   ^~
   drivers/net/virtio_net.c:1421:19: note: initialize the variable 'page' to 
silence this warning
   struct page *page;
^
 = NULL
   drivers/net/virtio_net.c:1428:6: warning: variable 'num_buf' is used 
uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
   if (unlikely(len > truesize - room)) {
   ^~~
   include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
   ^~
   drivers/net/virtio_net.c:1520:25: note: uninitialized use occurs here
   mergeable_buf_free(rq, num_buf, dev, stats);
  ^~~
   drivers/net/virtio_net.c:1428:2: note: remove the 'if' if its condition is 
always false
   if (unlikely(len > truesize - room)) {
   ^~
   drivers/net/virtio_net.c:1422:13: note: initialize the variable 'num_buf' to 
silence this warning
   int num_buf;
  ^
   = 0
   3 warnings generated.


vim +969 drivers/net/virtio_net.c

4941d472bf95b4 Jason Wang 2017-07-19   941  
6445923dc4c91e Xuan Zhuo  2023-03-22   942  static struct sk_buff 
*receive_small_xdp(struct net_device *dev,
bb91acc

Re: [PATCH net-next 7/8] virtio_net: introduce receive_mergeable_xdp()

2023-03-22 Thread kernel test robot
Hi Xuan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/main]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_net-mergeable-xdp-put-old-page-immediately/20230322-110445
patch link:
https://lore.kernel.org/r/20230322030308.16046-8-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH net-next 7/8] virtio_net: introduce 
receive_mergeable_xdp()
config: i386-randconfig-a002 
(https://download.01.org/0day-ci/archive/20230323/202303230720.xuavhilr-...@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project 
f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/c00edb888e239eb9eb468c0e93419f373f5e72a7
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xuan-Zhuo/virtio_net-mergeable-xdp-put-old-page-immediately/20230322-110445
git checkout c00edb888e239eb9eb468c0e93419f373f5e72a7
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303230720.xuavhilr-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/net/virtio_net.c:1399:6: warning: variable 'page' is used 
>> uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
   if (unlikely(len > truesize - room)) {
   ^~~
   include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
   ^~
   drivers/net/virtio_net.c:1490:11: note: uninitialized use occurs here
   put_page(page);
^~~~
   drivers/net/virtio_net.c:1399:2: note: remove the 'if' if its condition is 
always false
   if (unlikely(len > truesize - room)) {
   ^~
   drivers/net/virtio_net.c:1392:19: note: initialize the variable 'page' to 
silence this warning
   struct page *page;
^
 = NULL
>> drivers/net/virtio_net.c:1399:6: warning: variable 'num_buf' is used 
>> uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
   if (unlikely(len > truesize - room)) {
   ^~~
   include/linux/compiler.h:78:22: note: expanded from macro 'unlikely'
   # define unlikely(x)__builtin_expect(!!(x), 0)
   ^~
   drivers/net/virtio_net.c:1491:25: note: uninitialized use occurs here
   mergeable_buf_free(rq, num_buf, dev, stats);
  ^~~
   drivers/net/virtio_net.c:1399:2: note: remove the 'if' if its condition is 
always false
   if (unlikely(len > truesize - room)) {
   ^~
   drivers/net/virtio_net.c:1393:13: note: initialize the variable 'num_buf' to 
silence this warning
   int num_buf;
  ^
   = 0
   2 warnings generated.


vim +1399 drivers/net/virtio_net.c

  1375  
  1376  static struct sk_buff *receive_mergeable(struct net_device *dev,
  1377   struct virtnet_info *vi,
  1378   struct receive_queue *rq,
  1379   void *buf,
  1380   void *ctx,
  1381   unsigned int len,
  1382   unsigned int *xdp_xmit,
  1383   struct virtnet_rq_stats *stats)
  1384  {
  1385  unsigned int truesize = mergeable_ctx_to_truesize(ctx);
  1386  unsigned int headroom = mergeable_ctx_to_headroom(ctx);
  1387  unsigned int tailroom = headroom ? sizeof(struct 
skb_shared_info) : 0;
  1388  unsigned int room = SKB_DATA_ALIGN(headroom + tailroom);
  1389  struct virtio_net_hdr_mrg_rxbuf *hdr;
  1390  struct sk_buff *head_skb, *curr_skb;
  1391  struct bpf_prog *xdp_prog;
  1392  struct page *page;
  1393  int num_buf;
  1394  int offset;
  1395  
  1396  head_skb = NULL;
  1397  stats->bytes += len - vi->hdr_len;
  1398  
> 

Re: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support

2023-03-20 Thread kernel test robot
Hi Viktor,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.3-rc3 next-20230320]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230320115451.1232171-1-viktor%40daynix.com
patch subject: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support
config: sparc64-randconfig-s031-20230319 
(https://download.01.org/0day-ci/archive/20230321/202303210740.w7riuizb-...@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/b6212a12ca1691dc346e5de046ec46bd3ce11247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
git checkout b6212a12ca1691dc346e5de046ec46bd3ce11247
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 
olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 
SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303210740.w7riuizb-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_pci_common.c:54:19: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@ expected unsigned int [usertype] l 
>> @@ got restricted __le32 [usertype] data @@
   drivers/virtio/virtio_pci_common.c:54:19: sparse: expected unsigned int 
[usertype] l
   drivers/virtio/virtio_pci_common.c:54:19: sparse: got restricted __le32 
[usertype] data

vim +54 drivers/virtio/virtio_pci_common.c

49  
50  bool vp_notify_with_data(struct virtqueue *vq)
51  {
52  __le32 data = vring_fill_notification_data(vq);
53  
  > 54  iowrite32(data, (void __iomem *)vq->priv);
55  
56  return true;
57  }
58  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support

2023-03-20 Thread kernel test robot
Hi Viktor,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.3-rc3 next-20230320]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230320115451.1232171-1-viktor%40daynix.com
patch subject: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support
config: alpha-randconfig-s043-20230319 
(https://download.01.org/0day-ci/archive/20230321/202303210759.krnnnzb4-...@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/b6212a12ca1691dc346e5de046ec46bd3ce11247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
git checkout b6212a12ca1691dc346e5de046ec46bd3ce11247
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha 
SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303210759.krnnnzb4-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_mmio.c:293:16: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@ expected unsigned int [usertype] b 
>> @@ got restricted __le32 [usertype] data @@
   drivers/virtio/virtio_mmio.c:293:16: sparse: expected unsigned int 
[usertype] b
   drivers/virtio/virtio_mmio.c:293:16: sparse: got restricted __le32 
[usertype] data

vim +293 drivers/virtio/virtio_mmio.c

   287  
   288  static bool vm_notify_with_data(struct virtqueue *vq)
   289  {
   290  struct virtio_mmio_device *vm_dev = 
to_virtio_mmio_device(vq->vdev);
   291  __le32 data = vring_fill_notification_data(vq);
   292  
 > 293  writel(data, vm_dev->base + VIRTIO_MMIO_QUEUE_NOTIFY);
   294  
   295  return true;
   296  }
   297  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support

2023-03-20 Thread kernel test robot
Hi Viktor,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.3-rc3 next-20230320]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230320115451.1232171-1-viktor%40daynix.com
patch subject: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support
config: i386-randconfig-s002 
(https://download.01.org/0day-ci/archive/20230321/202303210515.zhhe1nmc-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/b6212a12ca1691dc346e5de046ec46bd3ce11247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
git checkout b6212a12ca1691dc346e5de046ec46bd3ce11247
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=i386 olddefconfig
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=i386 SHELL=/bin/bash drivers/virtio/ net/bluetooth/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303210515.zhhe1nmc-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_pci_common.c:54:19: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@ expected unsigned int [usertype] @@ 
>> got restricted __le32 [usertype] data @@
   drivers/virtio/virtio_pci_common.c:54:19: sparse: expected unsigned int 
[usertype]
   drivers/virtio/virtio_pci_common.c:54:19: sparse: got restricted __le32 
[usertype] data

vim +54 drivers/virtio/virtio_pci_common.c

49  
50  bool vp_notify_with_data(struct virtqueue *vq)
51  {
52  __le32 data = vring_fill_notification_data(vq);
53  
  > 54  iowrite32(data, (void __iomem *)vq->priv);
55  
56  return true;
57  }
58  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support

2023-03-20 Thread kernel test robot
Hi Viktor,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.3-rc3 next-20230320]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230320115451.1232171-1-viktor%40daynix.com
patch subject: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support
config: loongarch-randconfig-s032-20230319 
(https://download.01.org/0day-ci/archive/20230321/202303210441.xoa05pbs-...@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/b6212a12ca1691dc346e5de046ec46bd3ce11247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
git checkout b6212a12ca1691dc346e5de046ec46bd3ce11247
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch 
olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch 
SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303210441.xoa05pbs-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_pci_common.c:54:19: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@ expected unsigned int [usertype] 
>> value @@ got restricted __le32 [usertype] data @@
   drivers/virtio/virtio_pci_common.c:54:19: sparse: expected unsigned int 
[usertype] value
   drivers/virtio/virtio_pci_common.c:54:19: sparse: got restricted __le32 
[usertype] data

vim +54 drivers/virtio/virtio_pci_common.c

49  
50  bool vp_notify_with_data(struct virtqueue *vq)
51  {
52  __le32 data = vring_fill_notification_data(vq);
53  
  > 54  iowrite32(data, (void __iomem *)vq->priv);
55  
56  return true;
57  }
58  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support

2023-03-20 Thread kernel test robot
Hi Viktor,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.3-rc3 next-20230320]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230320115451.1232171-1-viktor%40daynix.com
patch subject: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support
config: sparc64-randconfig-s052-20230319 
(https://download.01.org/0day-ci/archive/20230321/202303210405.8gkuvbfx-...@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/b6212a12ca1691dc346e5de046ec46bd3ce11247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
git checkout b6212a12ca1691dc346e5de046ec46bd3ce11247
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 
olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 
SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303210405.8gkuvbfx-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_mmio.c:293:16: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@ expected unsigned int [usertype] l 
>> @@ got restricted __le32 [usertype] data @@
   drivers/virtio/virtio_mmio.c:293:16: sparse: expected unsigned int 
[usertype] l
   drivers/virtio/virtio_mmio.c:293:16: sparse: got restricted __le32 
[usertype] data

vim +293 drivers/virtio/virtio_mmio.c

   287  
   288  static bool vm_notify_with_data(struct virtqueue *vq)
   289  {
   290  struct virtio_mmio_device *vm_dev = 
to_virtio_mmio_device(vq->vdev);
   291  __le32 data = vring_fill_notification_data(vq);
   292  
 > 293  writel(data, vm_dev->base + VIRTIO_MMIO_QUEUE_NOTIFY);
   294  
   295  return true;
   296  }
   297  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support

2023-03-20 Thread kernel test robot
Hi Viktor,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.3-rc3 next-20230320]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230320115451.1232171-1-viktor%40daynix.com
patch subject: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support
config: i386-randconfig-s003 
(https://download.01.org/0day-ci/archive/20230321/202303210403.lsrg8goq-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/b6212a12ca1691dc346e5de046ec46bd3ce11247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
git checkout b6212a12ca1691dc346e5de046ec46bd3ce11247
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=i386 olddefconfig
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=i386 SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303210403.lsrg8goq-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_mmio.c:293:16: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@ expected unsigned int val @@ 
>> got restricted __le32 [usertype] data @@
   drivers/virtio/virtio_mmio.c:293:16: sparse: expected unsigned int val
   drivers/virtio/virtio_mmio.c:293:16: sparse: got restricted __le32 
[usertype] data

vim +293 drivers/virtio/virtio_mmio.c

   287  
   288  static bool vm_notify_with_data(struct virtqueue *vq)
   289  {
   290  struct virtio_mmio_device *vm_dev = 
to_virtio_mmio_device(vq->vdev);
   291  __le32 data = vring_fill_notification_data(vq);
   292  
 > 293  writel(data, vm_dev->base + VIRTIO_MMIO_QUEUE_NOTIFY);
   294  
   295  return true;
   296  }
   297  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support

2023-03-20 Thread kernel test robot
Hi Viktor,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.3-rc3 next-20230320]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230320115451.1232171-1-viktor%40daynix.com
patch subject: [PATCH] virtio: add VIRTIO_F_NOTIFICATION_DATA feature support
config: nios2-randconfig-s051-20230319 
(https://download.01.org/0day-ci/archive/20230321/202303210449.m2erqjxb-...@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/b6212a12ca1691dc346e5de046ec46bd3ce11247
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Viktor-Prutyanov/virtio-add-VIRTIO_F_NOTIFICATION_DATA-feature-support/20230320-195725
git checkout b6212a12ca1691dc346e5de046ec46bd3ce11247
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 
SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303210449.m2erqjxb-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/virtio/virtio_mmio.c:293:16: sparse: sparse: incorrect type in 
>> argument 1 (different base types) @@ expected unsigned int [usertype] 
>> value @@ got restricted __le32 [usertype] data @@
   drivers/virtio/virtio_mmio.c:293:16: sparse: expected unsigned int 
[usertype] value
   drivers/virtio/virtio_mmio.c:293:16: sparse: got restricted __le32 
[usertype] data

vim +293 drivers/virtio/virtio_mmio.c

   287  
   288  static bool vm_notify_with_data(struct virtqueue *vq)
   289  {
   290  struct virtio_mmio_device *vm_dev = 
to_virtio_mmio_device(vq->vdev);
   291  __le32 data = vring_fill_notification_data(vq);
   292  
 > 293  writel(data, vm_dev->base + VIRTIO_MMIO_QUEUE_NOTIFY);
   294  
   295  return true;
   296  }
   297  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v2 6/8] vdpa_sim: use kthread worker

2023-03-05 Thread kernel test robot
Hi Stefano,

I love your patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master next-20230303]
[cannot apply to v6.2]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Stefano-Garzarella/vdpa-add-bind_mm-unbind_mm-callbacks/20230302-193850
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
patch link:
https://lore.kernel.org/r/20230302113421.174582-7-sgarzare%40redhat.com
patch subject: [PATCH v2 6/8] vdpa_sim: use kthread worker
config: i386-allyesconfig 
(https://download.01.org/0day-ci/archive/20230305/202303051841.bpaizjry-...@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project 
f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/5b2107457ac0e7b1bb0aa3635ebf13b02e82bb78
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Stefano-Garzarella/vdpa-add-bind_mm-unbind_mm-callbacks/20230302-193850
git checkout 5b2107457ac0e7b1bb0aa3635ebf13b02e82bb78
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/wireless/ath/ath10k/ 
drivers/vdpa/vdpa_sim/ fs/erofs/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303051841.bpaizjry-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/vdpa/vdpa_sim/vdpa_sim.c:166:6: warning: variable 'dev' is used 
>> uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
   if (IS_ERR(vdpasim->worker))
   ^~~
   drivers/vdpa/vdpa_sim/vdpa_sim.c:213:13: note: uninitialized use occurs here
   put_device(dev);
  ^~~
   drivers/vdpa/vdpa_sim/vdpa_sim.c:166:2: note: remove the 'if' if its 
condition is always false
   if (IS_ERR(vdpasim->worker))
   ^~~~
   drivers/vdpa/vdpa_sim/vdpa_sim.c:132:20: note: initialize the variable 'dev' 
to silence this warning
   struct device *dev;
 ^
  = NULL
   1 warning generated.


vim +166 drivers/vdpa/vdpa_sim/vdpa_sim.c

   125  
   126  struct vdpasim *vdpasim_create(struct vdpasim_dev_attr *dev_attr,
   127 const struct vdpa_dev_set_config *config)
   128  {
   129  const struct vdpa_config_ops *ops;
   130  struct vdpa_device *vdpa;
   131  struct vdpasim *vdpasim;
   132  struct device *dev;
   133  int i, ret = -ENOMEM;
   134  
   135  if (!dev_attr->alloc_size)
   136  return ERR_PTR(-EINVAL);
   137  
   138  if (config->mask & BIT_ULL(VDPA_ATTR_DEV_FEATURES)) {
   139  if (config->device_features &
   140  ~dev_attr->supported_features)
   141  return ERR_PTR(-EINVAL);
   142  dev_attr->supported_features =
   143  config->device_features;
   144  }
   145  
   146  if (batch_mapping)
   147  ops = _batch_config_ops;
   148  else
   149  ops = _config_ops;
   150  
   151  vdpa = __vdpa_alloc_device(NULL, ops,
   152 dev_attr->ngroups, dev_attr->nas,
   153 dev_attr->alloc_size,
   154 dev_attr->name, false);
   155  if (IS_ERR(vdpa)) {
   156  ret = PTR_ERR(vdpa);
   157  goto err_alloc;
   158  }
   159  
   160  vdpasim = vdpa_to_sim(vdpa);
   161  vdpasim->dev_attr = *dev_attr;
   162  
   163  kthread_init_work(>work, vdpasim_work_fn);
   164  vdpasim->worker = kthread_create_worker(0, "vDPA sim worker: 
%s",
   165  dev_attr->name);
 > 166  if (IS_ERR(vdpasim->worker))
   167  goto err_iommu;
   168  
   169  spin_lock_init(>lock);
   170  spin_lock_init(>iommu_loc

Re: [PATCH v3 05/11] vduse: Support automatic irq callback affinity

2023-02-28 Thread kernel test robot
Hi Xie,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/irq/core]
[also build test WARNING on linus/master next-20230228]
[cannot apply to mst-vhost/linux-next hch-configfs/for-next v6.2]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xie-Yongji/lib-group_cpus-Export-group_cpus_evenly/20230228-174438
patch link:
https://lore.kernel.org/r/20230228094110.37-6-xieyongji%40bytedance.com
patch subject: [PATCH v3 05/11] vduse: Support automatic irq callback affinity
config: x86_64-randconfig-s021 
(https://download.01.org/0day-ci/archive/20230301/202303010802.fygx4t0d-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/6c15cc28cb814c0e6cb80955bc59517e80c15ae2
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xie-Yongji/lib-group_cpus-Export-group_cpus_evenly/20230228-174438
git checkout 6c15cc28cb814c0e6cb80955bc59517e80c15ae2
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 olddefconfig
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 SHELL=/bin/bash drivers/vdpa/vdpa_user/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202303010802.fygx4t0d-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/vdpa/vdpa_user/vduse_dev.c:724:16: sparse: sparse: symbol 
>> 'create_affinity_masks' was not declared. Should it be static?

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v3 05/11] vduse: Support automatic irq callback affinity

2023-02-28 Thread kernel test robot
Hi Xie,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/irq/core]
[also build test WARNING on linus/master next-20230228]
[cannot apply to mst-vhost/linux-next v6.2]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xie-Yongji/lib-group_cpus-Export-group_cpus_evenly/20230228-174438
patch link:
https://lore.kernel.org/r/20230228094110.37-6-xieyongji%40bytedance.com
patch subject: [PATCH v3 05/11] vduse: Support automatic irq callback affinity
config: m68k-allyesconfig 
(https://download.01.org/0day-ci/archive/20230228/202302281954.jra7qzq4-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/6c15cc28cb814c0e6cb80955bc59517e80c15ae2
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xie-Yongji/lib-group_cpus-Export-group_cpus_evenly/20230228-174438
git checkout 6c15cc28cb814c0e6cb80955bc59517e80c15ae2
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k SHELL=/bin/bash drivers/vdpa/vdpa_user/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302281954.jra7qzq4-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/vdpa/vdpa_user/vduse_dev.c:725:1: warning: no previous prototype for 
>> 'create_affinity_masks' [-Wmissing-prototypes]
 725 | create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd)
 | ^


vim +/create_affinity_masks +725 drivers/vdpa/vdpa_user/vduse_dev.c

   723  
   724  struct cpumask *
 > 725  create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd)
   726  {
   727  unsigned int affvecs = 0, curvec, usedvecs, i;
   728  struct cpumask *masks = NULL;
   729  
   730  if (nvecs > affd->pre_vectors + affd->post_vectors)
   731  affvecs = nvecs - affd->pre_vectors - 
affd->post_vectors;
   732  
   733  if (!affd->calc_sets)
   734  affd->calc_sets = default_calc_sets;
   735  
   736  affd->calc_sets(affd, affvecs);
   737  
   738  if (!affvecs)
   739  return NULL;
   740  
   741  masks = kcalloc(nvecs, sizeof(*masks), GFP_KERNEL);
   742  if (!masks)
   743  return NULL;
   744  
   745  /* Fill out vectors at the beginning that don't need affinity */
   746  for (curvec = 0; curvec < affd->pre_vectors; curvec++)
   747  cpumask_setall([curvec]);
   748  
   749  for (i = 0, usedvecs = 0; i < affd->nr_sets; i++) {
   750  unsigned int this_vecs = affd->set_size[i];
   751  int j;
   752  struct cpumask *result = group_cpus_evenly(this_vecs);
   753  
   754  if (!result) {
   755  kfree(masks);
   756  return NULL;
   757  }
   758  
   759  for (j = 0; j < this_vecs; j++)
   760  cpumask_copy([curvec + j], [j]);
   761  kfree(result);
   762  
   763  curvec += this_vecs;
   764  usedvecs += this_vecs;
   765  }
   766  
   767  /* Fill out vectors at the end that don't need affinity */
   768  if (usedvecs >= affvecs)
   769  curvec = affd->pre_vectors + affvecs;
   770  else
   771  curvec = affd->pre_vectors + usedvecs;
   772  for (; curvec < nvecs; curvec++)
   773  cpumask_setall([curvec]);
   774  
   775  return masks;
   776  }
   777  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v4 2/2] vdpasim: support doorbell mapping

2023-02-27 Thread kernel test robot
Hi Longpeng(Mike),

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v6.2]
[cannot apply to mst-vhost/linux-next linus/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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Longpeng-Mike/vdpa-support-specify-the-pgprot-of-vq-notification-area/20230227-172516
patch link:
https://lore.kernel.org/r/20230227091857.2406-3-longpeng2%40huawei.com
patch subject: [PATCH v4 2/2] vdpasim: support doorbell mapping
config: arm-allyesconfig 
(https://download.01.org/0day-ci/archive/20230228/202302280613.0lyqdcjr-...@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/a472c7ad92f68b5b596fd68e1936b2d47fe2ea0b
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Longpeng-Mike/vdpa-support-specify-the-pgprot-of-vq-notification-area/20230227-172516
git checkout a472c7ad92f68b5b596fd68e1936b2d47fe2ea0b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302280613.0lyqdcjr-...@intel.com/

All errors (new ones prefixed by >>):

   arm-linux-gnueabi-ld: drivers/vdpa/vdpa_sim/vdpa_sim.o: in function 
`vdpasim_notify_work':
>> vdpa_sim.c:(.text+0x12d0): undefined reference to `__bad_xchg'

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v4 2/2] vdpasim: support doorbell mapping

2023-02-27 Thread kernel test robot
Hi Longpeng(Mike),

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v6.2]
[cannot apply to mst-vhost/linux-next linus/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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Longpeng-Mike/vdpa-support-specify-the-pgprot-of-vq-notification-area/20230227-172516
patch link:
https://lore.kernel.org/r/20230227091857.2406-3-longpeng2%40huawei.com
patch subject: [PATCH v4 2/2] vdpasim: support doorbell mapping
config: arm-allmodconfig 
(https://download.01.org/0day-ci/archive/20230227/202302272338.vxr8d1bb-...@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/a472c7ad92f68b5b596fd68e1936b2d47fe2ea0b
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Longpeng-Mike/vdpa-support-specify-the-pgprot-of-vq-notification-area/20230227-172516
git checkout a472c7ad92f68b5b596fd68e1936b2d47fe2ea0b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302272338.vxr8d1bb-...@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "__bad_xchg" [drivers/vdpa/vdpa_sim/vdpa_sim.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v4 2/2] vdpasim: support doorbell mapping

2023-02-27 Thread kernel test robot
Hi Longpeng(Mike),

Thank you for the patch! Yet something to improve:

[auto build test ERROR on v6.2]
[also build test ERROR on next-20230227]
[cannot apply to mst-vhost/linux-next linus/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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Longpeng-Mike/vdpa-support-specify-the-pgprot-of-vq-notification-area/20230227-172516
patch link:
https://lore.kernel.org/r/20230227091857.2406-3-longpeng2%40huawei.com
patch subject: [PATCH v4 2/2] vdpasim: support doorbell mapping
config: arm-randconfig-r046-20230227 
(https://download.01.org/0day-ci/archive/20230227/202302272333.jioo8ies-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 
db89896bbbd2251fff457699635acbbedeead27f)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 
https://github.com/intel-lab-lkp/linux/commit/a472c7ad92f68b5b596fd68e1936b2d47fe2ea0b
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Longpeng-Mike/vdpa-support-specify-the-pgprot-of-vq-notification-area/20230227-172516
git checkout a472c7ad92f68b5b596fd68e1936b2d47fe2ea0b
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302272333.jioo8ies-...@intel.com/

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: __bad_xchg
   >>> referenced by cmpxchg.h:110 (arch/arm/include/asm/cmpxchg.h:110)
   >>>   drivers/vdpa/vdpa_sim/vdpa_sim.o:(vdpasim_notify_work) in 
archive vmlinux.a

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v11 05/10] drm/shmem-helper: Add memory shrinker

2023-02-27 Thread kernel test robot
Hi Dmitry,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm-misc/drm-misc-next]
[cannot apply to drm/drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.2 next-20230227]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Dmitry-Osipenko/drm-shmem-helper-Factor-out-pages-alloc-release-from-drm_gem_shmem_get-put_pages/20230227-140619
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:
https://lore.kernel.org/r/20230227060219.904986-6-dmitry.osipenko%40collabora.com
patch subject: [PATCH v11 05/10] drm/shmem-helper: Add memory shrinker
config: s390-allyesconfig 
(https://download.01.org/0day-ci/archive/20230227/202302271639.sq28b3ar-...@intel.com/config)
compiler: s390-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/c4d106484ddbebccf4219dacbc2a9975909f4c2a
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Dmitry-Osipenko/drm-shmem-helper-Factor-out-pages-alloc-release-from-drm_gem_shmem_get-put_pages/20230227-140619
git checkout c4d106484ddbebccf4219dacbc2a9975909f4c2a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=s390 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=s390 SHELL=/bin/bash drivers/gpu/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302271639.sq28b3ar-...@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_gem_shmem_helper.c:832:18: warning: no previous 
>> prototype for 'drm_gem_shmem_get_pages_sgt_locked' [-Wmissing-prototypes]
 832 | struct sg_table *drm_gem_shmem_get_pages_sgt_locked(struct 
drm_gem_shmem_object *shmem)
 |  ^~
   drivers/gpu/drm/drm_gem_shmem_helper.c: In function 
'drm_gem_shmem_shrinker_scan_objects':
   drivers/gpu/drm/drm_gem_shmem_helper.c:1015:47: error: passing argument 3 of 
'drm_gem_lru_scan' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
1015 |   nr_to_scan, ,
 |   ^~
 |   |
 |   long unsigned int *
   In file included from include/drm/drm_gem_shmem_helper.h:12,
from drivers/gpu/drm/drm_gem_shmem_helper.c:22:
   include/drm/drm_gem.h:490:39: note: expected 'bool (*)(struct drm_gem_object 
*)' {aka '_Bool (*)(struct drm_gem_object *)'} but argument is of type 'long 
unsigned int *'
 490 |bool (*shrink)(struct drm_gem_object 
*obj));
 |
~~~^~~
   drivers/gpu/drm/drm_gem_shmem_helper.c:1014:18: error: too many arguments to 
function 'drm_gem_lru_scan'
1014 | freed += drm_gem_lru_scan(_shrinker->lru_evictable,
 |  ^~~~
   include/drm/drm_gem.h:489:15: note: declared here
 489 | unsigned long drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned 
nr_to_scan,
 |   ^~~~
   drivers/gpu/drm/drm_gem_shmem_helper.c:1021:63: error: passing argument 3 of 
'drm_gem_lru_scan' from incompatible pointer type 
[-Werror=incompatible-pointer-types]
1021 |   nr_to_scan - freed, 
,
 |   
^~
 |   |
 |   long 
unsigned int *
   include/drm/drm_gem.h:490:39: note: expected 'bool (*)(struct drm_gem_object 
*)' {aka '_Bool (*)(struct drm_gem_object *)'} but argument is of type 'long 
unsigned int *'
 490 |bool (*shrink)(struct drm_gem_object 
*obj));
 |
~~~^~~
   drivers/gpu/drm/drm_gem_shmem_helper.c:1020:26: error: too many arguments to 
function 'drm_gem_lru_scan'
1020 | freed += 
drm_gem_lru_scan(_shrinker->lru_evictable,
 |  ^~~~
   in

Re: [PATCH v11 05/10] drm/shmem-helper: Add memory shrinker

2023-02-27 Thread kernel test robot
Hi Dmitry,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-misc/drm-misc-next]
[cannot apply to drm/drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.2 next-20230227]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Dmitry-Osipenko/drm-shmem-helper-Factor-out-pages-alloc-release-from-drm_gem_shmem_get-put_pages/20230227-140619
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:
https://lore.kernel.org/r/20230227060219.904986-6-dmitry.osipenko%40collabora.com
patch subject: [PATCH v11 05/10] drm/shmem-helper: Add memory shrinker
config: riscv-randconfig-r006-20230227 
(https://download.01.org/0day-ci/archive/20230227/202302271624.aedot0uv-...@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 
db89896bbbd2251fff457699635acbbedeead27f)
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://github.com/intel-lab-lkp/linux/commit/c4d106484ddbebccf4219dacbc2a9975909f4c2a
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Dmitry-Osipenko/drm-shmem-helper-Factor-out-pages-alloc-release-from-drm_gem_shmem_get-put_pages/20230227-140619
git checkout c4d106484ddbebccf4219dacbc2a9975909f4c2a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=riscv olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=riscv SHELL=/bin/bash drivers/gpu/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302271624.aedot0uv-...@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_gem_shmem_helper.c:832:18: warning: no previous 
prototype for function 'drm_gem_shmem_get_pages_sgt_locked' 
[-Wmissing-prototypes]
   struct sg_table *drm_gem_shmem_get_pages_sgt_locked(struct 
drm_gem_shmem_object *shmem)
^
   drivers/gpu/drm/drm_gem_shmem_helper.c:832:1: note: declare 'static' if the 
function is not intended to be used outside of this translation unit
   struct sg_table *drm_gem_shmem_get_pages_sgt_locked(struct 
drm_gem_shmem_object *shmem)
   ^
   static 
>> drivers/gpu/drm/drm_gem_shmem_helper.c:1016:7: error: too many arguments to 
>> function call, expected 3, have 4
 drm_gem_shmem_shrinker_purge);
 ^~~~
   include/drm/drm_gem.h:489:15: note: 'drm_gem_lru_scan' declared here
   unsigned long drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned nr_to_scan,
 ^
   drivers/gpu/drm/drm_gem_shmem_helper.c:1022:8: error: too many arguments to 
function call, expected 3, have 4
 drm_gem_shmem_shrinker_evict);
 ^~~~
   include/drm/drm_gem.h:489:15: note: 'drm_gem_lru_scan' declared here
   unsigned long drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned nr_to_scan,
 ^
   1 warning and 2 errors generated.


vim +1016 drivers/gpu/drm/drm_gem_shmem_helper.c

  1001  
  1002  static unsigned long
  1003  drm_gem_shmem_shrinker_scan_objects(struct shrinker *shrinker,
  1004  struct shrink_control *sc)
  1005  {
  1006  struct drm_gem_shmem_shrinker *shmem_shrinker;
  1007  unsigned long nr_to_scan = sc->nr_to_scan;
  1008  unsigned long remaining = 0;
  1009  unsigned long freed = 0;
  1010  
  1011  shmem_shrinker = to_drm_gem_shmem_shrinker(shrinker);
  1012  
  1013  /* purge as many objects as we can */
  1014  freed += drm_gem_lru_scan(_shrinker->lru_evictable,
  1015nr_to_scan, ,
> 1016drm_gem_shmem_shrinker_purge);
  1017  
  1018  /* evict as many objects as we can */
  1019  if (freed < nr_to_scan)
  1020  freed += 
drm_gem_lru_scan(_shrinker->lru_evictable,
  1021nr_to_scan - freed, 
,
  1022drm_gem_shmem_shrinker_evict);
  1023  
  1024  return (freed > 0 && remaining > 0) ? freed : SH

Re: [PATCH] virtio-net: Fix probe of virtio-net on kvmtool

2023-02-23 Thread kernel test robot
Hi Rob,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on c39cea6f38eefe356d64d0bc1e1f2267e282cdd3]

url:
https://github.com/intel-lab-lkp/linux/commits/Rob-Bradford-via-B4-Relay/virtio-net-Fix-probe-of-virtio-net-on-kvmtool/20230224-011509
base:   c39cea6f38eefe356d64d0bc1e1f2267e282cdd3
patch link:
https://lore.kernel.org/r/20230223-virtio-net-kvmtool-v1-1-fc23d29b9d7a%40rivosinc.com
patch subject: [PATCH] virtio-net: Fix probe of virtio-net on kvmtool
config: m68k-allyesconfig 
(https://download.01.org/0day-ci/archive/20230224/202302240220.zjz4uyzi-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/c778354a380764fd994634e06be5c8047591d138
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Rob-Bradford-via-B4-Relay/virtio-net-Fix-probe-of-virtio-net-on-kvmtool/20230224-011509
git checkout c778354a380764fd994634e06be5c8047591d138
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302240220.zjz4uyzi-...@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/virtio_net.c: In function 'virtnet_probe':
>> drivers/net/virtio_net.c:3784:63: warning: suggest parentheses around '&&' 
>> within '||' [-Wparentheses]
3784 | virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_TSO6) &&
 | ~~^~
3785 | virtio_has_feature(vdev, 
VIRTIO_NET_F_CTRL_GUEST_OFFLOADS))
 | 
~~


vim +3784 drivers/net/virtio_net.c

  3719  
  3720  static int virtnet_probe(struct virtio_device *vdev)
  3721  {
  3722  int i, err = -ENOMEM;
  3723  struct net_device *dev;
  3724  struct virtnet_info *vi;
  3725  u16 max_queue_pairs;
  3726  int mtu = 0;
  3727  
  3728  /* Find if host supports multiqueue/rss virtio_net device */
  3729  max_queue_pairs = 1;
  3730  if (virtio_has_feature(vdev, VIRTIO_NET_F_MQ) || 
virtio_has_feature(vdev, VIRTIO_NET_F_RSS))
  3731  max_queue_pairs =
  3732   virtio_cread16(vdev, offsetof(struct 
virtio_net_config, max_virtqueue_pairs));
  3733  
  3734  /* We need at least 2 queue's */
  3735  if (max_queue_pairs < VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MIN ||
  3736  max_queue_pairs > VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX ||
  3737  !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ))
  3738  max_queue_pairs = 1;
  3739  
  3740  /* Allocate ourselves a network device with room for our info */
  3741  dev = alloc_etherdev_mq(sizeof(struct virtnet_info), 
max_queue_pairs);
  3742  if (!dev)
  3743  return -ENOMEM;
  3744  
  3745  /* Set up network device as normal. */
  3746  dev->priv_flags |= IFF_UNICAST_FLT | IFF_LIVE_ADDR_CHANGE |
  3747 IFF_TX_SKB_NO_LINEAR;
  3748  dev->netdev_ops = _netdev;
  3749  dev->features = NETIF_F_HIGHDMA;
  3750  
  3751  dev->ethtool_ops = _ethtool_ops;
  3752  SET_NETDEV_DEV(dev, >dev);
  3753  
  3754  /* Do we support "hardware" checksums? */
  3755  if (virtio_has_feature(vdev, VIRTIO_NET_F_CSUM)) {
  3756  /* This opens up the world of extra features. */
  3757  dev->hw_features |= NETIF_F_HW_CSUM | NETIF_F_SG;
  3758  if (csum)
  3759  dev->features |= NETIF_F_HW_CSUM | NETIF_F_SG;
  3760  
  3761  if (virtio_has_feature(vdev, VIRTIO_NET_F_GSO)) {
  3762  dev->hw_features |= NETIF_F_TSO
  3763  | NETIF_F_TSO_ECN | NETIF_F_TSO6;
  3764  }
  3765  /* Individual feature bits: what can host handle? */
  3766  if (virtio_has_feature(vdev, VIRTIO_NET_F_HOST_TSO4))
  3767  dev->hw_features |= NETIF_F_TSO;
  3768  if (virtio_has_feature(vdev, VIRTIO_NET_F_HOST_TSO6))
  3769  dev->hw_features |= NETIF_F_TSO6;
  3770  

[linux-next:master] BUILD REGRESSION d2af0fa4bfa4ec29d03b449ccd43fee39501112d

2023-02-20 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: d2af0fa4bfa4ec29d03b449ccd43fee39501112d  Add linux-next specific 
files for 20230220

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202302062224.byzetxh1-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302092211.54eydhyh-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302111601.jty4lkra-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302170355.ljqlzucu-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302210017.xt59wvsm-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302210350.lynwcl4t-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

Documentation/sphinx/templates/kernel-toc.html: 1:36 Invalid token: #}
ERROR: modpost: "__umoddi3" [fs/btrfs/btrfs.ko] undefined!
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/fsl-edma.ko] 
undefined!
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/idma64.ko] 
undefined!
FAILED: load BTF from vmlinux: No data available
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:294:6: warning: no 
previous prototype for 'optc3_wait_drr_doublebuffer_pending_clear' 
[-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:62:18: 
warning: variable 'cursor_bpp' set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_detection.c:1199: warning: 
expecting prototype for dc_link_detect_connection_type(). Prototype was for 
link_detect_connection_type() instead
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_capability.c:1292:32:
 warning: variable 'result_write_min_hblank' set but not used 
[-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_training.c:1586:38:
 warning: variable 'result' set but not used [-Wunused-but-set-variable]
drivers/net/ethernet/sfc/ef100_nic.c:1197:9: warning: variable 'rc' is 
uninitialized when used here [-Wuninitialized]
drivers/net/ethernet/sfc/efx_devlink.c:326:58: error: expected ')' before 
'build_id'
drivers/net/ethernet/sfc/efx_devlink.c:338:55: error: expected ';' before '}' 
token
drivers/of/unittest.c:3042:41: error: 'struct device_node' has no member named 
'kobj'
drivers/pwm/pwm-dwc.c:314:1: error: type defaults to 'int' in declaration of 
'module_pci_driver' [-Werror=implicit-int]
include/asm-generic/div64.h:238:36: error: passing argument 1 of '__div64_32' 
from incompatible pointer type [-Werror=incompatible-pointer-types]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/infiniband/hw/hfi1/verbs.c:1661 hfi1_alloc_hw_device_stats() error: we 
previously assumed 'dev_cntr_descs' could be null (see line 1650)
drivers/net/phy/phy-c45.c:712 genphy_c45_write_eee_adv() error: uninitialized 
symbol 'changed'.
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c:1678 
rtl8188e_handle_ra_tx_report2() warn: ignoring unreachable code.
drivers/usb/gadget/composite.c:2082:33: sparse: sparse: restricted __le16 
degrades to integer
drivers/virtio/virtio_ring.c:1585 virtqueue_add_packed_vring() error: 
uninitialized symbol 'prev'.
drivers/virtio/virtio_ring.c:1593 virtqueue_add_packed_vring() error: 
uninitialized symbol 'head_flags'.
drivers/virtio/virtio_ring.c:697 virtqueue_add_split_vring() error: 
uninitialized symbol 'prev'.
pahole: .tmp_vmlinux.btf: No such file or directory

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_detection.c:warning:expecting-prototype-for-dc_link_detect_connection_type().-Prototype-was-for-link_detect_connection_type()-instead
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_capability.c:warning:variable-result_write_min_hblank-set-but-not-used
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_training.c:warning:variable-result-set-but-not-used
|-- alpha-buildonly-randconfig-r006-20230219
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_detection.c:warning:expecting-prototype-for-dc_link_detect_connection_type().-Prototype-was-for-link_detect_connection_type()-instead
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_capability.c:warning:variable-result_write_min_hblank-set-but-not-used
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arc-allyesconfig
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_detection.c:warning:expecting-prototype-for-dc_link_detect_connection_type().-Prototype-was-for-link_detect_connection_type()-instead
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_capability.c:warning:variable-result_write_min_hblank-set-but-not-used
|   |-- 

[linux-next:master] BUILD REGRESSION c068f40300a0eaa34f7105d137a5560b86951aa9

2023-02-17 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: c068f40300a0eaa34f7105d137a5560b86951aa9  Add linux-next specific 
files for 20230217

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202302062224.byzetxh1-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302092211.54eydhyh-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302111601.jty4lkra-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302112104.g75cghzd-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302161117.pnuysgwi-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302170355.ljqlzucu-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302172104.q3ddwzqu-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

Documentation/sphinx/templates/kernel-toc.html: 1:36 Invalid token: #}
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/fsl-edma.ko] 
undefined!
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/idma64.ko] 
undefined!
arch/mips/kernel/vpe.c:643:35: error: no member named 'mod_mem' in 'struct 
module'
arch/mips/kernel/vpe.c:643:41: error: 'struct module' has no member named 
'mod_mem'
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:294:6: warning: no 
previous prototype for 'optc3_wait_drr_doublebuffer_pending_clear' 
[-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:62:18: 
warning: variable 'cursor_bpp' set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_detection.c:1199: warning: 
expecting prototype for dc_link_detect_connection_type(). Prototype was for 
link_detect_connection_type() instead
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_capability.c:1292:32:
 warning: variable 'result_write_min_hblank' set but not used 
[-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_training.c:1586:38:
 warning: variable 'result' set but not used [-Wunused-but-set-variable]
drivers/net/ethernet/sfc/ef100_nic.c:1128:21: warning: unused variable 
'net_dev' [-Wunused-variable]
drivers/net/ethernet/sfc/ef100_nic.c:1170:9: warning: variable 'rc' is 
uninitialized when used here [-Wuninitialized]
drivers/net/ethernet/sfc/efx_devlink.c:185:17: error: expected declaration or 
statement at end of input
drivers/net/ethernet/sfc/efx_devlink.c:185:23: error: expected ';' at end of 
input
drivers/net/ethernet/sfc/efx_devlink.c:522:2: error: unterminated argument list 
invoking macro "memset"
include/linux/build_bug.h:78:41: error: static assertion failed: 
"SKB_WITH_OVERHEAD(TEST_XDP_FRAME_SIZE - XDP_PACKET_HEADROOM) == 
TEST_MAX_PKT_SIZE"

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/tty/serial/8250/8250_dfl.c:63 dfl_uart_get_params() error: 
uninitialized symbol 'clk_freq'.
drivers/tty/serial/8250/8250_dfl.c:69 dfl_uart_get_params() error: 
uninitialized symbol 'fifo_len'.
drivers/tty/serial/8250/8250_dfl.c:90 dfl_uart_get_params() error: 
uninitialized symbol 'reg_layout'.
drivers/usb/gadget/composite.c:2082:33: sparse: sparse: restricted __le16 
degrades to integer
drivers/virtio/virtio_ring.c:1585 virtqueue_add_packed_vring() error: 
uninitialized symbol 'prev'.
drivers/virtio/virtio_ring.c:1593 virtqueue_add_packed_vring() error: 
uninitialized symbol 'head_flags'.
drivers/virtio/virtio_ring.c:697 virtqueue_add_split_vring() error: 
uninitialized symbol 'prev'.
fs/ntfs3/super.c:1351 ntfs_fill_super() warn: passing a valid pointer to 
'PTR_ERR'
net/mac80211/mlme.c:7124 ieee80211_setup_assoc_link() warn: variable 
dereferenced before check 'elem' (see line 7122)
net/mac80211/rx.c:2947 __ieee80211_rx_h_amsdu() error: we previously assumed 
'rx->sta' could be null (see line 2933)

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_detection.c:warning:expecting-prototype-for-dc_link_detect_connection_type().-Prototype-was-for-link_detect_connection_type()-instead
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_capability.c:warning:variable-result_write_min_hblank-set-but-not-used
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_training.c:warning:variable-result-set-but-not-used
|-- alpha-randconfig-c041-20230212
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_detection.c:warning:expecting-prototype-for-dc_link_detect_connection_type().-Prototype-was-for-link_detect_connection_type()-instead
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_capability.c:warning:variable-result_write_min_hblank-set-but-not-used
|-- arc-allyesconfig
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_detection.c:warning:expecting-prototype-for-dc_link_detect_connection_type().-Prototype-was-for-link_detect_connection_type()-instead
|   |-- 

[linux-next:master] BUILD REGRESSION 509583475828c4fd86897113f78315c1431edcc3

2023-02-16 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: 509583475828c4fd86897113f78315c1431edcc3  Add linux-next specific 
files for 20230216

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202302061911.c7xvhx9v-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302062224.byzetxh1-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302111601.jty4lkra-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302112104.g75cghzd-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302142145.in5wznpf-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302151041.0sws1rhk-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302161117.pnuysgwi-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302162019.2whirksa-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202302162331.zgyxciuh-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

Documentation/admin-guide/pm/amd-pstate.rst:343: WARNING: duplicate label 
admin-guide/pm/amd-pstate:user space interface in ``sysfs``, other instance in 
Documentation/admin-guide/pm/amd-pstate.rst
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/fsl-edma.ko] 
undefined!
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/idma64.ko] 
undefined!
ERROR: modpost: "walk_hmem_resources" [drivers/dax/hmem/dax_hmem.ko] undefined!
arch/mips/include/asm/page.h:255:55: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
arch/mips/kernel/vpe.c:643:35: error: no member named 'mod_mem' in 'struct 
module'
arch/mips/kernel/vpe.c:643:41: error: 'struct module' has no member named 
'mod_mem'
cxl.c:(.exit.text+0x32): undefined reference to `cxl_driver_unregister'
cxl.c:(.init.text+0x3c): undefined reference to `__cxl_driver_register'
cxl.c:(.text+0x92): undefined reference to `to_cxl_dax_region'
drivers/cxl/core/region.c:2628:6: warning: variable 'rc' is used uninitialized 
whenever 'if' condition is false [-Wsometimes-uninitialized]
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:294:6: warning: no 
previous prototype for 'optc3_wait_drr_doublebuffer_pending_clear' 
[-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn31/dcn31_hubbub.c:1011:6: warning: 
no previous prototype for 'hubbub31_init' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hubbub.c:948:6: warning: 
no previous prototype for 'hubbub32_init' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hubp.c:158:6: warning: no 
previous prototype for 'hubp32_init' [-Wmissing-prototypes]
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:62:18: 
warning: variable 'cursor_bpp' set but not used [-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_detection.c:1199: warning: 
expecting prototype for dc_link_detect_connection_type(). Prototype was for 
link_detect_connection_type() instead
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_capability.c:1292:32:
 warning: variable 'result_write_min_hblank' set but not used 
[-Wunused-but-set-variable]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_training.c:1586:38:
 warning: variable 'result' set but not used [-Wunused-but-set-variable]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/clk/ingenic/jz4760-cgu.c:80 jz4760_cgu_calc_m_n_od() error: 
uninitialized symbol 'od'.
drivers/media/i2c/max9286.c:802 max9286_s_stream() error: buffer overflow 
'priv->fmt' 4 <= 32
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c:415 bnxt_rdma_aux_device_init() 
warn: possible memory leak of 'edev'
drivers/net/phy/phy-c45.c:296 genphy_c45_an_config_aneg() error: uninitialized 
symbol 'changed'.
drivers/net/phy/phy-c45.c:716 genphy_c45_write_eee_adv() error: uninitialized 
symbol 'changed'.
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c:1702 
rtl8188e_handle_ra_tx_report2() warn: ignoring unreachable code.
drivers/usb/gadget/composite.c:2082:33: sparse: sparse: restricted __le16 
degrades to integer
drivers/virtio/virtio_ring.c:692 virtqueue_add_split_vring() error: 
uninitialized symbol 'prev'.
fs/ntfs3/super.c:1351 ntfs_fill_super() warn: passing a valid pointer to 
'PTR_ERR'
net/mac80211/rx.c:2947 __ieee80211_rx_h_amsdu() error: we previously assumed 
'rx->sta' could be null (see line 2933)
pahole: .tmp_vmlinux.btf: No such file or directory

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_detection.c:warning:expecting-prototype-for-dc_link_detect_connection_type().-Prototype-was-for-link_detect_connection_type()-instead
|   |-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-protocols-link_dp_capability.c:warning:variable-result_write_min_hblank-set-but-not-used
|   `-- 

Re: [PATCH 22/33] virtio_net: xsk: introduce xsk disable

2023-02-11 Thread kernel test robot
Hi Xuan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]
[also build test WARNING on next-20230210]
[cannot apply to net/master mst-vhost/linux-next linus/master v6.2-rc7]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707
patch link:
https://lore.kernel.org/r/20230202110058.130695-23-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH 22/33] virtio_net: xsk: introduce xsk disable
config: nios2-randconfig-s033-20230202 
(https://download.01.org/0day-ci/archive/20230212/202302121555.btdmbiki-...@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/3c385ac45368b585d2ca1a45263b4a0536cef0dd
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707
git checkout 3c385ac45368b585d2ca1a45263b4a0536cef0dd
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 
SHELL=/bin/bash drivers/net/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 
| Link: 
https://lore.kernel.org/oe-kbuild-all/202302121555.btdmbiki-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/net/virtio/xsk.c:133:35: sparse: sparse: incorrect type in argument 
>> 1 (different address spaces) @@ expected struct xsk_buff_pool *pool @@   
>>   got struct xsk_buff_pool [noderef] __rcu *pool @@
   drivers/net/virtio/xsk.c:133:35: sparse: expected struct xsk_buff_pool 
*pool
   drivers/net/virtio/xsk.c:133:35: sparse: got struct xsk_buff_pool 
[noderef] __rcu *pool

vim +133 drivers/net/virtio/xsk.c

   116  
   117  static int virtnet_xsk_pool_disable(struct net_device *dev, u16 qid)
   118  {
   119  struct virtnet_info *vi = netdev_priv(dev);
   120  struct receive_queue *rq;
   121  struct send_queue *sq;
   122  int err1, err2;
   123  
   124  if (qid >= vi->curr_queue_pairs)
   125  return -EINVAL;
   126  
   127  sq = >sq[qid];
   128  rq = >rq[qid];
   129  
   130  virtio_dma_unmap(>vdev->dev, sq->xsk.hdr_dma_address, 
vi->hdr_len,
   131   DMA_TO_DEVICE);
   132  
 > 133  xsk_pool_dma_unmap(sq->xsk.pool, 0);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v4 6/6] Driver: VMBus: Add device tree support

2023-02-08 Thread kernel test robot
Hi Saurabh,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20230207]
[cannot apply to robh/for-next tip/timers/core brgl/gpio/for-next 
wsa/i2c/for-next linus/master v6.2-rc7 v6.2-rc6 v6.2-rc5 v6.2-rc7]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Saurabh-Sengar/drivers-clocksource-hyper-v-non-ACPI-support-in-hyperv-clock/20230207-155113
patch link:
https://lore.kernel.org/r/1675756199-5917-7-git-send-email-ssengar%40linux.microsoft.com
patch subject: [PATCH v4 6/6] Driver: VMBus: Add device tree support
config: i386-randconfig-a015 
(https://download.01.org/0day-ci/archive/20230208/202302081621.odizdzhg-...@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project 
f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/b3cd029f78e9c1f5cd1633e1ffc7c5a09deae98f
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Saurabh-Sengar/drivers-clocksource-hyper-v-non-ACPI-support-in-hyperv-clock/20230207-155113
git checkout b3cd029f78e9c1f5cd1633e1ffc7c5a09deae98f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash drivers/hv/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> drivers/hv/vmbus_drv.c:2691:21: warning: attribute declaration must precede 
>> definition [-Wignored-attributes]
   static const struct __maybe_unused of_device_id vmbus_of_match[] = {
   ^
   include/linux/compiler_attributes.h:355:56: note: expanded from macro 
'__maybe_unused'
   #define __maybe_unused  __attribute__((__unused__))
  ^
   include/linux/mod_devicetable.h:268:8: note: previous definition is here
   struct of_device_id {
  ^
   1 warning generated.


vim +2691 drivers/hv/vmbus_drv.c

  2690  
> 2691  static const struct __maybe_unused of_device_id vmbus_of_match[] = {
  2692  {
  2693  .compatible = "microsoft,vmbus",
  2694  },
  2695  {
  2696  /* sentinel */
  2697  },
  2698  };
  2699  MODULE_DEVICE_TABLE(of, vmbus_of_match);
  2700  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v3 3/6] Drivers: hv: vmbus: Convert acpi_device to more generic platform_device

2023-02-06 Thread kernel test robot
Hi Saurabh,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on next-20230206]
[also build test ERROR on v6.2-rc7]
[cannot apply to robh/for-next tip/timers/core brgl/gpio/for-next 
wsa/i2c/for-next linus/master v6.2-rc7 v6.2-rc6 v6.2-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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Saurabh-Sengar/drivers-clocksource-hyper-v-non-ACPI-support-in-hyperv-clock/20230207-015625
patch link:
https://lore.kernel.org/r/1675706060-22361-4-git-send-email-ssengar%40linux.microsoft.com
patch subject: [PATCH v3 3/6] Drivers: hv: vmbus: Convert acpi_device to more 
generic platform_device
config: i386-randconfig-a006-20230206 
(https://download.01.org/0day-ci/archive/20230207/202302071303.db30hu98-...@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project 
f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/e6c8ebd27cac165137702f5ff85b14d6d0b8e820
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Saurabh-Sengar/drivers-clocksource-hyper-v-non-ACPI-support-in-hyperv-clock/20230207-015625
git checkout e6c8ebd27cac165137702f5ff85b14d6d0b8e820
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

>> drivers/hv/vmbus_drv.c:2283:1: error: non-void function does not return a 
>> value [-Werror,-Wreturn-type]
   }
   ^
   1 error generated.


vim +2283 drivers/hv/vmbus_drv.c

b0069f43fc6bc9 drivers/staging/hv/vmbus_drv.c K. Y. Srinivasan 2011-04-29  2265 
 
e6c8ebd27cac16 drivers/hv/vmbus_drv.c Saurabh Sengar   2023-02-06  2266 
 static int vmbus_mmio_remove(void)
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2267 
 {
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2268 
struct resource *cur_res;
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2269 
struct resource *next_res;
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2270 
 
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2271 
if (hyperv_mmio) {
6d146aefbaa5c5 drivers/hv/vmbus_drv.c Jake Oshins  2016-04-05  2272 
if (fb_mmio) {
6d146aefbaa5c5 drivers/hv/vmbus_drv.c Jake Oshins  2016-04-05  2273 
__release_region(hyperv_mmio, fb_mmio->start,
6d146aefbaa5c5 drivers/hv/vmbus_drv.c Jake Oshins  2016-04-05  2274 
 resource_size(fb_mmio));
6d146aefbaa5c5 drivers/hv/vmbus_drv.c Jake Oshins  2016-04-05  2275 
fb_mmio = NULL;
6d146aefbaa5c5 drivers/hv/vmbus_drv.c Jake Oshins  2016-04-05  2276 
}
6d146aefbaa5c5 drivers/hv/vmbus_drv.c Jake Oshins  2016-04-05  2277 
 
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2278 
for (cur_res = hyperv_mmio; cur_res; cur_res = next_res) {
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2279 
next_res = cur_res->sibling;
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2280 
kfree(cur_res);
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2281 
}
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2282 
}
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05 @2283 
 }
7f163a6fd957a8 drivers/hv/vmbus_drv.c Jake Oshins  2015-08-05  2284 
 

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v3 6/6] Driver: VMBus: Add device tree support

2023-02-06 Thread kernel test robot
Hi Saurabh,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on next-20230206]
[cannot apply to robh/for-next tip/timers/core brgl/gpio/for-next 
wsa/i2c/for-next linus/master v6.2-rc7 v6.2-rc6 v6.2-rc5 v6.2-rc7]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Saurabh-Sengar/drivers-clocksource-hyper-v-non-ACPI-support-in-hyperv-clock/20230207-015625
patch link:
https://lore.kernel.org/r/1675706060-22361-7-git-send-email-ssengar%40linux.microsoft.com
patch subject: [PATCH v3 6/6] Driver: VMBus: Add device tree support
config: i386-randconfig-a014-20230206 
(https://download.01.org/0day-ci/archive/20230207/202302071011.xjqofxvk-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/121473f34bab66918912399f1cfe9e06a9ea0294
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Saurabh-Sengar/drivers-clocksource-hyper-v-non-ACPI-support-in-hyperv-clock/20230207-015625
git checkout 121473f34bab66918912399f1cfe9e06a9ea0294
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/hv/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

   drivers/hv/vmbus_drv.c: In function 'vmbus_mmio_remove':
   drivers/hv/vmbus_drv.c:2285:1: error: no return statement in function 
returning non-void [-Werror=return-type]
2285 | }
 | ^
   At top level:
>> drivers/hv/vmbus_drv.c:2691:34: warning: 'vmbus_of_match' defined but not 
>> used [-Wunused-const-variable=]
2691 | static const struct of_device_id vmbus_of_match[] = {
 |  ^~
   cc1: some warnings being treated as errors


vim +/vmbus_of_match +2691 drivers/hv/vmbus_drv.c

  2690  
> 2691  static const struct of_device_id vmbus_of_match[] = {
  2692  {
  2693  .compatible = "microsoft,vmbus",
  2694  },
  2695  {
  2696  /* sentinel */
  2697  },
  2698  };
  2699  MODULE_DEVICE_TABLE(of, vmbus_of_match);
  2700  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 10/33] xsk: support virtio DMA map

2023-02-05 Thread kernel test robot
Hi Xuan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net-next/master]
[also build test ERROR on mst-vhost/linux-next linus/master v6.2-rc6 
next-20230203]
[cannot apply to net/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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707
patch link:
https://lore.kernel.org/r/20230202110058.130695-11-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH 10/33] xsk: support virtio DMA map
config: i386-debian-10.3-kvm 
(https://download.01.org/0day-ci/archive/20230206/202302060542.ixbgsikh-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/370aefebcea755f7c4c14e16f8dcb5540769fd26
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707
git checkout 370aefebcea755f7c4c14e16f8dcb5540769fd26
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 olddefconfig
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

   ld: net/xdp/xsk_buff_pool.o: in function `xp_alloc':
>> net/xdp/xsk_buff_pool.c:575: undefined reference to `is_virtio_device'
>> ld: net/xdp/xsk_buff_pool.c:576: undefined reference to 
>> `virtio_dma_sync_signle_range_for_device'
   ld: net/xdp/xsk_buff_pool.o: in function `__xp_dma_unmap':
   net/xdp/xsk_buff_pool.c:338: undefined reference to `is_virtio_device'
>> ld: net/xdp/xsk_buff_pool.c:339: undefined reference to `virtio_dma_unmap'
   ld: net/xdp/xsk_buff_pool.o: in function `xp_dma_map':
   net/xdp/xsk_buff_pool.c:443: undefined reference to `is_virtio_device'
   ld: net/xdp/xsk_buff_pool.c:443: undefined reference to 
`virtio_dma_sync_signle_range_for_device'
>> ld: net/xdp/xsk_buff_pool.c:443: undefined reference to 
>> `virtio_dma_sync_signle_range_for_cpu'
>> ld: net/xdp/xsk_buff_pool.c:458: undefined reference to `virtio_dma_map_page'
>> ld: net/xdp/xsk_buff_pool.c:461: undefined reference to 
>> `virtio_dma_mapping_error'
>> ld: net/xdp/xsk_buff_pool.c:464: undefined reference to 
>> `virtio_dma_need_sync'
>> ld: net/xdp/xsk_buff_pool.c:457: undefined reference to `is_virtio_device'


vim +575 net/xdp/xsk_buff_pool.c

   424  
   425  int xp_dma_map(struct xsk_buff_pool *pool, struct device *dev,
   426 unsigned long attrs, struct page **pages, u32 nr_pages)
   427  {
   428  struct xsk_dma_map *dma_map;
   429  dma_addr_t dma;
   430  int err;
   431  u32 i;
   432  
   433  dma_map = xp_find_dma_map(pool);
   434  if (dma_map) {
   435  err = xp_init_dma_info(pool, dma_map);
   436  if (err)
   437  return err;
   438  
   439  refcount_inc(_map->users);
   440  return 0;
   441  }
   442  
 > 443  if (is_virtio_device(dev)) {
   444  pool->dma_sync_for_cpu = 
virtio_dma_sync_signle_range_for_cpu;
   445  pool->dma_sync_for_device = 
virtio_dma_sync_signle_range_for_device;
   446  
   447  } else {
   448  pool->dma_sync_for_cpu = dma_sync_for_cpu;
   449  pool->dma_sync_for_device = dma_sync_for_device;
   450  }
   451  
   452  dma_map = xp_create_dma_map(dev, pool->netdev, nr_pages, 
pool->umem);
   453  if (!dma_map)
   454  return -ENOMEM;
   455  
   456  for (i = 0; i < dma_map->dma_pages_cnt; i++) {
 > 457  if (is_virtio_device(dev)) {
 > 458  dma = virtio_dma_map_page(dev, pages[i], 0, 
 > PAGE_SIZE,
   459DMA_BIDIRECTIONAL);
   460  
 > 461  if (virtio_dma_mapping_error(dev, dma))
   462  goto err;
   463  
 > 464  if (virtio_dma_need_sync(dev, dma))
   465  dma_map->dma_need_sync = true;
   466  
   467  } else {
   468  dma = dma_map_page_attrs(dev, pages[i], 0, 
PAGE_SIZE,
   469   DMA_BIDIRECTIONAL, 
attrs);
   470  
   471  if (dma_mapping_error(dev

Re: [PATCH 22/33] virtio_net: xsk: introduce xsk disable

2023-02-02 Thread kernel test robot
Hi Xuan,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]
[also build test WARNING on next-20230202]
[cannot apply to net/master mst-vhost/linux-next linus/master v6.2-rc6]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707
patch link:
https://lore.kernel.org/r/20230202110058.130695-23-xuanzhuo%40linux.alibaba.com
patch subject: [PATCH 22/33] virtio_net: xsk: introduce xsk disable
config: nios2-randconfig-s033-20230202 
(https://download.01.org/0day-ci/archive/20230203/202302030652.8jbkpzat-...@intel.com/config)
compiler: nios2-linux-gcc (GCC) 12.1.0
reproduce:
wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/3c385ac45368b585d2ca1a45263b4a0536cef0dd
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xuan-Zhuo/virtio_ring-virtqueue_add-support-premapped/20230202-190707
git checkout 3c385ac45368b585d2ca1a45263b4a0536cef0dd
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=nios2 
SHELL=/bin/bash drivers/net/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

sparse warnings: (new ones prefixed by >>)
>> drivers/net/virtio/xsk.c:133:35: sparse: sparse: incorrect type in argument 
>> 1 (different address spaces) @@ expected struct xsk_buff_pool *pool @@   
>>   got struct xsk_buff_pool [noderef] __rcu *pool @@
   drivers/net/virtio/xsk.c:133:35: sparse: expected struct xsk_buff_pool 
*pool
   drivers/net/virtio/xsk.c:133:35: sparse: got struct xsk_buff_pool 
[noderef] __rcu *pool

vim +133 drivers/net/virtio/xsk.c

   116  
   117  static int virtnet_xsk_pool_disable(struct net_device *dev, u16 qid)
   118  {
   119  struct virtnet_info *vi = netdev_priv(dev);
   120  struct receive_queue *rq;
   121  struct send_queue *sq;
   122  int err1, err2;
   123  
   124  if (qid >= vi->curr_queue_pairs)
   125  return -EINVAL;
   126  
   127  sq = >sq[qid];
   128  rq = >rq[qid];
   129  
   130  virtio_dma_unmap(>vdev->dev, sq->xsk.hdr_dma_address, 
vi->hdr_len,
   131   DMA_TO_DEVICE);
   132  
 > 133  xsk_pool_dma_unmap(sq->xsk.pool, 0);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


[linux-next:master] BUILD REGRESSION a54df7622717a40ddec95fd98086aff8ba7839a6

2023-01-24 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: a54df7622717a40ddec95fd98086aff8ba7839a6  Add linux-next specific 
files for 20230124

Error/Warning: (recently discovered and may have been fixed)

ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/fsl-edma.ko] 
undefined!
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/idma64.ko] 
undefined!
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_dp_training.c:1585:38: 
warning: variable 'result' set but not used [-Wunused-but-set-variable]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/block/virtio_blk.c:721:9: sparse:bad type *
drivers/block/virtio_blk.c:721:9: sparse:unsigned int *
drivers/block/virtio_blk.c:721:9: sparse: sparse: incompatible types in 
comparison expression (different base types):
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 [addressable] virtio_cread_v'
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 virtio_cread_v'
drivers/nvmem/imx-ocotp.c:599:21: sparse: sparse: symbol 'imx_ocotp_layout' was 
not declared. Should it be static?
mm/hugetlb.c:3100 alloc_hugetlb_folio() error: uninitialized symbol 'h_cg'.
net/devlink/leftover.c:7160 devlink_fmsg_prepare_skb() error: uninitialized 
symbol 'err'.

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arc-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arm-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arm-buildonly-randconfig-r005-20230123
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arm-randconfig-r014-20230123
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arm64-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- i386-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- ia64-allmodconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- microblaze-randconfig-s033-20230123
|   |-- drivers-block-virtio_blk.c:sparse:bad-type
|   |-- 
drivers-block-virtio_blk.c:sparse:sparse:incompatible-types-in-comparison-expression-(different-base-types):
|   |-- 
drivers-block-virtio_blk.c:sparse:sparse:no-generic-selection-for-restricted-__le32-addressable-virtio_cread_v
|   |-- 
drivers-block-virtio_blk.c:sparse:sparse:no-generic-selection-for-restricted-__le32-virtio_cread_v
|   |-- drivers-block-virtio_blk.c:sparse:unsigned-int
|   `-- 
drivers-nvmem-imx-ocotp.c:sparse:sparse:symbol-imx_ocotp_layout-was-not-declared.-Should-it-be-static
|-- mips-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- powerpc-allmodconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- powerpc-randconfig-s032-20230123
|   `-- 
drivers-nvmem-imx-ocotp.c:sparse:sparse:symbol-imx_ocotp_layout-was-not-declared.-Should-it-be-static
|-- s390-allmodconfig
|   |-- ERROR:devm_platform_ioremap_resource-drivers-dma-fsl-edma.ko-undefined
|   `-- ERROR:devm_platform_ioremap_resource-drivers-dma-idma64.ko-undefined
|-- s390-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- sparc-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- x86_64-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
`-- x86_64-randconfig-m001-20230123
|-- mm-hugetlb.c-alloc_hugetlb_folio()-error:uninitialized-symbol-h_cg-.
`-- 
net-devlink-leftover.c-devlink_fmsg_prepare_skb()-error:uninitialized-symbol-err-.

elapsed time: 724m

configs tested: 66
configs skipped: 3

gcc tested configs:
powerpc   allnoconfig
x86_64  defconfig
x86_64allnoconfig
x86_64   rhel-8.3
x86_64  rhel-8.3-func
um i386_defconfig
arc  randconfig-r043-20230123
x86_64rhel-8.3-kselftests
um   x86_64_defconfig
arm  randconfig-r046-20230123
arc 

[linux-next:master] BUILD REGRESSION 691781f561e9868a94c3ed7daf4adad7f8af5d16

2023-01-23 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: 691781f561e9868a94c3ed7daf4adad7f8af5d16  Add linux-next specific 
files for 20230123

Error/Warning: (recently discovered and may have been fixed)

ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/fsl-edma.ko] 
undefined!
ERROR: modpost: "devm_platform_ioremap_resource" [drivers/dma/idma64.ko] 
undefined!
drivers/gpio/gpio-zevio.c:174:40: error: invalid use of undefined type 'struct 
platform_device'
drivers/gpio/gpio-zevio.c:178:9: error: implicit declaration of function 
'platform_set_drvdata' [-Werror=implicit-function-declaration]
drivers/gpio/gpio-zevio.c:184:28: error: implicit declaration of function 
'devm_platform_ioremap_resource'; did you mean 'devm_ioremap_resource'? 
[-Werror=implicit-function-declaration]
drivers/gpio/gpio-zevio.c:211:15: error: variable 'zevio_gpio_driver' has 
initializer but incomplete type
drivers/gpio/gpio-zevio.c:211:31: error: storage size of 'zevio_gpio_driver' 
isn't known
drivers/gpio/gpio-zevio.c:212:10: error: 'struct platform_driver' has no member 
named 'driver'
drivers/gpio/gpio-zevio.c:212:27: error: extra brace group at end of initializer
drivers/gpio/gpio-zevio.c:217:10: error: 'struct platform_driver' has no member 
named 'probe'
drivers/gpio/gpio-zevio.c:219:1: error: type defaults to 'int' in declaration 
of 'builtin_platform_driver' [-Werror=implicit-int]
drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_dp_training.c:1585:38: 
warning: variable 'result' set but not used [-Wunused-but-set-variable]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/block/virtio_blk.c:721:9: sparse:bad type *
drivers/block/virtio_blk.c:721:9: sparse:unsigned int *
drivers/block/virtio_blk.c:721:9: sparse: sparse: incompatible types in 
comparison expression (different base types):
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 [addressable] virtio_cread_v'
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 virtio_cread_v'
drivers/media/i2c/max9286.c:771 max9286_s_stream() error: buffer overflow 
'priv->fmt' 4 <= 32
drivers/nvmem/imx-ocotp.c:599:21: sparse: sparse: symbol 'imx_ocotp_layout' was 
not declared. Should it be static?
mm/hugetlb.c:3100 alloc_hugetlb_folio() error: uninitialized symbol 'h_cg'.
net/devlink/leftover.c:7160 devlink_fmsg_prepare_skb() error: uninitialized 
symbol 'err'.
sound/ac97/bus.c:465:1: sparse: sparse: symbol 'dev_attr_vendor_id' was not 
declared. Should it be static?

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arc-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arc-randconfig-m031-20230123
|   `-- 
drivers-media-i2c-max9286.c-max9286_s_stream()-error:buffer-overflow-priv-fmt
|-- arm-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arm-buildonly-randconfig-r005-20230123
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- arm-randconfig-r023-20230123
|   |-- drivers-gpio-gpio-zevio.c:error:extra-brace-group-at-end-of-initializer
|   |-- 
drivers-gpio-gpio-zevio.c:error:implicit-declaration-of-function-devm_platform_ioremap_resource
|   |-- 
drivers-gpio-gpio-zevio.c:error:implicit-declaration-of-function-platform_set_drvdata
|   |-- 
drivers-gpio-gpio-zevio.c:error:invalid-use-of-undefined-type-struct-platform_device
|   |-- 
drivers-gpio-gpio-zevio.c:error:storage-size-of-zevio_gpio_driver-isn-t-known
|   |-- 
drivers-gpio-gpio-zevio.c:error:struct-platform_driver-has-no-member-named-driver
|   |-- 
drivers-gpio-gpio-zevio.c:error:struct-platform_driver-has-no-member-named-probe
|   |-- 
drivers-gpio-gpio-zevio.c:error:type-defaults-to-int-in-declaration-of-builtin_platform_driver
|   `-- 
drivers-gpio-gpio-zevio.c:error:variable-zevio_gpio_driver-has-initializer-but-incomplete-type
|-- arm64-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- csky-randconfig-s033-20230123
|   |-- 
drivers-nvmem-imx-ocotp.c:sparse:sparse:symbol-imx_ocotp_layout-was-not-declared.-Should-it-be-static
|   `-- 
sound-ac97-bus.c:sparse:sparse:symbol-dev_attr_vendor_id-was-not-declared.-Should-it-be-static
|-- i386-allyesconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- ia64-allmodconfig
|   `-- 
drivers-gpu-drm-amd-amdgpu-..-display-dc-link-link_dp_training.c:warning:variable-result-set-but-not-used
|-- ia64-allyesconfig
|   `-- 

Re: [PATCH 2/2] virtio-rng: add sysfs entries for leak detection

2023-01-19 Thread kernel test robot
Hi Babis,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus 
linus/master v6.2-rc4 next-20230119]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
patch link:
https://lore.kernel.org/r/20230119184349.74072-3-bchalios%40amazon.es
patch subject: [PATCH 2/2] virtio-rng: add sysfs entries for leak detection
config: x86_64-randconfig-s021 
(https://download.01.org/0day-ci/archive/20230120/202301201004.z1grttwb-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/2a801d93b822e4cb293a173e2053870cb2d1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
git checkout 2a801d93b822e4cb293a173e2053870cb2d1
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 olddefconfig
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 SHELL=/bin/bash drivers/char/hw_random/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

sparse warnings: (new ones prefixed by >>)
>> drivers/char/hw_random/virtio-rng.c:61:9: sparse: sparse: symbol 
>> 'virtrng_sysfs_read' was not declared. Should it be static?
>> drivers/char/hw_random/virtio-rng.c:76:5: sparse: sparse: symbol 
>> 'virtrng_sysfs_mmap' was not declared. Should it be static?
   drivers/char/hw_random/virtio-rng.c:106:5: sparse: sparse: symbol 
'add_fill_on_leak_request' was not declared. Should it be static?
   drivers/char/hw_random/virtio-rng.c:120:5: sparse: sparse: symbol 
'virtrng_fill_on_leak' was not declared. Should it be static?
   drivers/char/hw_random/virtio-rng.c:141:5: sparse: sparse: symbol 
'add_copy_on_leak_request' was not declared. Should it be static?
   drivers/char/hw_random/virtio-rng.c:160:5: sparse: sparse: symbol 
'virtrng_copy_on_leak' was not declared. Should it be static?

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 1/2] virtio-rng: implement entropy leak feature

2023-01-19 Thread kernel test robot
Hi Babis,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus 
linus/master v6.2-rc4 next-20230119]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
patch link:
https://lore.kernel.org/r/20230119184349.74072-2-bchalios%40amazon.es
patch subject: [PATCH 1/2] virtio-rng: implement entropy leak feature
config: x86_64-randconfig-s021 
(https://download.01.org/0day-ci/archive/20230120/202301200941.fe9qkye3-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/686114cbba5005584d458ad44164b4a4b88135f5
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
git checkout 686114cbba5005584d458ad44164b4a4b88135f5
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 olddefconfig
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=x86_64 SHELL=/bin/bash drivers/char/hw_random/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

sparse warnings: (new ones prefixed by >>)
>> drivers/char/hw_random/virtio-rng.c:59:5: sparse: sparse: symbol 
>> 'add_fill_on_leak_request' was not declared. Should it be static?
>> drivers/char/hw_random/virtio-rng.c:73:5: sparse: sparse: symbol 
>> 'virtrng_fill_on_leak' was not declared. Should it be static?
>> drivers/char/hw_random/virtio-rng.c:94:5: sparse: sparse: symbol 
>> 'add_copy_on_leak_request' was not declared. Should it be static?
>> drivers/char/hw_random/virtio-rng.c:113:5: sparse: sparse: symbol 
>> 'virtrng_copy_on_leak' was not declared. Should it be static?

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 2/2] virtio-rng: add sysfs entries for leak detection

2023-01-19 Thread kernel test robot
Hi Babis,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus 
linus/master v6.2-rc4 next-20230119]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
patch link:
https://lore.kernel.org/r/20230119184349.74072-3-bchalios%40amazon.es
patch subject: [PATCH 2/2] virtio-rng: add sysfs entries for leak detection
config: ia64-randconfig-r023-20230119 
(https://download.01.org/0day-ci/archive/20230120/202301200622.6x78gcs0-...@intel.com/config)
compiler: ia64-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/2a801d93b822e4cb293a173e2053870cb2d1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
git checkout 2a801d93b822e4cb293a173e2053870cb2d1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=ia64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/char/hw_random/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

   drivers/char/hw_random/virtio-rng.c:61:9: warning: no previous prototype for 
'virtrng_sysfs_read' [-Wmissing-prototypes]
  61 | ssize_t virtrng_sysfs_read(struct file *filep, struct kobject *kobj,
 | ^~
   drivers/char/hw_random/virtio-rng.c:76:5: warning: no previous prototype for 
'virtrng_sysfs_mmap' [-Wmissing-prototypes]
  76 | int virtrng_sysfs_mmap(struct file *filep, struct kobject *kobj,
 | ^~
   drivers/char/hw_random/virtio-rng.c:106:5: warning: no previous prototype 
for 'add_fill_on_leak_request' [-Wmissing-prototypes]
 106 | int add_fill_on_leak_request(struct virtrng_info *vi, struct 
virtqueue *vq, void *data, size_t len)
 | ^~~~
   drivers/char/hw_random/virtio-rng.c:120:5: warning: no previous prototype 
for 'virtrng_fill_on_leak' [-Wmissing-prototypes]
 120 | int virtrng_fill_on_leak(struct virtrng_info *vi, void *data, size_t 
len)
 | ^~~~
   drivers/char/hw_random/virtio-rng.c:141:5: warning: no previous prototype 
for 'add_copy_on_leak_request' [-Wmissing-prototypes]
 141 | int add_copy_on_leak_request(struct virtrng_info *vi, struct 
virtqueue *vq,
 | ^~~~
   drivers/char/hw_random/virtio-rng.c:160:5: warning: no previous prototype 
for 'virtrng_copy_on_leak' [-Wmissing-prototypes]
 160 | int virtrng_copy_on_leak(struct virtrng_info *vi, void *to, void 
*from, size_t len)
 | ^~~~
   In file included from include/linux/device/driver.h:21,
from include/linux/device.h:32,
from include/linux/virtio.h:9,
from drivers/char/hw_random/virtio-rng.c:15:
   include/linux/module.h:130:49: error: redefinition of '__inittest'
 130 | static inline initcall_t __maybe_unused __inittest(void) 
   \
 | ^~
   include/linux/device/driver.h:267:1: note: in expansion of macro 
'module_init'
 267 | module_init(__driver##_init); \
 | ^~~
   include/linux/virtio.h:207:9: note: in expansion of macro 'module_driver'
 207 | module_driver(__virtio_driver, register_virtio_driver, \
 | ^
   drivers/char/hw_random/virtio-rng.c:609:1: note: in expansion of macro 
'module_virtio_driver'
 609 | module_virtio_driver(virtio_rng_driver);
 | ^~~~
   include/linux/module.h:130:49: note: previous definition of '__inittest' 
with type 'int (*(void))(void)'
 130 | static inline initcall_t __maybe_unused __inittest(void) 
   \
 | ^~
   drivers/char/hw_random/virtio-rng.c:605:1: note: in expansion of macro 
'module_init'
 605 | module_init(virtio_rng_init);
 | ^~~
   include/linux/module.h:132:13: error: redefinition of 'init_module'
 132 | int init_module(void)

Re: [PATCH 2/2] virtio-rng: add sysfs entries for leak detection

2023-01-19 Thread kernel test robot
Hi Babis,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus 
linus/master v6.2-rc4 next-20230119]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
patch link:
https://lore.kernel.org/r/20230119184349.74072-3-bchalios%40amazon.es
patch subject: [PATCH 2/2] virtio-rng: add sysfs entries for leak detection
config: m68k-allyesconfig 
(https://download.01.org/0day-ci/archive/20230120/202301200640.csblwtsa-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/2a801d93b822e4cb293a173e2053870cb2d1
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
git checkout 2a801d93b822e4cb293a173e2053870cb2d1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k SHELL=/bin/bash drivers/char/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> drivers/char/hw_random/virtio-rng.c:61:9: warning: no previous prototype for 
>> 'virtrng_sysfs_read' [-Wmissing-prototypes]
  61 | ssize_t virtrng_sysfs_read(struct file *filep, struct kobject *kobj,
 | ^~
>> drivers/char/hw_random/virtio-rng.c:76:5: warning: no previous prototype for 
>> 'virtrng_sysfs_mmap' [-Wmissing-prototypes]
  76 | int virtrng_sysfs_mmap(struct file *filep, struct kobject *kobj,
 | ^~
   drivers/char/hw_random/virtio-rng.c:106:5: warning: no previous prototype 
for 'add_fill_on_leak_request' [-Wmissing-prototypes]
 106 | int add_fill_on_leak_request(struct virtrng_info *vi, struct 
virtqueue *vq, void *data, size_t len)
 | ^~~~
   drivers/char/hw_random/virtio-rng.c:120:5: warning: no previous prototype 
for 'virtrng_fill_on_leak' [-Wmissing-prototypes]
 120 | int virtrng_fill_on_leak(struct virtrng_info *vi, void *data, size_t 
len)
 | ^~~~
   drivers/char/hw_random/virtio-rng.c:141:5: warning: no previous prototype 
for 'add_copy_on_leak_request' [-Wmissing-prototypes]
 141 | int add_copy_on_leak_request(struct virtrng_info *vi, struct 
virtqueue *vq,
 | ^~~~
   drivers/char/hw_random/virtio-rng.c:160:5: warning: no previous prototype 
for 'virtrng_copy_on_leak' [-Wmissing-prototypes]
 160 | int virtrng_copy_on_leak(struct virtrng_info *vi, void *to, void 
*from, size_t len)
 | ^~~~


vim +/virtrng_sysfs_read +61 drivers/char/hw_random/virtio-rng.c

59  
60  #ifdef CONFIG_SYSFS
  > 61  ssize_t virtrng_sysfs_read(struct file *filep, struct kobject *kobj,
62  struct bin_attribute *attr, char *buf, loff_t pos, 
size_t len)
63  {
64  struct virtrng_info *vi = attr->private;
65  unsigned long gen_counter = *(unsigned long *)vi->map_buffer;
66  
67  if (!len)
68  return 0;
69  
70  len = min(len, sizeof(gen_counter));
71  memcpy(buf, _counter, len);
72  
73  return len;
74  }
75  
  > 76  int virtrng_sysfs_mmap(struct file *filep, struct kobject *kobj,
77  struct bin_attribute *attr, struct vm_area_struct *vma)
78  {
79  struct virtrng_info *vi = attr->private;
80  
81  if (vma->vm_pgoff || vma_pages(vma) > 1)
82  return -EINVAL;
83  
84  if (vma->vm_flags & VM_WRITE)
85  return -EPERM;
86  
87  vma->vm_flags |= VM_DONTEXPAND;
88  vma->vm_flags &= ~VM_MAYWRITE;
89  
90  return vm_insert_page(vma, vma->vm_start, 
virt_to_page(vi->map_buffer));
91  }
92  #endif
93  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 1/2] virtio-rng: implement entropy leak feature

2023-01-19 Thread kernel test robot
Hi Babis,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on char-misc/char-misc-next char-misc/char-misc-linus 
linus/master v6.2-rc4 next-20230119]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
patch link:
https://lore.kernel.org/r/20230119184349.74072-2-bchalios%40amazon.es
patch subject: [PATCH 1/2] virtio-rng: implement entropy leak feature
config: parisc-allyesconfig 
(https://download.01.org/0day-ci/archive/20230120/202301200407.n4urhgeq-...@intel.com/config)
compiler: hppa-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/686114cbba5005584d458ad44164b4a4b88135f5
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Babis-Chalios/virtio-rng-implement-entropy-leak-feature/20230120-024631
git checkout 686114cbba5005584d458ad44164b4a4b88135f5
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=parisc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=parisc SHELL=/bin/bash drivers/char/hw_random/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

   In file included from include/linux/err.h:8,
from drivers/char/hw_random/virtio-rng.c:8:
>> arch/parisc/include/uapi/asm/errno.h:7: warning: "ENOMSG" redefined
   7 | #define ENOMSG  35  /* No message of desired type */
 | 
   In file included from drivers/char/hw_random/virtio-rng.c:7:
   include/uapi/asm-generic/errno.h:23: note: this is the location of the 
previous definition
  23 | #define ENOMSG  42  /* No message of desired type */
 | 
>> arch/parisc/include/uapi/asm/errno.h:8: warning: "EIDRM" redefined
   8 | #define EIDRM   36  /* Identifier removed */
 | 
   include/uapi/asm-generic/errno.h:24: note: this is the location of the 
previous definition
  24 | #define EIDRM   43  /* Identifier removed */
 | 
>> arch/parisc/include/uapi/asm/errno.h:9: warning: "ECHRNG" redefined
   9 | #define ECHRNG  37  /* Channel number out of range */
 | 
   include/uapi/asm-generic/errno.h:25: note: this is the location of the 
previous definition
  25 | #define ECHRNG  44  /* Channel number out of range */
 | 
>> arch/parisc/include/uapi/asm/errno.h:10: warning: "EL2NSYNC" redefined
  10 | #define EL2NSYNC38  /* Level 2 not synchronized */
 | 
   include/uapi/asm-generic/errno.h:26: note: this is the location of the 
previous definition
  26 | #define EL2NSYNC45  /* Level 2 not synchronized */
 | 
>> arch/parisc/include/uapi/asm/errno.h:11: warning: "EL3HLT" redefined
  11 | #define EL3HLT  39  /* Level 3 halted */
 | 
   include/uapi/asm-generic/errno.h:27: note: this is the location of the 
previous definition
  27 | #define EL3HLT  46  /* Level 3 halted */
 | 
>> arch/parisc/include/uapi/asm/errno.h:12: warning: "EL3RST" redefined
  12 | #define EL3RST  40  /* Level 3 reset */
 | 
   include/uapi/asm-generic/errno.h:28: note: this is the location of the 
previous definition
  28 | #define EL3RST  47  /* Level 3 reset */
 | 
>> arch/parisc/include/uapi/asm/errno.h:13: warning: "ELNRNG" redefined
  13 | #define ELNRNG  41  /* Link number out of range */
 | 
   include/uapi/asm-generic/errno.h:29: note: this is the location of the 
previous definition
  29 | #define ELNRNG  48  /* Link number out of range */
 | 
>> arch/parisc/include/uapi/asm/errno.h:14: warning: "EUNATCH" redefined
  14 | #define EUNATCH 42  /* Protocol driver not attached */
 | 
   include/uapi/asm-generic/errno.h:30: note: this is the location of the 
previous definition
  30 | #define EUNATCH 49  /* Protocol driver not attached */
 | 
>> arch/parisc/include/uapi/asm/errno.h:15: warning: "ENOCSI" redefined
  15 | #d

[linux-next:master] BUILD REGRESSION f3381a7baf5ccbd091eb2c4fd2afd84266fcef24

2023-01-18 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: f3381a7baf5ccbd091eb2c4fd2afd84266fcef24  Add linux-next specific 
files for 20230118

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202301171511.4zszviyp-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

Documentation/mm/unevictable-lru.rst:186: WARNING: Title underline too short.
Error: failed to load BTF from vmlinux: No data available
drivers/scsi/qla2xxx/qla_mid.c:1094:51: warning: format '%ld' expects argument 
of type 'long int', but argument 5 has type 'unsigned int' [-Wformat=]
drivers/scsi/qla2xxx/qla_mid.c:1189:6: warning: no previous prototype for 
'qla_trim_buf' [-Wmissing-prototypes]
drivers/scsi/qla2xxx/qla_mid.c:1221:6: warning: no previous prototype for 
'__qla_adjust_buf' [-Wmissing-prototypes]
libbpf: failed to find '.BTF' ELF section in vmlinux

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/block/virtio_blk.c:721:9: sparse:bad type *
drivers/block/virtio_blk.c:721:9: sparse:unsigned int *
drivers/block/virtio_blk.c:721:9: sparse: sparse: incompatible types in 
comparison expression (different base types):
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 [addressable] virtio_cread_v'
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 virtio_cread_v'
drivers/nvmem/imx-ocotp.c:599:21: sparse: sparse: symbol 'imx_ocotp_layout' was 
not declared. Should it be static?
fs/verity/enable.c:29:2: warning: Null pointer passed as 1st argument to memory 
set function [clang-analyzer-unix.cstring.NullArg]

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- arc-allyesconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:format-ld-expects-argument-of-type-long-int-but-argument-has-type-unsigned-int
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- arm-allyesconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:format-ld-expects-argument-of-type-long-int-but-argument-has-type-unsigned-int
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- arm64-allyesconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- csky-randconfig-s051-20230115
|   `-- 
drivers-nvmem-imx-ocotp.c:sparse:sparse:symbol-imx_ocotp_layout-was-not-declared.-Should-it-be-static
|-- i386-allyesconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:format-ld-expects-argument-of-type-long-int-but-argument-has-type-unsigned-int
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- ia64-allmodconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- ia64-buildonly-randconfig-r002-20230117
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- loongarch-randconfig-r035-20230116
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- mips-allyesconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:format-ld-expects-argument-of-type-long-int-but-argument-has-type-unsigned-int
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- powerpc-allmodconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:format-ld-expects-argument-of-type-long-int-but-argument-has-type-unsigned-int
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- s390-allyesconfig
|   |-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-__qla_adjust_buf
|   `-- 
drivers-scsi-qla2xxx-qla_mid.c:warning:no-previous-prototype-for-qla_trim_buf
|-- s390-randconfig-s052-20230115
|   |-- drivers-block-virtio_blk.c:sparse:bad-type
|   |-- 

[linux-next:master] BUILD REGRESSION c76083fac3bae1a87ae3d005b5cb1cbc761e31d5

2022-12-26 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: c76083fac3bae1a87ae3d005b5cb1cbc761e31d5  Add linux-next specific 
files for 20221226

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202212020520.0okmino3-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212041528.4tbql9ys-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212051759.cev6fyhy-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212061455.6ge7y0jg-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212080938.rhvtvwt0-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212090509.njal9tbo-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212242239.hwulgmm0-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212250859.uljfpjy3-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

ERROR: modpost: "input_ff_create_memless" [drivers/hid/hid-betopff.ko] 
undefined!
ERROR: modpost: "input_ff_create_memless" [drivers/hid/hid-logitech.ko] 
undefined!
ERROR: modpost: "input_ff_create_memless" [drivers/hid/hid-megaworld.ko] 
undefined!
ERROR: modpost: "input_ff_create_memless" [drivers/hid/hid-mf.ko] undefined!
ERROR: modpost: "input_ff_create_memless" [drivers/input/misc/drv260x.ko] 
undefined!
ERROR: modpost: "input_ff_create_memless" [drivers/input/misc/drv2665.ko] 
undefined!
ERROR: modpost: "input_ff_create_memless" [drivers/input/misc/gpio-vibra.ko] 
undefined!
ERROR: modpost: "input_ff_create_memless" 
[drivers/input/misc/regulator-haptic.ko] undefined!
ERROR: modpost: "input_ff_create_memless" [drivers/input/misc/sc27xx-vibra.ko] 
undefined!
aarch64-linux-ld: ID map text too big or misaligned
arch/arm/kernel/entry-armv.S:485:5: warning: "CONFIG_ARM_THUMB" is not defined, 
evaluates to 0 [-Wundef]
arch/arm64/include/asm/pgtable-hwdef.h:82:64: warning: "PMD_SHIFT" is not 
defined, evaluates to 0 [-Wundef]
arch/loongarch/kernel/asm-offsets.c:265:6: warning: no previous prototype for 
'output_pbe_defines' [-Wmissing-prototypes]
drivers/regulator/tps65219-regulator.c:310:32: warning: parameter 'dev' set but 
not used [-Wunused-but-set-parameter]
drivers/regulator/tps65219-regulator.c:310:60: warning: parameter 'dev' set but 
not used [-Wunused-but-set-parameter]
drivers/regulator/tps65219-regulator.c:370:26: sparse:int
drivers/regulator/tps65219-regulator.c:370:26: sparse:struct regulator_dev 
*[assigned] rdev
drivers/regulator/tps65219-regulator.c:370:26: warning: ordered comparison of 
pointer with integer zero [-Wextra]
loongarch64-linux-ld: sleep.c:(.text+0x22c): undefined reference to 
`loongarch_wakeup_start'
sleep.c:(.text+0x228): undefined reference to `loongarch_wakeup_start'

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/accessibility/speakup/main.c:1290:26: sparse: sparse: obsolete array 
initializer, use C99 syntax
drivers/block/null_blk/zoned.c:769 zone_cond_store() warn: potential spectre 
issue 'dev->zones' [w] (local cap)
drivers/block/virtio_blk.c:721:9: sparse:bad type *
drivers/block/virtio_blk.c:721:9: sparse:unsigned int *
drivers/block/virtio_blk.c:721:9: sparse: sparse: incompatible types in 
comparison expression (different base types):
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 [addressable] virtio_cread_v'
drivers/block/virtio_blk.c:721:9: sparse: sparse: no generic selection for 
'restricted __le32 virtio_cread_v'
drivers/cxl/core/mbox.c:832:18: sparse: sparse: cast from non-scalar
drivers/cxl/core/mbox.c:832:18: sparse: sparse: cast to non-scalar
drivers/i2c/busses/i2c-qcom-geni.c:1028:28: sparse: sparse: symbol 
'i2c_master_hub' was not declared. Should it be static?
drivers/iio/adc/twl6030-gpadc.c:955:16-23: duplicated argument to & or |
drivers/iio/light/tsl2563.c:751:8-33: WARNING: Threaded IRQ with no primary 
handler requested without IRQF_ONESHOT (unless it is nested IRQ)
drivers/media/platform/ti/davinci/vpif.c:483:20: sparse: sparse: cast from 
non-scalar
drivers/media/platform/ti/davinci/vpif.c:483:20: sparse: sparse: cast to 
non-scalar
drivers/media/test-drivers/visl/visl-video.c:690:22: sparse: sparse: symbol 
'visl_qops' was not declared. Should it be static?
fs/exfat/dir.c:862 exfat_get_dentry_set() warn: missing unwind goto?
fs/xfs/xfs_iomap.c:86:29: sparse: sparse: symbol 'xfs_iomap_page_ops' was not 
declared. Should it be static?

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- arc-allyesconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- arc-randconfig-r024-20221225
|   |-- 

[linux-next:master] BUILD REGRESSION e45fb347b630ee76482fe938ba76cf8eab811290

2022-12-20 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: e45fb347b630ee76482fe938ba76cf8eab811290  Add linux-next specific 
files for 20221220

Error/Warning reports:

https://lore.kernel.org/oe-kbuild-all/202211242120.mzzvguln-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212020520.0okmino3-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212040713.rvney9e8-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212061455.6ge7y0jg-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212090509.njal9tbo-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212191708.xk9ybj52-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212201859.qugugk1f-...@intel.com
https://lore.kernel.org/oe-kbuild-all/202212202020.ql8aaqu0-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

Documentation/gpu/drm-internals:179: ./include/drm/drm_file.h:411: WARNING: 
undefined label: drm_accel_node (if the link has no caption the label must 
precede a section header)
Documentation/networking/devlink/etas_es58x.rst: WARNING: document isn't 
included in any toctree
Warning: tools/power/cpupower/man/cpupower-powercap-info.1 references a file 
that doesn't exist: Documentation/power/powercap/powercap.txt
arch/arm/kernel/entry-armv.S:485:5: warning: "CONFIG_ARM_THUMB" is not defined, 
evaluates to 0 [-Wundef]
arch/loongarch/kernel/asm-offsets.c:265:6: warning: no previous prototype for 
'output_pbe_defines' [-Wmissing-prototypes]
arch/powerpc/kernel/kvm_emul.o: warning: objtool: kvm_template_end(): can't 
find starting instruction
arch/powerpc/kernel/optprobes_head.o: warning: objtool: 
optprobe_template_end(): can't find starting instruction
drivers/regulator/tps65219-regulator.c:310:32: warning: parameter 'dev' set but 
not used [-Wunused-but-set-parameter]
drivers/regulator/tps65219-regulator.c:310:60: warning: parameter 'dev' set but 
not used [-Wunused-but-set-parameter]
drivers/regulator/tps65219-regulator.c:370:26: warning: ordered comparison of 
pointer with integer zero [-Wextra]
lib/dhry_run.c:61:6: warning: variable 'ret' is used uninitialized whenever 
'if' condition is false [-Wsometimes-uninitialized]
mm/memfd.c:274:31: warning: unused variable 'ns' [-Wunused-variable]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

drivers/accessibility/speakup/main.c:1290:26: sparse: sparse: obsolete array 
initializer, use C99 syntax
drivers/cxl/core/mbox.c:832:18: sparse: sparse: cast from non-scalar
drivers/cxl/core/mbox.c:832:18: sparse: sparse: cast to non-scalar
drivers/i2c/busses/i2c-qcom-geni.c:1028:28: sparse: sparse: symbol 
'i2c_master_hub' was not declared. Should it be static?
drivers/media/platform/ti/davinci/vpif.c:483:20: sparse: sparse: cast from 
non-scalar
drivers/media/platform/ti/davinci/vpif.c:483:20: sparse: sparse: cast to 
non-scalar
fs/xfs/xfs_iomap.c:86:29: sparse: sparse: symbol 'xfs_iomap_page_ops' was not 
declared. Should it be static?

Error/Warning ids grouped by kconfigs:

gcc_recent_errors
|-- alpha-allyesconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- arc-allyesconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- arm-allyesconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- arm-buildonly-randconfig-r005-20221219
|   `-- 
arch-arm-kernel-entry-armv.S:warning:CONFIG_ARM_THUMB-is-not-defined-evaluates-to
|-- arm64-allyesconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- i386-allyesconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- i386-buildonly-randconfig-r001-20221219
|   `-- mm-memfd.c:warning:unused-variable-ns
|-- ia64-allmodconfig
|   |-- 
drivers-regulator-tps65219-regulator.c:warning:ordered-comparison-of-pointer-with-integer-zero
|   `-- 
drivers-regulator-tps65219-regulator.c:warning:parameter-dev-set-but-not-used
|-- loongarch-allyesconfig
|   `-- 
arch-loongarch-kernel-asm-offsets.c:warning:no-previous-prototype-for-output_pbe_defines
|-- loongarch-randconfig-s051-20221218
|   |-- 
drivers-i2c-busses-i2c-qcom-geni.c:sparse:sparse:symbol-i2c_master_hub-was-not-declared.-Should-it-be-static
|   `-- 
fs-xfs-xfs_iomap.c:sparse:sparse:symbol-xfs_iomap_page_ops-was-not-declared.-Should-it-be-static
|-- m68k-allmodconfig
|   |-- 

Re: [PATCH v9 08/11] drm/shmem-helper: Add memory shrinker

2022-11-23 Thread kernel test robot
Hi Dmitry,

I love your patch! Yet something to improve:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on drm/drm-next drm-intel/for-linux-next 
drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.1-rc6 
next-20221123]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Dmitry-Osipenko/Add-generic-memory-shrinker-to-VirtIO-GPU-and-Panfrost-DRM-drivers/20221123-110311
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:
https://lore.kernel.org/r/20221123025723.695075-9-dmitry.osipenko%40collabora.com
patch subject: [PATCH v9 08/11] drm/shmem-helper: Add memory shrinker
config: i386-randconfig-a011-20221121
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/4d7633f927549bfafb6eb67252f608ba0576e156
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Dmitry-Osipenko/Add-generic-memory-shrinker-to-VirtIO-GPU-and-Panfrost-DRM-drivers/20221123-110311
git checkout 4d7633f927549bfafb6eb67252f608ba0576e156
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "drm_gem_object_evict" [drivers/gpu/drm/drm_shmem_helper.ko] 
>> undefined!

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 6.1.0-rc2 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc-11 (Debian 11.3.0-8) 11.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110300
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23900
CONFIG_LD_IS_BFD=y
CONFIG_LD_VERSION=23900
CONFIG_LLD_VERSION=0
CONFIG_CC_CAN_LINK=y
CONFIG_CC_CAN_LINK_STATIC=y
CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_PAHOLE_VERSION=123
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_TABLE_SORT=y
CONFIG_THREAD_INFO_IN_TASK=y

#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set
# CONFIG_UAPI_HEADER_TEST is not set
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_BUILD_SALT=""
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_HAVE_KERNEL_ZSTD=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
CONFIG_KERNEL_LZMA=y
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not set
CONFIG_DEFAULT_INIT=""
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
# CONFIG_POSIX_MQUEUE is not set
CONFIG_WATCH_QUEUE=y
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_USELIB=y
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_INJECTION=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_SIM=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y
CONFIG_GENERIC_IRQ_RESERVATION_MODE=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_GENERIC_IRQ_DEBUGFS=y
# end of IRQ subsystem

CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_INIT=y
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=y
CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
# end of Timers subsystem

CONFIG_BPF=y
CONFIG_HAVE_EBPF_JIT=y

#
# BPF subsystem
#
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_JIT=y
# CONFIG_BPF_JIT_ALWAYS_ON is not set
# CONFIG_BPF_UNPRIV_DEFAULT_OFF is not set
CONFIG_USERMODE_DRIVER=y
CONFIG_BPF_PRELOAD=y
CONFIG_BPF_PRELOAD_UMD=y
# CONFIG_BPF_LSM is not set
# end of BPF subsystem

CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_PREEMPT_COUNT=y
# CONFIG_PREEMPT_DYNAMIC is not set

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_PSI i

[mst-vhost:vhost 11/19] include/linux/stddef.h:8:14: error: called object is not a function or function pointer

2022-10-07 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   0613363a73cff31ebfbb0b13a6522b13d68c3a66
commit: 5d300519d4977317e70c62031c4b2cf282a42710 [11/19] virtio_pci: use common 
helper to configure SR-IOV
config: m68k-randconfig-r024-20221005
compiler: m68k-linux-gcc (GCC) 12.1.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/mst/vhost.git/commit/?id=5d300519d4977317e70c62031c4b2cf282a42710
git remote add mst-vhost 
https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
git fetch --no-tags mst-vhost vhost
git checkout 5d300519d4977317e70c62031c4b2cf282a42710
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

   In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/m68k/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:254,
from include/linux/build_bug.h:5,
from include/linux/container_of.h:5,
from include/linux/list.h:5,
from include/linux/module.h:12,
from drivers/virtio/virtio_pci_common.h:19,
from drivers/virtio/virtio_pci_common.c:17:
   drivers/virtio/virtio_pci_common.c: In function 'virtio_pci_sriov_configure':
>> include/linux/stddef.h:8:14: error: called object is not a function or 
>> function pointer
   8 | #define NULL ((void *)0)
 |  ^
   include/linux/pci.h:2231:41: note: in expansion of macro 'NULL'
2231 | #define pci_sriov_configure_simple  NULL
 | ^~~~
   drivers/virtio/virtio_pci_common.c:617:16: note: in expansion of macro 
'pci_sriov_configure_simple'
 617 | return pci_sriov_configure_simple(pci_dev, num_vfs);
 |^~
   drivers/virtio/virtio_pci_common.c:618:1: error: control reaches end of 
non-void function [-Werror=return-type]
 618 | }
 | ^
   cc1: some warnings being treated as errors


vim +8 include/linux/stddef.h

^1da177e4c3f41 Linus Torvalds   2005-04-16  6  
^1da177e4c3f41 Linus Torvalds   2005-04-16  7  #undef NULL
^1da177e4c3f41 Linus Torvalds   2005-04-16 @8  #define NULL ((void *)0)
6e218287432472 Richard Knutsson 2006-09-30  9  

:: The code at line 8 was first introduced by commit
:: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:: TO: Linus Torvalds 
:: CC: Linus Torvalds 

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
#
# Automatically generated file; DO NOT EDIT.
# Linux/m68k 6.0.0 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="m68k-linux-gcc (GCC) 12.1.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120100
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23800
CONFIG_LD_IS_BFD=y
CONFIG_LD_VERSION=23800
CONFIG_LLD_VERSION=0
CONFIG_CC_HAS_ASM_INLINE=y
CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y
CONFIG_PAHOLE_VERSION=123
CONFIG_IRQ_WORK=y

#
# General setup
#
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_COMPILE_TEST=y
# CONFIG_WERROR is not set
CONFIG_LOCALVERSION=""
CONFIG_BUILD_SALT=""
CONFIG_DEFAULT_INIT=""
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
# CONFIG_WATCH_QUEUE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
CONFIG_USELIB=y
# CONFIG_AUDIT is not set

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_SIM=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem

CONFIG_LEGACY_TIMER_TICK=y
CONFIG_TIME_KUNIT_TEST=y
CONFIG_CONTEXT_TRACKING=y
CONFIG_CONTEXT_TRACKING_IDLE=y
CONFIG_BPF=y

#
# BPF subsystem
#
CONFIG_BPF_SYSCALL=y
CONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# end of BPF subsystem

CONFIG_PREEMPT_BUILD=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_COUNT=y
CONFIG_PREEMPTION=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_TASKSTATS=y
# CONFIG_TASK_DELAY_ACCT is not set
# CONFIG_TASK_XACCT is not set
CONFIG_PSI=y
CONFIG_PSI_DEFAULT_DISABLED=y
# end of CPU/Task time and sta

Re: [PATCH] virtiofs: Drop unnecessary initialization in send_forget_request and virtio_fs_get_tree

2022-09-06 Thread kernel test robot
Hi Deming,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on v6.0-rc4]
[also build test WARNING on linus/master next-20220901]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Deming-Wang/virtiofs-Drop-unnecessary-initialization-in-send_forget_request-and-virtio_fs_get_tree/20220906-135058
base:7e18e42e4b280c85b76967a9106a13ca61c16179
config: hexagon-randconfig-r035-20220906 
(https://download.01.org/0day-ci/archive/20220906/202209061738.epufa2ef-...@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 
c55b41d5199d2394dd6cdb8f52180d8b81d809d4)
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/intel-lab-lkp/linux/commit/a61f879fdb56490afddb6ddea4a9d57226f339f3
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Deming-Wang/virtiofs-Drop-unnecessary-initialization-in-send_forget_request-and-virtio_fs_get_tree/20220906-135058
git checkout a61f879fdb56490afddb6ddea4a9d57226f339f3
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=hexagon SHELL=/bin/bash fs/fuse/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> fs/fuse/virtio_fs.c:422:2: warning: variable 'ret' is used uninitialized 
>> whenever 'if' condition is true [-Wsometimes-uninitialized]
   if (!fsvq->connected) {
   ^
   include/linux/compiler.h:56:28: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
  ^~~
   include/linux/compiler.h:58:30: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : 
__trace_if_value(cond))

^~
   fs/fuse/virtio_fs.c:465:9: note: uninitialized use occurs here
   return ret;
  ^~~
   fs/fuse/virtio_fs.c:422:2: note: remove the 'if' if its condition is always 
false
   if (!fsvq->connected) {
   ^~~
   include/linux/compiler.h:56:23: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
 ^
   fs/fuse/virtio_fs.c:417:9: note: initialize the variable 'ret' to silence 
this warning
   int ret;
  ^
   = 0
>> fs/fuse/virtio_fs.c:1433:2: warning: variable 'err' is used uninitialized 
>> whenever 'if' condition is true [-Wsometimes-uninitialized]
   if (WARN_ON(virtqueue_size <= FUSE_HEADER_OVERHEAD))
   ^~~~
   include/linux/compiler.h:56:28: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
  ^~~
   include/linux/compiler.h:58:30: note: expanded from macro '__trace_if_var'
   #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : 
__trace_if_value(cond))

^~
   fs/fuse/virtio_fs.c:1481:9: note: uninitialized use occurs here
   return err;
  ^~~
   fs/fuse/virtio_fs.c:1433:2: note: remove the 'if' if its condition is always 
false
   if (WARN_ON(virtqueue_size <= FUSE_HEADER_OVERHEAD))
   ^~~~
   include/linux/compiler.h:56:23: note: expanded from macro 'if'
   #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
 ^
   fs/fuse/virtio_fs.c:1420:9: note: initialize the variable 'err' to silence 
this warning
   int err;
  ^
   = 0
   2 warnings generated.


vim +422 fs/fuse/virtio_fs.c

a62a8ef9d97da2 Stefan Hajnoczi 2018-06-12  406  
58ada94f95f71d Vivek Goyal 2019-10-30  407  /*
58ada94f95f71d Vivek Goyal 2019-10-30  408   * Returns 1 if queue is full 
and sender should wait a bit before sending
58ada94f95f71d Vivek Goyal 2019-10-30  409   * next request, 0 otherwise.
58ada94f95f71d Vivek Goyal 2019-10-30  410   */
58ada94f95f71d Vivek Goyal 2019-10-30  411  static int 
send_forget_request(struct virti

Re: [PATCH v2 4/4] drivers: virtio: balloon - update inflated memory

2022-08-16 Thread kernel test robot
Hi Alexander,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on powerpc/next]
[also build test ERROR on char-misc/char-misc-testing linus/master v6.0-rc1 
next-20220816]
[cannot apply to soc/for-next]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alexander-Atanasov/Make-place-for-common-balloon-code/20220816-184943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: x86_64-randconfig-a001 
(https://download.01.org/0day-ci/archive/20220817/202208171338.xau3o9kj-...@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 
aed5e3bea138ce581d682158eb61c27b3cfdd6ec)
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/intel-lab-lkp/linux/commit/d37f8ca37c57eb9e68b55ef33ecfce719f98bfe7
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Alexander-Atanasov/Make-place-for-common-balloon-code/20220816-184943
git checkout d37f8ca37c57eb9e68b55ef33ecfce719f98bfe7
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "balloon_set_inflated_total" 
>> [drivers/virtio/virtio_balloon.ko] undefined!
>> ERROR: modpost: "balloon_set_inflated_free" 
>> [drivers/virtio/virtio_balloon.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v2 4/4] drivers: virtio: balloon - update inflated memory

2022-08-16 Thread kernel test robot
Hi Alexander,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on powerpc/next]
[also build test ERROR on char-misc/char-misc-testing linus/master v6.0-rc1 
next-20220816]
[cannot apply to soc/for-next]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Alexander-Atanasov/Make-place-for-common-balloon-code/20220816-184943
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: i386-buildonly-randconfig-r004-20220815 
(https://download.01.org/0day-ci/archive/20220817/202208170648.gcm3nxqb-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/d37f8ca37c57eb9e68b55ef33ecfce719f98bfe7
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Alexander-Atanasov/Make-place-for-common-balloon-code/20220816-184943
git checkout d37f8ca37c57eb9e68b55ef33ecfce719f98bfe7
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "balloon_set_inflated_free" 
>> [drivers/virtio/virtio_balloon.ko] undefined!
>> ERROR: modpost: "balloon_set_inflated_total" 
>> [drivers/virtio/virtio_balloon.ko] undefined!

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


[mst-vhost:vhost 5/8] drivers/virtio/virtio_vdpa.c:291:61: error: 'sizes' undeclared

2022-08-15 Thread kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   43ab8a34f3f0c7301813343b9fed2da33c37754a
commit: 71545b3c933acbf165e6596d5cfa4fd15e1ef543 [5/8] virtio: Revert "virtio: 
find_vqs() add arg sizes"
config: i386-buildonly-randconfig-r004-20220815 
(https://download.01.org/0day-ci/archive/20220816/202208161151.smydfpvs-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# 
https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git/commit/?id=71545b3c933acbf165e6596d5cfa4fd15e1ef543
git remote add mst-vhost 
https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git
git fetch --no-tags mst-vhost vhost
git checkout 71545b3c933acbf165e6596d5cfa4fd15e1ef543
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/virtio/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

   drivers/virtio/virtio_vdpa.c: In function 'virtio_vdpa_find_vqs':
>> drivers/virtio/virtio_vdpa.c:291:61: error: 'sizes' undeclared (first use in 
>> this function)
 291 |   names[i], sizes ? 
sizes[i] : 0,
 | ^
   drivers/virtio/virtio_vdpa.c:291:61: note: each undeclared identifier is 
reported only once for each function it appears in


vim +/sizes +291 drivers/virtio/virtio_vdpa.c

c043b4a8cf3b16 Jason Wang  2020-03-26  270  
3153234097f6a0 Solomon Tan 2022-04-18  271  static int 
virtio_vdpa_find_vqs(struct virtio_device *vdev, unsigned int nvqs,
c043b4a8cf3b16 Jason Wang  2020-03-26  272  struct 
virtqueue *vqs[],
c043b4a8cf3b16 Jason Wang  2020-03-26  273  
vq_callback_t *callbacks[],
c043b4a8cf3b16 Jason Wang  2020-03-26  274  const 
char * const names[],
c043b4a8cf3b16 Jason Wang  2020-03-26  275  const 
bool *ctx,
c043b4a8cf3b16 Jason Wang  2020-03-26  276  struct 
irq_affinity *desc)
c043b4a8cf3b16 Jason Wang  2020-03-26  277  {
c043b4a8cf3b16 Jason Wang  2020-03-26  278  struct virtio_vdpa_device 
*vd_dev = to_virtio_vdpa_device(vdev);
c043b4a8cf3b16 Jason Wang  2020-03-26  279  struct vdpa_device *vdpa = 
vd_get_vdpa(vdev);
c043b4a8cf3b16 Jason Wang  2020-03-26  280  const struct vdpa_config_ops 
*ops = vdpa->config;
c043b4a8cf3b16 Jason Wang  2020-03-26  281  struct vdpa_callback cb;
c043b4a8cf3b16 Jason Wang  2020-03-26  282  int i, err, queue_idx = 0;
c043b4a8cf3b16 Jason Wang  2020-03-26  283  
c043b4a8cf3b16 Jason Wang  2020-03-26  284  for (i = 0; i < nvqs; ++i) {
c043b4a8cf3b16 Jason Wang  2020-03-26  285  if (!names[i]) {
c043b4a8cf3b16 Jason Wang  2020-03-26  286  vqs[i] = NULL;
c043b4a8cf3b16 Jason Wang  2020-03-26  287  continue;
c043b4a8cf3b16 Jason Wang  2020-03-26  288  }
c043b4a8cf3b16 Jason Wang  2020-03-26  289  
99e8927d8a4da8 Bo Liu  2022-08-10  290  vqs[i] = 
virtio_vdpa_setup_vq(vdev, queue_idx++, callbacks[i],
99e8927d8a4da8 Bo Liu  2022-08-10 @291  
  names[i], sizes ? sizes[i] : 0,
99e8927d8a4da8 Bo Liu  2022-08-10  292  
  ctx ? ctx[i] : false);
c043b4a8cf3b16 Jason Wang  2020-03-26  293  if (IS_ERR(vqs[i])) {
c043b4a8cf3b16 Jason Wang  2020-03-26  294  err = 
PTR_ERR(vqs[i]);
c043b4a8cf3b16 Jason Wang  2020-03-26  295  goto 
err_setup_vq;
c043b4a8cf3b16 Jason Wang  2020-03-26  296  }
c043b4a8cf3b16 Jason Wang  2020-03-26  297  }
c043b4a8cf3b16 Jason Wang  2020-03-26  298  
c043b4a8cf3b16 Jason Wang  2020-03-26  299  cb.callback = 
virtio_vdpa_config_cb;
c043b4a8cf3b16 Jason Wang  2020-03-26  300  cb.private = vd_dev;
c043b4a8cf3b16 Jason Wang  2020-03-26  301  ops->set_config_cb(vdpa, );
c043b4a8cf3b16 Jason Wang  2020-03-26  302  
c043b4a8cf3b16 Jason Wang  2020-03-26  303  return 0;
c043b4a8cf3b16 Jason Wang  2020-03-26  304  
c043b4a8cf3b16 Jason Wang  2020-03-26  305  err_setup_vq:
c043b4a8cf3b16 Jason Wang  2020-03-26  306  virtio_vdpa_del_vqs(vdev);
c043b4a8cf3b16 Jason Wang  2020-03-26  307  return err;
c043b4a8cf3b16 Jason Wang  2020-03-26  308  }
c043b4a8cf3b16 Jason Wang  2020-03-26  309  

:: The code at line 291 was first introduced by commit
:: 99e8927d8a4da8eb8a8a5904dc13a3156be8e7c0 virtio_vdpa: support the arg 
sizes of find_vqs()

:: TO: Bo Liu 
:: CC: Michael S. Tsirkin 

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualiz

Re: [PATCH 2/6] vsock: return errors other than -ENOMEM to socket

2022-08-15 Thread kernel test robot
Hi Bobby,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.0-rc1 next-20220815]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: i386-randconfig-s001-20220815 
(https://download.01.org/0day-ci/archive/20220816/202208161059.gpilppvd-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# 
https://github.com/intel-lab-lkp/linux/commit/68c9c8216a573cdfe2170cad677854e2f4a34634
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
git checkout 68c9c8216a573cdfe2170cad677854e2f4a34634
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir 
ARCH=i386 SHELL=/bin/bash fs/nilfs2/ net/vmw_vsock/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

sparse warnings: (new ones prefixed by >>)
>> net/vmw_vsock/virtio_transport.c:173:31: sparse: sparse: restricted __le16 
>> degrades to integer
   net/vmw_vsock/virtio_transport.c:174:31: sparse: sparse: restricted __le16 
degrades to integer

vim +173 net/vmw_vsock/virtio_transport.c

0ea9e1d3a9e3ef Asias He   2016-07-28  161  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  162  static inline bool
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  163  
virtio_transport_skbs_can_merge(struct sk_buff *old, struct sk_buff *new)
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  164  {
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  165   return (new->len < 
GOOD_COPY_LEN &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  166   skb_tailroom(old) >= 
new->len &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  167   vsock_hdr(new)->src_cid 
== vsock_hdr(old)->src_cid &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  168   vsock_hdr(new)->dst_cid 
== vsock_hdr(old)->dst_cid &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  169   
vsock_hdr(new)->src_port == vsock_hdr(old)->src_port &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  170   
vsock_hdr(new)->dst_port == vsock_hdr(old)->dst_port &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  171   vsock_hdr(new)->type == 
vsock_hdr(old)->type &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  172   vsock_hdr(new)->flags 
== vsock_hdr(old)->flags &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15 @173   vsock_hdr(old)->op == 
VIRTIO_VSOCK_OP_RW &&
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  174   vsock_hdr(new)->op == 
VIRTIO_VSOCK_OP_RW);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  175  }
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  176  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 2/6] vsock: return errors other than -ENOMEM to socket

2022-08-15 Thread kernel test robot
Hi Bobby,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.0-rc1]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: i386-randconfig-a014-20220815 
(https://download.01.org/0day-ci/archive/20220816/202208160737.gxxfmpby-...@intel.com/config)
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 
6afcc4a459ead8809a0d6d9b4bf7b64bcc13582b)
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/intel-lab-lkp/linux/commit/68c9c8216a573cdfe2170cad677854e2f4a34634
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
git checkout 68c9c8216a573cdfe2170cad677854e2f4a34634
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash net/vmw_vsock/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> net/vmw_vsock/virtio_transport.c:178: warning: This comment starts with 
>> '/**', but isn't a kernel-doc comment. Refer 
>> Documentation/doc-guide/kernel-doc.rst
* Merge the two most recent skbs together if possible.


vim +178 net/vmw_vsock/virtio_transport.c

93afaf2cdefaa9 Bobby Eshleman 2022-08-15  176  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  177  /**
93afaf2cdefaa9 Bobby Eshleman 2022-08-15 @178   * Merge the two most recent 
skbs together if possible.
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  179   *
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  180   * Caller must hold the queue 
lock.
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  181   */
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  182  static void
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  183  
virtio_transport_add_to_queue(struct sk_buff_head *queue, struct sk_buff *new)
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  184  {
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  185   struct sk_buff *old;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  186  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  187   spin_lock_bh(>lock);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  188   /* In order to reduce skb 
memory overhead, we merge new packets with
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  189* older packets if they pass 
virtio_transport_skbs_can_merge().
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  190*/
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  191   if 
(skb_queue_empty_lockless(queue)) {
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  192   __skb_queue_tail(queue, 
new);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  193   goto out;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  194   }
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  195  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  196   old = skb_peek_tail(queue);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  197  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  198   if 
(!virtio_transport_skbs_can_merge(old, new)) {
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  199   __skb_queue_tail(queue, 
new);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  200   goto out;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  201   }
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  202  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  203   memcpy(skb_put(old, new->len), 
new->data, new->len);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  204   vsock_hdr(old)->len = 
cpu_to_le32(old->len);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  205   vsock_hdr(old)->buf_alloc = 
vsock_hdr(new)->buf_alloc;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  206   vsock_hdr(old)->fwd_cnt = 
vsock_hdr(new)->fwd_cnt;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  207   dev_kfree_skb_any(new);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  208  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  209  out:
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  210   spin_unlock_bh(>lock);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  211  }
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  212  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 5/6] virtio/vsock: add support for dgram

2022-08-15 Thread kernel test robot
Hi Bobby,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.0-rc1 next-20220815]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: m68k-allyesconfig 
(https://download.01.org/0day-ci/archive/20220816/202208160405.cg02e3mz-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/cbb332da78c86ac574688831ed6f404d04d506db
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
git checkout cbb332da78c86ac574688831ed6f404d04d506db
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k SHELL=/bin/bash net/vmw_vsock/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

   net/vmw_vsock/virtio_transport_common.c: In function 
'virtio_transport_dgram_do_dequeue':
>> net/vmw_vsock/virtio_transport_common.c:605:13: warning: variable 
>> 'free_space' set but not used [-Wunused-but-set-variable]
 605 | u32 free_space;
 | ^~


vim +/free_space +605 net/vmw_vsock/virtio_transport_common.c

   597  
   598  static ssize_t
   599  virtio_transport_dgram_do_dequeue(struct vsock_sock *vsk,
   600struct msghdr *msg, size_t len)
   601  {
   602  struct virtio_vsock_sock *vvs = vsk->trans;
   603  struct sk_buff *skb;
   604  size_t total = 0;
 > 605  u32 free_space;
   606  int err = -EFAULT;
   607  
   608  spin_lock_bh(>rx_lock);
   609  if (total < len && !skb_queue_empty_lockless(>rx_queue)) {
   610  skb = __skb_dequeue(>rx_queue);
   611  
   612  total = len;
   613  if (total > skb->len - vsock_metadata(skb)->off)
   614  total = skb->len - vsock_metadata(skb)->off;
   615  else if (total < skb->len - vsock_metadata(skb)->off)
   616  msg->msg_flags |= MSG_TRUNC;
   617  
   618  /* sk_lock is held by caller so no one else can dequeue.
   619   * Unlock rx_lock since memcpy_to_msg() may sleep.
   620   */
   621  spin_unlock_bh(>rx_lock);
   622  
   623  err = memcpy_to_msg(msg, skb->data + 
vsock_metadata(skb)->off, total);
   624  if (err)
   625  return err;
   626  
   627  spin_lock_bh(>rx_lock);
   628  
   629  virtio_transport_dec_rx_pkt(vvs, skb);
   630  consume_skb(skb);
   631  }
   632  
   633  free_space = vvs->buf_alloc - (vvs->fwd_cnt - 
vvs->last_fwd_cnt);
   634  
   635  spin_unlock_bh(>rx_lock);
   636  
   637  if (total > 0 && msg->msg_name) {
   638  /* Provide the address of the sender. */
   639  DECLARE_SOCKADDR(struct sockaddr_vm *, vm_addr, 
msg->msg_name);
   640  
   641  vsock_addr_init(vm_addr, 
le64_to_cpu(vsock_hdr(skb)->src_cid),
   642  le32_to_cpu(vsock_hdr(skb)->src_port));
   643  msg->msg_namelen = sizeof(*vm_addr);
   644  }
   645  return total;
   646  }
   647  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 2/6] vsock: return errors other than -ENOMEM to socket

2022-08-15 Thread kernel test robot
Hi Bobby,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on mst-vhost/linux-next]
[also build test WARNING on linus/master v6.0-rc1 next-20220815]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: m68k-allyesconfig 
(https://download.01.org/0day-ci/archive/20220816/202208160300.hyfustbf-...@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.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/intel-lab-lkp/linux/commit/68c9c8216a573cdfe2170cad677854e2f4a34634
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Bobby-Eshleman/virtio-vsock-introduce-dgrams-sk_buff-and-qdisc/20220816-015812
git checkout 68c9c8216a573cdfe2170cad677854e2f4a34634
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 
O=build_dir ARCH=m68k SHELL=/bin/bash net/vmw_vsock/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> net/vmw_vsock/virtio_transport.c:178: warning: This comment starts with 
>> '/**', but isn't a kernel-doc comment. Refer 
>> Documentation/doc-guide/kernel-doc.rst
* Merge the two most recent skbs together if possible.


vim +178 net/vmw_vsock/virtio_transport.c

93afaf2cdefaa9 Bobby Eshleman 2022-08-15  176  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  177  /**
93afaf2cdefaa9 Bobby Eshleman 2022-08-15 @178   * Merge the two most recent 
skbs together if possible.
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  179   *
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  180   * Caller must hold the queue 
lock.
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  181   */
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  182  static void
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  183  
virtio_transport_add_to_queue(struct sk_buff_head *queue, struct sk_buff *new)
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  184  {
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  185   struct sk_buff *old;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  186  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  187   spin_lock_bh(>lock);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  188   /* In order to reduce skb 
memory overhead, we merge new packets with
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  189* older packets if they pass 
virtio_transport_skbs_can_merge().
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  190*/
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  191   if 
(skb_queue_empty_lockless(queue)) {
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  192   __skb_queue_tail(queue, 
new);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  193   goto out;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  194   }
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  195  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  196   old = skb_peek_tail(queue);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  197  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  198   if 
(!virtio_transport_skbs_can_merge(old, new)) {
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  199   __skb_queue_tail(queue, 
new);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  200   goto out;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  201   }
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  202  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  203   memcpy(skb_put(old, new->len), 
new->data, new->len);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  204   vsock_hdr(old)->len = 
cpu_to_le32(old->len);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  205   vsock_hdr(old)->buf_alloc = 
vsock_hdr(new)->buf_alloc;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  206   vsock_hdr(old)->fwd_cnt = 
vsock_hdr(new)->fwd_cnt;
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  207   dev_kfree_skb_any(new);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  208  
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  209  out:
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  210   spin_unlock_bh(>lock);
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  211  }
93afaf2cdefaa9 Bobby Eshleman 2022-08-15  212  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH v2 5/5] vduse: Support registering userspace memory for IOTLB

2022-07-07 Thread kernel test robot
Hi Xie,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.19-rc5 next-20220707]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xie-Yongji/VDUSE-Support-registering-userspace-memory-as-bounce-buffer/20220706-130802
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
e35e5b6f695d241ffb1d223207da58a1fbcdff4b
config: parisc-randconfig-r003-20220707 
(https://download.01.org/0day-ci/archive/20220708/202207080910.vfmfrttn-...@intel.com/config)
compiler: hppa-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/intel-lab-lkp/linux/commit/9be699264e4fede9c3be913b2d1003c260d9fa05
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xie-Yongji/VDUSE-Support-registering-userspace-memory-as-bounce-buffer/20220706-130802
git checkout 9be699264e4fede9c3be913b2d1003c260d9fa05
# 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=parisc SHELL=/bin/bash drivers/vdpa/vdpa_user/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All error/warnings (new ones prefixed by >>):

   drivers/vdpa/vdpa_user/vduse_dev.c: In function 'vduse_dev_dereg_iotlb_mem':
>> drivers/vdpa/vdpa_user/vduse_dev.c:949:9: error: implicit declaration of 
>> function 'vfree'; did you mean 'kvfree'? 
>> [-Werror=implicit-function-declaration]
 949 | vfree(dev->iotlb_mem->pages);
 | ^
 | kvfree
   drivers/vdpa/vdpa_user/vduse_dev.c: In function 'vduse_dev_reg_iotlb_mem':
>> drivers/vdpa/vdpa_user/vduse_dev.c:978:21: error: implicit declaration of 
>> function '__vmalloc'; did you mean '__kmalloc'? 
>> [-Werror=implicit-function-declaration]
 978 | page_list = __vmalloc(array_size(npages, sizeof(struct page 
*)),
 | ^
 | __kmalloc
>> drivers/vdpa/vdpa_user/vduse_dev.c:978:19: warning: assignment to 'struct 
>> page **' from 'int' makes pointer from integer without a cast 
>> [-Wint-conversion]
 978 | page_list = __vmalloc(array_size(npages, sizeof(struct page 
*)),
 |   ^
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DRM_DP_AUX_BUS
   Depends on HAS_IOMEM && DRM && OF
   Selected by
   - DRM_MSM && HAS_IOMEM && DRM && (ARCH_QCOM || SOC_IMX5 || COMPILE_TEST && 
COMMON_CLK && IOMMU_SUPPORT && (QCOM_OCMEM || QCOM_OCMEM && (QCOM_LLCC || 
QCOM_LLCC && (QCOM_COMMAND_DB || QCOM_COMMAND_DB


vim +949 drivers/vdpa/vdpa_user/vduse_dev.c

   929  
   930  static int vduse_dev_dereg_iotlb_mem(struct vduse_dev *dev,
   931   u64 iova, u64 size)
   932  {
   933  int ret;
   934  
   935  mutex_lock(>mem_lock);
   936  ret = -ENOENT;
   937  if (!dev->iotlb_mem)
   938  goto unlock;
   939  
   940  ret = -EINVAL;
   941  if (dev->iotlb_mem->iova != iova || size != 
dev->domain->bounce_size)
   942  goto unlock;
   943  
   944  vduse_domain_remove_user_bounce_pages(dev->domain);
   945  unpin_user_pages_dirty_lock(dev->iotlb_mem->pages,
   946  dev->iotlb_mem->npages, true);
   947  atomic64_sub(dev->iotlb_mem->npages, 
>iotlb_mem->mm->pinned_vm);
   948  mmdrop(dev->iotlb_mem->mm);
 > 949  vfree(dev->iotlb_mem->pages);
   950  kfree(dev->iotlb_mem);
   951  dev->iotlb_mem = NULL;
   952  ret = 0;
   953  unlock:
   954  mutex_unlock(>mem_lock);
   955  return ret;
   956  }
   957  
   958  static int vduse_dev_reg_iotlb_mem(struct vduse_dev *dev,
   959 u64 iova, u64 uaddr, u64 size)
   960  {
   961  struct page **page_list = NULL;
   962  struct vduse_iotlb_mem *mem = NULL;
   963  long pinned = 0;
   964  unsigned long npages, lock_limit;
   965  int ret;
   966  
   967  if (size != dev->domain->bounce_size ||
   968  iova != 0 || uaddr &a

Re: [PATCH v2 5/5] vduse: Support registering userspace memory for IOTLB

2022-07-07 Thread kernel test robot
Hi Xie,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.19-rc5 next-20220707]
[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#_base_tree_information]

url:
https://github.com/intel-lab-lkp/linux/commits/Xie-Yongji/VDUSE-Support-registering-userspace-memory-as-bounce-buffer/20220706-130802
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
e35e5b6f695d241ffb1d223207da58a1fbcdff4b
config: hexagon-randconfig-r005-20220707 
(https://download.01.org/0day-ci/archive/20220708/202207080640.p8q3nqhb-...@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 
66ae1d60bb278793fd651cece264699d522bab84)
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/intel-lab-lkp/linux/commit/9be699264e4fede9c3be913b2d1003c260d9fa05
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xie-Yongji/VDUSE-Support-registering-userspace-memory-as-bounce-buffer/20220706-130802
git checkout 9be699264e4fede9c3be913b2d1003c260d9fa05
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/vdpa/vdpa_user/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All error/warnings (new ones prefixed by >>):

>> drivers/vdpa/vdpa_user/vduse_dev.c:949:2: error: call to undeclared function 
>> 'vfree'; ISO C99 and later do not support implicit function declarations 
>> [-Wimplicit-function-declaration]
   vfree(dev->iotlb_mem->pages);
   ^
>> drivers/vdpa/vdpa_user/vduse_dev.c:978:14: error: call to undeclared 
>> function '__vmalloc'; ISO C99 and later do not support implicit function 
>> declarations [-Wimplicit-function-declaration]
   page_list = __vmalloc(array_size(npages, sizeof(struct page *)),
   ^
   drivers/vdpa/vdpa_user/vduse_dev.c:978:14: note: did you mean '__kmalloc'?
   include/linux/slab.h:434:7: note: '__kmalloc' declared here
   void *__kmalloc(size_t size, gfp_t flags) __assume_kmalloc_alignment 
__alloc_size(1);
 ^
>> drivers/vdpa/vdpa_user/vduse_dev.c:978:12: warning: incompatible integer to 
>> pointer conversion assigning to 'struct page **' from 'int' 
>> [-Wint-conversion]
   page_list = __vmalloc(array_size(npages, sizeof(struct page *)),
 ^ 
   drivers/vdpa/vdpa_user/vduse_dev.c:1018:3: error: call to undeclared 
function 'vfree'; ISO C99 and later do not support implicit function 
declarations [-Wimplicit-function-declaration]
   vfree(page_list);
   ^
   drivers/vdpa/vdpa_user/vduse_dev.c:1654:51: warning: shift count >= width of 
type [-Wshift-count-overflow]
   ret = dma_set_mask_and_coherent(>vdpa.dev, DMA_BIT_MASK(64));
^~~~
   include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
   #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
   2 warnings and 3 errors generated.


vim +/vfree +949 drivers/vdpa/vdpa_user/vduse_dev.c

   929  
   930  static int vduse_dev_dereg_iotlb_mem(struct vduse_dev *dev,
   931   u64 iova, u64 size)
   932  {
   933  int ret;
   934  
   935  mutex_lock(>mem_lock);
   936  ret = -ENOENT;
   937  if (!dev->iotlb_mem)
   938  goto unlock;
   939  
   940  ret = -EINVAL;
   941  if (dev->iotlb_mem->iova != iova || size != 
dev->domain->bounce_size)
   942  goto unlock;
   943  
   944  vduse_domain_remove_user_bounce_pages(dev->domain);
   945  unpin_user_pages_dirty_lock(dev->iotlb_mem->pages,
   946  dev->iotlb_mem->npages, true);
   947  atomic64_sub(dev->iotlb_mem->npages, 
>iotlb_mem->mm->pinned_vm);
   948  mmdrop(dev->iotlb_mem->mm);
 > 949  vfree(dev->iotlb_mem->pages);
   950  kfree(dev->iotlb_mem);
   951  dev->iotlb_mem = NULL;
   952  ret = 0;
   953  unlock:
   954  mutex_unlock(>mem_lock);
   955  return ret;
   956  }
   957  
   958  static int vduse_dev_reg_iotlb_mem(str

[linux-next:master] BUILD REGRESSION 088b9c375534d905a4d337c78db3b3bfbb52c4a0

2022-07-07 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: 088b9c375534d905a4d337c78db3b3bfbb52c4a0  Add linux-next specific 
files for 20220706

Error/Warning reports:

https://lore.kernel.org/linux-doc/202207070644.x48xoovs-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

Documentation/arm/google/chromebook-boot-flow.rst: WARNING: document isn't 
included in any toctree
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x1108): undefined reference to 
`__aeabi_ddiv'
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x1124): undefined reference to 
`__aeabi_ui2d'
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x1164): undefined reference to 
`__aeabi_dmul'
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x1170): undefined reference to 
`__aeabi_dadd'
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x1180): undefined reference to 
`__aeabi_dsub'
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x1190): undefined reference to 
`__aeabi_d2uiz'
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x162c): undefined reference to 
`__aeabi_d2iz'
arm-linux-gnueabi-ld: dc_dmub_srv.c:(.text+0x16b0): undefined reference to 
`__aeabi_i2d'
dc_dmub_srv.c:(.text+0x10f8): undefined reference to `__aeabi_ui2d'
dc_dmub_srv.c:(.text+0x464): undefined reference to `__floatunsidf'
dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x33c): undefined 
reference to `__floatunsidf'
drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous 
prototype for 'pci_read' [-Wmissing-prototypes]
drivers/pci/endpoint/functions/pci-epf-vntb.c:984:5: warning: no previous 
prototype for 'pci_write' [-Wmissing-prototypes]
drivers/vfio/vfio_iommu_type1.c:2141:35: warning: cast to smaller integer type 
'enum iommu_cap' from 'void *' [-Wvoid-pointer-to-enum-cast]
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x34c): 
undefined reference to `__floatunsidf'
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x378): 
undefined reference to `__divdf3'
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x38c): 
undefined reference to `__muldf3'
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x3a0): 
undefined reference to `__adddf3'
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x3b4): 
undefined reference to `__subdf3'
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x3d4): 
undefined reference to `__fixunsdfsi'
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x750): 
undefined reference to `__fixdfsi'
mips-linux-ld: dc_dmub_srv.c:(.text.dc_dmub_setup_subvp_dmub_command+0x7c0): 
undefined reference to `__floatsidf'
powerpc-linux-ld: drivers/pci/endpoint/functions/pci-epf-vntb.c:174: undefined 
reference to `ntb_link_event'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x468): undefined reference to `__divdf3'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x46c): undefined reference to `__muldf3'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x470): undefined reference to `__adddf3'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x474): undefined reference to `__subdf3'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x478): undefined reference to 
`__fixunsdfsi'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x47c): undefined reference to `__fixdfsi'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x480): undefined reference to 
`__floatsidf'
xtensa-linux-ld: dc_dmub_srv.c:(.text+0x60c): undefined reference to 
`__floatunsidf'

Unverified Error/Warning (likely false positive, please contact us if 
interested):

arch/x86/events/core.c:2114 init_hw_perf_events() warn: missing error code 'err'
drivers/android/binder.c:1481:19-23: ERROR: from is NULL but dereferenced.
drivers/android/binder.c:2920:29-33: ERROR: target_thread is NULL but 
dereferenced.
drivers/android/binder.c:353:25-35: ERROR: node -> proc is NULL but 
dereferenced.
drivers/android/binder.c:4888:16-20: ERROR: t is NULL but dereferenced.
drivers/base/regmap/regmap.c:1996:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/char/random.c:869:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/firmware/arm_scmi/clock.c:394:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/firmware/arm_scmi/powercap.c:376:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_powertune.c:1214:1: 
internal compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/display/dc/os_types.h: drm/drm_print.h is included more 
than once.
drivers/gpu/drm/bridge/ite-it66121.c:1398:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/greybus/operation.c:617:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/infiniband/hw/irdma/hw.c:1484:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/md/dm-mpath.c:1681:1: internal compiler error: in arc_ifcvt, at 

Re: [PATCH v2 5/5] vduse: Support registering userspace memory for IOTLB

2022-07-06 Thread kernel test robot
Hi Xie,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.19-rc5 next-20220705]
[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/intel-lab-lkp/linux/commits/Xie-Yongji/VDUSE-Support-registering-userspace-memory-as-bounce-buffer/20220706-130802
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
e35e5b6f695d241ffb1d223207da58a1fbcdff4b
config: alpha-allyesconfig 
(https://download.01.org/0day-ci/archive/20220706/202207061418.mtlo0yqk-...@intel.com/config)
compiler: alpha-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/intel-lab-lkp/linux/commit/9be699264e4fede9c3be913b2d1003c260d9fa05
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Xie-Yongji/VDUSE-Support-registering-userspace-memory-as-bounce-buffer/20220706-130802
git checkout 9be699264e4fede9c3be913b2d1003c260d9fa05
# 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=alpha SHELL=/bin/bash drivers/vdpa/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

   drivers/vdpa/vdpa_user/vduse_dev.c: In function 'vduse_dev_dereg_iotlb_mem':
   drivers/vdpa/vdpa_user/vduse_dev.c:949:9: error: implicit declaration of 
function 'vfree'; did you mean 'kvfree'? [-Werror=implicit-function-declaration]
 949 | vfree(dev->iotlb_mem->pages);
 | ^
 | kvfree
   drivers/vdpa/vdpa_user/vduse_dev.c: In function 'vduse_dev_reg_iotlb_mem':
   drivers/vdpa/vdpa_user/vduse_dev.c:978:21: error: implicit declaration of 
function '__vmalloc'; did you mean '__kmalloc'? 
[-Werror=implicit-function-declaration]
 978 | page_list = __vmalloc(array_size(npages, sizeof(struct page 
*)),
 | ^
 | __kmalloc
>> drivers/vdpa/vdpa_user/vduse_dev.c:978:19: warning: assignment to 'struct 
>> page **' from 'int' makes pointer from integer without a cast 
>> [-Wint-conversion]
 978 | page_list = __vmalloc(array_size(npages, sizeof(struct page 
*)),
 |   ^
   cc1: some warnings being treated as errors


vim +978 drivers/vdpa/vdpa_user/vduse_dev.c

   957  
   958  static int vduse_dev_reg_iotlb_mem(struct vduse_dev *dev,
   959 u64 iova, u64 uaddr, u64 size)
   960  {
   961  struct page **page_list = NULL;
   962  struct vduse_iotlb_mem *mem = NULL;
   963  long pinned = 0;
   964  unsigned long npages, lock_limit;
   965  int ret;
   966  
   967  if (size != dev->domain->bounce_size ||
   968  iova != 0 || uaddr & ~PAGE_MASK)
   969  return -EINVAL;
   970  
   971  mutex_lock(>mem_lock);
   972  ret = -EEXIST;
   973  if (dev->iotlb_mem)
   974  goto unlock;
   975  
   976  ret = -ENOMEM;
   977  npages = size >> PAGE_SHIFT;
 > 978  page_list = __vmalloc(array_size(npages, sizeof(struct page *)),
   979GFP_KERNEL_ACCOUNT);
   980  mem = kzalloc(sizeof(*mem), GFP_KERNEL);
   981  if (!page_list || !mem)
   982  goto unlock;
   983  
   984  mmap_read_lock(current->mm);
   985  
   986  lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK));
   987  if (npages + atomic64_read(>mm->pinned_vm) > 
lock_limit)
   988  goto out;
   989  
   990  pinned = pin_user_pages(uaddr, npages, FOLL_LONGTERM | 
FOLL_WRITE,
   991  page_list, NULL);
   992  if (pinned != npages) {
   993  ret = pinned < 0 ? pinned : -ENOMEM;
   994  goto out;
   995  }
   996  
   997  ret = vduse_domain_add_user_bounce_pages(dev->domain,
   998   page_list, pinned);
   999  if (ret)
  1000  goto out;
  1001  
  1002  atomic64_add(npages, >mm->pinned_vm);
  1003  
  1004  mem->pages = page_list;
  1005  mem->npages = pinned;
  1006  mem->iova = iova;
  1007  mem->mm = current->mm;
  1008  mmgrab(current->mm);
  1009  
  1010  dev->iotlb_mem = mem;
  

[linux-next:master] BUILD REGRESSION 2a2aa3f05338270aecbe2492fda910d6c17e0102

2022-07-05 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: 2a2aa3f05338270aecbe2492fda910d6c17e0102  Add linux-next specific 
files for 20220705

Error/Warning reports:

https://lore.kernel.org/linux-doc/202207051821.3f0erisl-...@intel.com

Error/Warning: (recently discovered and may have been fixed)

Documentation/PCI/endpoint/pci-vntb-function.rst:82: WARNING: Unexpected 
indentation.
Documentation/PCI/endpoint/pci-vntb-howto.rst:131: WARNING: Title underline too 
short.
drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous 
prototype for 'pci_read' [-Wmissing-prototypes]
drivers/pci/endpoint/functions/pci-epf-vntb.c:984:5: warning: no previous 
prototype for 'pci_write' [-Wmissing-prototypes]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

block/partitions/efi.c:223:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
block/sed-opal.c:427:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
crypto/asymmetric_keys/pkcs7_verify.c:311:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/ata/libata-core.c:2802:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/ata/libata-eh.c:2842:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/ata/sata_dwc_460ex.c:691:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/base/power/runtime.c:1570:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/block/rbd.c:6142:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/bluetooth/hci_ll.c:588:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/bluetooth/hci_qca.c:2137:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/cdrom/cdrom.c:1041:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/char/ipmi/ipmi_ssif.c:1918:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/char/pcmcia/cm4000_cs.c:922:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/char/random.c:869:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/char/tpm/tpm_tis_core.c:1122:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/clk/bcm/clk-iproc-armpll.c:139:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/clk/clk-bd718x7.c:50:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/clk/clk-lochnagar.c:187:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/crypto/ccree/cc_request_mgr.c:206:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/crypto/qce/sha.c:73:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/crypto/qce/skcipher.c:61:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/cxl/core/hdm.c:38:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/cxl/core/pci.c:67:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/dma-buf/dma-buf.c:1100:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/firmware/arm_scmi/bus.c:152:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/firmware/arm_scmi/clock.c:394:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/firmware/arm_scmi/powercap.c:376:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/firmware/arm_scmi/sensors.c:673:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/firmware/arm_scmi/voltage.c:363:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/fpga/dfl-fme-mgr.c:163:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/gnss/usb.c:68:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:175:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1006:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_resource.c:1035:1: 
internal compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:955:1: 
internal compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:3895:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:754:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_powertune.c:1214:1: 
internal compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:195:1: internal 

[linux-next:master] BUILD REGRESSION b6f1f2fa2bddd69ff46a190b8120bd440fd50563

2022-07-04 Thread kernel test robot
tree/branch: 
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
branch HEAD: b6f1f2fa2bddd69ff46a190b8120bd440fd50563  Add linux-next specific 
files for 20220704

Error/Warning: (recently discovered and may have been fixed)

drivers/pci/endpoint/functions/pci-epf-vntb.c:975:5: warning: no previous 
prototype for 'pci_read' [-Wmissing-prototypes]
drivers/pci/endpoint/functions/pci-epf-vntb.c:984:5: warning: no previous 
prototype for 'pci_write' [-Wmissing-prototypes]

Unverified Error/Warning (likely false positive, please contact us if 
interested):

block/partitions/efi.c:223:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
block/sed-opal.c:427:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
crypto/asymmetric_keys/pkcs7_verify.c:311:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/ata/libata-core.c:2802:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/ata/libata-eh.c:2842:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/ata/sata_dwc_460ex.c:691:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/base/power/runtime.c:1573:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/block/rbd.c:6142:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/bluetooth/hci_ll.c:588:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/bluetooth/hci_qca.c:2137:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/cdrom/cdrom.c:1041:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/char/ipmi/ipmi_ssif.c:1918:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/char/pcmcia/cm4000_cs.c:922:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/char/random.c:869:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/char/tpm/tpm_tis_core.c:1122:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/clk/bcm/clk-iproc-armpll.c:139:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/clk/bcm/clk-iproc-armpll.c:228:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/clk/clk-bd718x7.c:50:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/clk/clk-lochnagar.c:187:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/crypto/ccree/cc_request_mgr.c:206:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/crypto/qce/sha.c:73:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/crypto/qce/skcipher.c:61:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/cxl/core/hdm.c:38:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/cxl/core/pci.c:67:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/dma-buf/dma-buf.c:1100:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/firmware/arm_scmi/bus.c:166:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/firmware/arm_scmi/clock.c:394:1: internal compiler error: in arc_ifcvt, 
at config/arc/arc.c:9637
drivers/firmware/arm_scmi/sensors.c:673:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/firmware/arm_scmi/voltage.c:363:1: internal compiler error: in 
arc_ifcvt, at config/arc/arc.c:9637
drivers/fpga/dfl-fme-mgr.c:163:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/gnss/usb.c:68:1: internal compiler error: in arc_ifcvt, at 
config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:175:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1006:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_resource.c:1035:1: 
internal compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:955:1: 
internal compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:3895:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu8_hwmgr.c:754:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_powertune.c:1214:1: 
internal compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/smu7_smumgr.c:195:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0.c:362:1: internal 
compiler error: in arc_ifcvt, at config/arc/arc.c:9637
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:695:1: internal compiler error: in 
arc_ifcvt, at 

Re: [PATCH 04/20] mm/migrate: Convert buffer_migrate_page() to buffer_migrate_folio()

2022-06-07 Thread kernel test robot
Hi "Matthew,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.19-rc1 next-20220607]
[cannot apply to jaegeuk-f2fs/dev-test trondmy-nfs/linux-next kdave/for-next 
xfs-linux/for-next]
[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/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220607-044509
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
f2906aa863381afb0015a9eb7fefad885d4e5a56
config: s390-randconfig-c005-20220606 
(https://download.01.org/0day-ci/archive/20220607/202206071552.6lodsclw-...@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 
b92436efcb7813fc481b30f2593a4907568d917a)
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/intel-lab-lkp/linux/commit/96e64ba8b1be545885d89f44b1d8b968b22bdb4d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220607-044509
git checkout 96e64ba8b1be545885d89f44b1d8b968b22bdb4d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=s390 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> mm/migrate.c:775: warning: expecting prototype for 
>> buffer_migrate_folio_noref(). Prototype was for 
>> buffer_migrate_folio_norefs() instead


vim +775 mm/migrate.c

89cb0888ca1483 Jan Kara2018-12-28  758  
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  759) /**
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  760)  * 
buffer_migrate_folio_noref() - Migration function for folios with buffers.
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  761)  * @mapping: The 
address space containing @src.
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  762)  * @dst: The folio to 
migrate to.
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  763)  * @src: The folio to 
migrate from.
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  764)  * @mode: How to 
migrate the folio.
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  765)  *
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  766)  * Like 
buffer_migrate_folio() except that this variant is more careful
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  767)  * and checks that 
there are also no buffer head references. This function
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  768)  * is the right one for 
mappings where buffer heads are directly looked
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  769)  * up and referenced 
(such as block device mappings).
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  770)  *
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  771)  * Return: 0 on success 
or a negative errno on failure.
89cb0888ca1483 Jan Kara2018-12-28  772   */
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  773) int 
buffer_migrate_folio_norefs(struct address_space *mapping,
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  774) struct 
folio *dst, struct folio *src, enum migrate_mode mode)
89cb0888ca1483 Jan Kara2018-12-28 @775  {
96e64ba8b1be54 Matthew Wilcox (Oracle  2022-06-06  776) return 
__buffer_migrate_folio(mapping, dst, src, mode, true);
89cb0888ca1483 Jan Kara2018-12-28  777  }
9361401eb7619c David Howells   2006-09-30  778  #endif
1d8b85ccf1ed53 Christoph Lameter   2006-06-23  779  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 14/20] hugetlb: Convert to migrate_folio

2022-06-07 Thread kernel test robot
Hi "Matthew,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.19-rc1 next-20220607]
[cannot apply to jaegeuk-f2fs/dev-test trondmy-nfs/linux-next kdave/for-next 
xfs-linux/for-next]
[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/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220607-044509
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
f2906aa863381afb0015a9eb7fefad885d4e5a56
config: ia64-randconfig-r015-20220605 
(https://download.01.org/0day-ci/archive/20220607/202206071414.41wgg8fp-...@intel.com/config)
compiler: ia64-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/intel-lab-lkp/linux/commit/b038962c9c8c2ab77c71dfba24356ce24bd7a242
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220607-044509
git checkout b038962c9c8c2ab77c71dfba24356ce24bd7a242
# 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=ia64 SHELL=/bin/bash fs/hugetlbfs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All errors (new ones prefixed by >>):

   fs/hugetlbfs/inode.c: In function 'hugetlbfs_migrate_folio':
>> fs/hugetlbfs/inode.c:990:17: error: implicit declaration of function 
>> 'folio_migrate_copy' [-Werror=implicit-function-declaration]
 990 | folio_migrate_copy(dst, src);
 | ^~
>> fs/hugetlbfs/inode.c:992:17: error: implicit declaration of function 
>> 'folio_migrate_flags'; did you mean 'folio_mapping_flags'? 
>> [-Werror=implicit-function-declaration]
 992 | folio_migrate_flags(dst, src);
 | ^~~
 | folio_mapping_flags
   cc1: some warnings being treated as errors


vim +/folio_migrate_copy +990 fs/hugetlbfs/inode.c

   972  
   973  static int hugetlbfs_migrate_folio(struct address_space *mapping,
   974  struct folio *dst, struct folio *src,
   975  enum migrate_mode mode)
   976  {
   977  int rc;
   978  
   979  rc = migrate_huge_page_move_mapping(mapping, dst, src);
   980  if (rc != MIGRATEPAGE_SUCCESS)
   981  return rc;
   982  
   983  if (hugetlb_page_subpool(>page)) {
   984  hugetlb_set_page_subpool(>page,
   985  
hugetlb_page_subpool(>page));
   986  hugetlb_set_page_subpool(>page, NULL);
   987  }
   988  
   989  if (mode != MIGRATE_SYNC_NO_COPY)
 > 990  folio_migrate_copy(dst, src);
   991  else
 > 992  folio_migrate_flags(dst, src);
   993  
   994  return MIGRATEPAGE_SUCCESS;
   995  }
   996  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 04/20] mm/migrate: Convert buffer_migrate_page() to buffer_migrate_folio()

2022-06-06 Thread kernel test robot
Hi "Matthew,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.19-rc1 next-20220606]
[cannot apply to jaegeuk-f2fs/dev-test trondmy-nfs/linux-next kdave/for-next 
xfs-linux/for-next]
[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/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220607-044509
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
f2906aa863381afb0015a9eb7fefad885d4e5a56
config: i386-defconfig 
(https://download.01.org/0day-ci/archive/20220607/202206071139.awsx4ghh-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/96e64ba8b1be545885d89f44b1d8b968b22bdb4d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Matthew-Wilcox-Oracle/Convert-aops-migratepage-to-aops-migrate_folio/20220607-044509
git checkout 96e64ba8b1be545885d89f44b1d8b968b22bdb4d
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> mm/migrate.c:775: warning: expecting prototype for 
>> buffer_migrate_folio_noref(). Prototype was for 
>> buffer_migrate_folio_norefs() instead


vim +775 mm/migrate.c

89cb0888ca1483a Jan Kara2018-12-28  758  
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  759) /**
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  760)  * 
buffer_migrate_folio_noref() - Migration function for folios with buffers.
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  761)  * @mapping: The 
address space containing @src.
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  762)  * @dst: The folio to 
migrate to.
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  763)  * @src: The folio to 
migrate from.
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  764)  * @mode: How to 
migrate the folio.
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  765)  *
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  766)  * Like 
buffer_migrate_folio() except that this variant is more careful
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  767)  * and checks that 
there are also no buffer head references. This function
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  768)  * is the right one 
for mappings where buffer heads are directly looked
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  769)  * up and referenced 
(such as block device mappings).
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  770)  *
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  771)  * Return: 0 on 
success or a negative errno on failure.
89cb0888ca1483a Jan Kara2018-12-28  772   */
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  773) int 
buffer_migrate_folio_norefs(struct address_space *mapping,
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  774)struct 
folio *dst, struct folio *src, enum migrate_mode mode)
89cb0888ca1483a Jan Kara2018-12-28 @775  {
96e64ba8b1be545 Matthew Wilcox (Oracle  2022-06-06  776)return 
__buffer_migrate_folio(mapping, dst, src, mode, true);
89cb0888ca1483a Jan Kara2018-12-28  777  }
9361401eb7619c0 David Howells   2006-09-30  778  #endif
1d8b85ccf1ed53a Christoph Lameter   2006-06-23  779  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
___
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


Re: [PATCH 3/6] drm/qxl: Create mouse hotspot properties on cursor planes

2022-06-02 Thread kernel test robot
Hi Zack,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-tip/drm-tip v5.18 next-20220602]
[cannot apply to airlied/drm-next tegra-drm/drm/tegra/for-next]
[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/intel-lab-lkp/linux/commits/Zack-Rusin/drm-Add-mouse-cursor-hotspot-support-to-atomic-KMS/20220602-234633
base:   git://anongit.freedesktop.org/drm/drm drm-next
config: i386-randconfig-a013 
(https://download.01.org/0day-ci/archive/20220603/202206030750.8hv8vdba-...@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 
b364c76683f8ef241025a9556300778c07b590c2)
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/intel-lab-lkp/linux/commit/0bf2395ee17bd25ae6411c560de883496256195d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Zack-Rusin/drm-Add-mouse-cursor-hotspot-support-to-atomic-KMS/20220602-234633
git checkout 0bf2395ee17bd25ae6411c560de883496256195d
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/qxl/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/qxl/qxl_display.c:486:26: warning: unused variable 'fb' 
>> [-Wunused-variable]
   struct drm_framebuffer *fb = plane_state->fb;
   ^
   drivers/gpu/drm/qxl/qxl_display.c:532:26: warning: unused variable 'fb' 
[-Wunused-variable]
   struct drm_framebuffer *fb = plane_state->fb;
   ^
   2 warnings generated.


vim +/fb +486 drivers/gpu/drm/qxl/qxl_display.c

c2ff663260fee3 Gabriel Krisman Bertazi 2017-02-27  482  
b4b27f08f9f96d Gerd Hoffmann   2021-02-17  483  static int 
qxl_primary_apply_cursor(struct qxl_device *qdev,
b4b27f08f9f96d Gerd Hoffmann   2021-02-17  484  
struct drm_plane_state *plane_state)
9428088c90b6f7 Ray Strode  2017-11-27  485  {
b4b27f08f9f96d Gerd Hoffmann   2021-02-17 @486  struct 
drm_framebuffer *fb = plane_state->fb;
b4b27f08f9f96d Gerd Hoffmann   2021-02-17  487  struct qxl_crtc 
*qcrtc = to_qxl_crtc(plane_state->crtc);
9428088c90b6f7 Ray Strode  2017-11-27  488  struct 
qxl_cursor_cmd *cmd;
9428088c90b6f7 Ray Strode  2017-11-27  489  struct 
qxl_release *release;
9428088c90b6f7 Ray Strode  2017-11-27  490  int ret = 0;
9428088c90b6f7 Ray Strode  2017-11-27  491  
9428088c90b6f7 Ray Strode  2017-11-27  492  if 
(!qcrtc->cursor_bo)
9428088c90b6f7 Ray Strode  2017-11-27  493  return 
0;
9428088c90b6f7 Ray Strode  2017-11-27  494  
9428088c90b6f7 Ray Strode  2017-11-27  495  ret = 
qxl_alloc_release_reserved(qdev, sizeof(*cmd),
9428088c90b6f7 Ray Strode  2017-11-27  496  
 QXL_RELEASE_CURSOR_CMD,
9428088c90b6f7 Ray Strode  2017-11-27  497  
 , NULL);
9428088c90b6f7 Ray Strode  2017-11-27  498  if (ret)
9428088c90b6f7 Ray Strode  2017-11-27  499  return 
ret;
9428088c90b6f7 Ray Strode  2017-11-27  500  
9428088c90b6f7 Ray Strode  2017-11-27  501  ret = 
qxl_release_list_add(release, qcrtc->cursor_bo);
9428088c90b6f7 Ray Strode  2017-11-27  502  if (ret)
9428088c90b6f7 Ray Strode  2017-11-27  503  goto 
out_free_release;
9428088c90b6f7 Ray Strode  2017-11-27  504  
9428088c90b6f7 Ray Strode  2017-11-27  505  ret = 
qxl_release_reserve_list(release, false);
9428088c90b6f7 Ray Strode  2017-11-27  506  if (ret)
9428088c90b6f7 Ray Strode  2017-11-27  507  goto 
out_free_release;
9428088c90b6f7 Ray Strode  2017-11-27  508  
9428088c90b6f7 Ray Strode  2017-11-27  509  cmd = (struct 
qxl_cursor_cmd *)qxl_release_map(qdev, release);
9428088c90b6f7 Ray Strode  2017-11-27  510  cmd->type = 
QXL_CURSOR_SET;
0bf2395ee17bd2 Zack Rusin  2022-06-02  511  
cmd->u.set.positio

Re: [PATCH 3/6] drm/qxl: Create mouse hotspot properties on cursor planes

2022-06-02 Thread kernel test robot
Hi Zack,

I love your patch! Perhaps something to improve:

[auto build test WARNING on drm/drm-next]
[also build test WARNING on drm-exynos/exynos-drm-next drm-intel/for-linux-next 
drm-tip/drm-tip v5.18 next-20220602]
[cannot apply to airlied/drm-next tegra-drm/drm/tegra/for-next]
[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/intel-lab-lkp/linux/commits/Zack-Rusin/drm-Add-mouse-cursor-hotspot-support-to-atomic-KMS/20220602-234633
base:   git://anongit.freedesktop.org/drm/drm drm-next
config: x86_64-randconfig-a011 
(https://download.01.org/0day-ci/archive/20220603/202206030624.tdmarys5-...@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-1) 11.3.0
reproduce (this is a W=1 build):
# 
https://github.com/intel-lab-lkp/linux/commit/0bf2395ee17bd25ae6411c560de883496256195d
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review 
Zack-Rusin/drm-Add-mouse-cursor-hotspot-support-to-atomic-KMS/20220602-234633
git checkout 0bf2395ee17bd25ae6411c560de883496256195d
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/qxl/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot 

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/qxl/qxl_display.c: In function 'qxl_primary_apply_cursor':
>> drivers/gpu/drm/qxl/qxl_display.c:486:33: warning: unused variable 'fb' 
>> [-Wunused-variable]
 486 | struct drm_framebuffer *fb = plane_state->fb;
 | ^~
   drivers/gpu/drm/qxl/qxl_display.c: In function 'qxl_primary_move_cursor':
   drivers/gpu/drm/qxl/qxl_display.c:532:33: warning: unused variable 'fb' 
[-Wunused-variable]
 532 | struct drm_framebuffer *fb = plane_state->fb;
 | ^~


vim +/fb +486 drivers/gpu/drm/qxl/qxl_display.c

c2ff663260fee3 Gabriel Krisman Bertazi 2017-02-27  482  
b4b27f08f9f96d Gerd Hoffmann   2021-02-17  483  static int 
qxl_primary_apply_cursor(struct qxl_device *qdev,
b4b27f08f9f96d Gerd Hoffmann   2021-02-17  484  
struct drm_plane_state *plane_state)
9428088c90b6f7 Ray Strode  2017-11-27  485  {
b4b27f08f9f96d Gerd Hoffmann   2021-02-17 @486  struct 
drm_framebuffer *fb = plane_state->fb;
b4b27f08f9f96d Gerd Hoffmann   2021-02-17  487  struct qxl_crtc 
*qcrtc = to_qxl_crtc(plane_state->crtc);
9428088c90b6f7 Ray Strode  2017-11-27  488  struct 
qxl_cursor_cmd *cmd;
9428088c90b6f7 Ray Strode  2017-11-27  489  struct 
qxl_release *release;
9428088c90b6f7 Ray Strode  2017-11-27  490  int ret = 0;
9428088c90b6f7 Ray Strode  2017-11-27  491  
9428088c90b6f7 Ray Strode  2017-11-27  492  if 
(!qcrtc->cursor_bo)
9428088c90b6f7 Ray Strode  2017-11-27  493  return 
0;
9428088c90b6f7 Ray Strode  2017-11-27  494  
9428088c90b6f7 Ray Strode  2017-11-27  495  ret = 
qxl_alloc_release_reserved(qdev, sizeof(*cmd),
9428088c90b6f7 Ray Strode  2017-11-27  496  
 QXL_RELEASE_CURSOR_CMD,
9428088c90b6f7 Ray Strode  2017-11-27  497  
 , NULL);
9428088c90b6f7 Ray Strode  2017-11-27  498  if (ret)
9428088c90b6f7 Ray Strode  2017-11-27  499  return 
ret;
9428088c90b6f7 Ray Strode  2017-11-27  500  
9428088c90b6f7 Ray Strode  2017-11-27  501  ret = 
qxl_release_list_add(release, qcrtc->cursor_bo);
9428088c90b6f7 Ray Strode  2017-11-27  502  if (ret)
9428088c90b6f7 Ray Strode  2017-11-27  503  goto 
out_free_release;
9428088c90b6f7 Ray Strode  2017-11-27  504  
9428088c90b6f7 Ray Strode  2017-11-27  505  ret = 
qxl_release_reserve_list(release, false);
9428088c90b6f7 Ray Strode  2017-11-27  506  if (ret)
9428088c90b6f7 Ray Strode  2017-11-27  507  goto 
out_free_release;
9428088c90b6f7 Ray Strode  2017-11-27  508  
9428088c90b6f7 Ray Strode  2017-11-27  509  cmd = (struct 
qxl_cursor_cmd *)qxl_release_map(qdev, release);
9428088c90b6f7 Ray Strode  2017-11-27  510  cmd->type = 
QXL_CURSOR_SET;
0bf2395ee17bd2 Zack Rusin  2022-06-02  511  
cmd->u.set.position.x = plane_state->crtc_x + plane_state->hotspot_x;
0bf2395ee17bd2 Zack Rusin  2022-06-02  5

  1   2   3   >