Re: [PATCH v2] BTRFS/NFSD: provide more unique inode number for btrfs export
by kernel test robot
Hi NeilBrown,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on nfs/linux-next]
[also build test ERROR on hch-configfs/for-next linus/master v5.14-rc7 next-20210820]
[cannot apply to kdave/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/0day-ci/linux/commits/NeilBrown/BTRFS-NFSD-provide-mor...
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
config: hexagon-randconfig-r045-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/e99ff00e4055532e35c592b50809761d8...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review NeilBrown/BTRFS-NFSD-provide-more-unique-inode-number-for-btrfs-export/20210823-120718
git checkout e99ff00e4055532e35c592b50809761d82f87595
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> fs/nfsd/nfsfh.c:593:44: error: use of undeclared identifier 'BTRFS_SUPER_MAGIC'
if (exp->ex_path.mnt->mnt_sb->s_magic == BTRFS_SUPER_MAGIC)
^
>> fs/nfsd/nfsfh.c:593:44: error: use of undeclared identifier 'BTRFS_SUPER_MAGIC'
>> fs/nfsd/nfsfh.c:593:44: error: use of undeclared identifier 'BTRFS_SUPER_MAGIC'
3 errors generated.
vim +/BTRFS_SUPER_MAGIC +593 fs/nfsd/nfsfh.c
557
558 __be32
559 fh_compose(struct svc_fh *fhp, struct svc_export *exp, struct dentry *dentry,
560 struct svc_fh *ref_fh)
561 {
562 /* ref_fh is a reference file handle.
563 * if it is non-null and for the same filesystem, then we should compose
564 * a filehandle which is of the same version, where possible.
565 * Currently, that means that if ref_fh->fh_handle.fh_version == 0xca
566 * Then create a 32byte filehandle using nfs_fhbase_old
567 *
568 */
569
570 struct inode * inode = d_inode(dentry);
571 dev_t ex_dev = exp_sb(exp)->s_dev;
572 u8 options = 0;
573
574 dprintk("nfsd: fh_compose(exp %02x:%02x/%ld %pd2, ino=%ld)\n",
575 MAJOR(ex_dev), MINOR(ex_dev),
576 (long) d_inode(exp->ex_path.dentry)->i_ino,
577 dentry,
578 (inode ? inode->i_ino : 0));
579
580 /* Choose filehandle version and fsid type based on
581 * the reference filehandle (if it is in the same export)
582 * or the export options.
583 */
584 set_version_and_fsid_type(fhp, exp, ref_fh);
585
586 /* If we have a ref_fh, then copy the fh_no_wcc setting from it. */
587 fhp->fh_no_wcc = ref_fh ? ref_fh->fh_no_wcc : false;
588
589 if (ref_fh && ref_fh->fh_export == exp) {
590 options = ref_fh->fh_handle.fh_options;
591 } else {
592 /* Set options as needed */
> 593 if (exp->ex_path.mnt->mnt_sb->s_magic == BTRFS_SUPER_MAGIC)
594 options |= NFSD_FH_OPTION_INO_UNIQUIFY;
595 }
596
597 if (ref_fh == fhp)
598 fh_put(ref_fh);
599
600 if (fhp->fh_locked || fhp->fh_dentry) {
601 printk(KERN_ERR "fh_compose: fh %pd2 not initialized!\n",
602 dentry);
603 }
604 if (fhp->fh_maxsize < NFS_FHSIZE)
605 printk(KERN_ERR "fh_compose: called with maxsize %d! %pd2\n",
606 fhp->fh_maxsize,
607 dentry);
608
609 fhp->fh_dentry = dget(dentry); /* our internal copy */
610 fhp->fh_export = exp_get(exp);
611
612 if (fhp->fh_handle.fh_version == 0xca) {
613 /* old style filehandle please */
614 memset(&fhp->fh_handle.fh_base, 0, NFS_FHSIZE);
615 fhp->fh_handle.fh_size = NFS_FHSIZE;
616 fhp->fh_handle.ofh_dcookie = 0xfeebbaca;
617 fhp->fh_handle.ofh_dev = old_encode_dev(ex_dev);
618 fhp->fh_handle.ofh_xdev = fhp->fh_handle.ofh_dev;
619 fhp->fh_handle.ofh_xino =
620 ino_t_to_u32(d_inode(exp->ex_path.dentry)->i_ino);
621 fhp->fh_handle.ofh_dirino = ino_t_to_u32(parent_ino(dentry));
622 if (inode)
623 _fh_update_old(dentry, exp, &fhp->fh_handle);
624 } else {
625 fhp->fh_handle.fh_size =
626 key_len(fhp->fh_handle.fh_fsid_type) + 4;
627 fhp->fh_handle.fh_options = options;
628
629 mk_fsid(fhp->fh_handle.fh_fsid_type,
630 fhp->fh_handle.fh_fsid,
631 ex_dev,
632 d_inode(exp->ex_path.dentry)->i_ino,
633 exp->ex_fsid, exp->ex_uuid);
634
635 if (inode)
636 _fh_update(fhp, exp, dentry);
637 if (fhp->fh_handle.fh_fileid_type == FILEID_INVALID) {
638 fh_put(fhp);
639 return nfserr_opnotsupp;
640 }
641 }
642
643 return 0;
644 }
645
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [Intel-gfx] [PATCH 1/2] drm/i915/dsi/xelpd: Add WA to program LP to HS wakeup guardband
by kernel test robot
Hi Vandita,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip next-20210820]
[cannot apply to v5.14-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]
url: https://github.com/0day-ci/linux/commits/Vandita-Kulkarni/Enable-mipi-dsi...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a005-20210822 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/d75ce0657c5bed32b206ab0461ea42eea...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vandita-Kulkarni/Enable-mipi-dsi-on-XELPD/20210823-112313
git checkout d75ce0657c5bed32b206ab0461ea42eea7514436
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/display/intel_ddi.h:10,
from drivers/gpu/drm/i915/display/icl_dsi.c:35:
drivers/gpu/drm/i915/display/icl_dsi.c: In function 'adlp_set_lp_hs_wakeup_gb':
>> drivers/gpu/drm/i915/i915_reg.h:11619:11: error: '_TGL_DSI_CHKN_REG_0' undeclared (first use in this function); did you mean 'TGL_DSI_CHKN_REG_0'?
11619 | _TGL_DSI_CHKN_REG_0, \
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:185:47: note: in definition of macro '_MMIO'
185 | #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
| ^
drivers/gpu/drm/i915/i915_reg.h:231:28: note: in expansion of macro '_PICK_EVEN'
231 | #define _PORT(port, a, b) _PICK_EVEN(port, a, b)
| ^~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:238:39: note: in expansion of macro '_PORT'
238 | #define _MMIO_PORT(port, a, b) _MMIO(_PORT(port, a, b))
| ^~~~~
drivers/gpu/drm/i915/i915_reg.h:11618:33: note: in expansion of macro '_MMIO_PORT'
11618 | #define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port, \
| ^~~~~~~~~~
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: note: in expansion of macro 'TGL_DSI_CHKN_REG'
1290 | intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:11619:11: note: each undeclared identifier is reported only once for each function it appears in
11619 | _TGL_DSI_CHKN_REG_0, \
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:185:47: note: in definition of macro '_MMIO'
185 | #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
| ^
drivers/gpu/drm/i915/i915_reg.h:231:28: note: in expansion of macro '_PICK_EVEN'
231 | #define _PORT(port, a, b) _PICK_EVEN(port, a, b)
| ^~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:238:39: note: in expansion of macro '_PORT'
238 | #define _MMIO_PORT(port, a, b) _MMIO(_PORT(port, a, b))
| ^~~~~
drivers/gpu/drm/i915/i915_reg.h:11618:33: note: in expansion of macro '_MMIO_PORT'
11618 | #define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port, \
| ^~~~~~~~~~
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: note: in expansion of macro 'TGL_DSI_CHKN_REG'
1290 | intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
| ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/i915_reg.h:11620:11: error: '_TGL_DSI_CHKN_REG_1' undeclared (first use in this function); did you mean 'TGL_DSI_CHKN_REG_1'?
11620 | _TGL_DSI_CHKN_REG_1)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:185:47: note: in definition of macro '_MMIO'
185 | #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
| ^
drivers/gpu/drm/i915/i915_reg.h:231:28: note: in expansion of macro '_PICK_EVEN'
231 | #define _PORT(port, a, b) _PICK_EVEN(port, a, b)
| ^~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:238:39: note: in expansion of macro '_PORT'
238 | #define _MMIO_PORT(port, a, b) _MMIO(_PORT(port, a, b))
| ^~~~~
drivers/gpu/drm/i915/i915_reg.h:11618:33: note: in expansion of macro '_MMIO_PORT'
11618 | #define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port, \
| ^~~~~~~~~~
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: note: in expansion of macro 'TGL_DSI_CHKN_REG'
1290 | intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
| ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/display/icl_dsi.c:1288:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
1288 | if (DISPLAY_VER(dev_priv) == 13)
| ^
vim +11619 drivers/gpu/drm/i915/i915_reg.h
11614
11615 /* TGL DSI Chicken register */
11616 #define TGL_DSI_CHKN_REG_0 0x6B0C0
11617 #define TGL_DSI_CHKN_REG_1 0x6B8C0
11618 #define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port, \
11619 _TGL_DSI_CHKN_REG_0, \
11620 _TGL_DSI_CHKN_REG_1)
11621 #define TGL_DSI_CHKN_LSHS_GB (0xF << 12)
11622
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[pci:pci/misc 7/7] include/linux/pci.h:1725:54: error: parameter name omitted
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/misc
head: 81e2ce35df9102989cefe180f41d78dd7fb8c9b9
commit: 81e2ce35df9102989cefe180f41d78dd7fb8c9b9 [7/7] PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git/commit/?i...
git remote add pci https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
git fetch --no-tags pci pci/misc
git checkout 81e2ce35df9102989cefe180f41d78dd7fb8c9b9
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/setup.c:18:
include/linux/pci.h: In function '__pci_register_driver':
>> include/linux/pci.h:1725:54: error: parameter name omitted
1725 | static inline int __must_check __pci_register_driver(struct pci_driver *,
| ^~~~~~~~~~~~~~~~~~~
include/linux/pci.h:1726:12: error: parameter name omitted
1726 | struct module *,
| ^~~~~~~~~~~~~~~
--
In file included from arch/x86/kernel/cpu/cacheinfo.c:17:
include/linux/pci.h: In function '__pci_register_driver':
>> include/linux/pci.h:1725:54: error: parameter name omitted
1725 | static inline int __must_check __pci_register_driver(struct pci_driver *,
| ^~~~~~~~~~~~~~~~~~~
include/linux/pci.h:1726:12: error: parameter name omitted
1726 | struct module *,
| ^~~~~~~~~~~~~~~
arch/x86/kernel/cpu/cacheinfo.c: In function 'init_intel_cacheinfo':
arch/x86/kernel/cpu/cacheinfo.c:727:26: warning: variable 'l3_id' set but not used [-Wunused-but-set-variable]
727 | unsigned int l2_id = 0, l3_id = 0, num_threads_sharing, index_msb;
| ^~~~~
arch/x86/kernel/cpu/cacheinfo.c:727:15: warning: variable 'l2_id' set but not used [-Wunused-but-set-variable]
727 | unsigned int l2_id = 0, l3_id = 0, num_threads_sharing, index_msb;
| ^~~~~
vim +1725 include/linux/pci.h
1718
1719 static inline void pci_set_master(struct pci_dev *dev) { }
1720 static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; }
1721 static inline void pci_disable_device(struct pci_dev *dev) { }
1722 static inline int pcim_enable_device(struct pci_dev *pdev) { return -EIO; }
1723 static inline int pci_assign_resource(struct pci_dev *dev, int i)
1724 { return -EBUSY; }
> 1725 static inline int __must_check __pci_register_driver(struct pci_driver *,
1726 struct module *,
1727 const char *mod_name)
1728 { return 0; }
1729 static inline int pci_register_driver(struct pci_driver *drv)
1730 { return 0; }
1731 static inline void pci_unregister_driver(struct pci_driver *drv) { }
1732 static inline u8 pci_find_capability(struct pci_dev *dev, int cap)
1733 { return 0; }
1734 static inline int pci_find_next_capability(struct pci_dev *dev, u8 post,
1735 int cap)
1736 { return 0; }
1737 static inline int pci_find_ext_capability(struct pci_dev *dev, int cap)
1738 { return 0; }
1739
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [Intel-gfx] [PATCH 1/2] drm/i915/dsi/xelpd: Add WA to program LP to HS wakeup guardband
by kernel test robot
Hi Vandita,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip next-20210820]
[cannot apply to v5.14-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]
url: https://github.com/0day-ci/linux/commits/Vandita-Kulkarni/Enable-mipi-dsi...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a015-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/d75ce0657c5bed32b206ab0461ea42eea...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vandita-Kulkarni/Enable-mipi-dsi-on-XELPD/20210823-112313
git checkout d75ce0657c5bed32b206ab0461ea42eea7514436
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: error: use of undeclared identifier '_TGL_DSI_CHKN_REG_0'
intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
^
drivers/gpu/drm/i915/i915_reg.h:11619:11: note: expanded from macro 'TGL_DSI_CHKN_REG'
_TGL_DSI_CHKN_REG_0, \
^
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: error: use of undeclared identifier '_TGL_DSI_CHKN_REG_1'
drivers/gpu/drm/i915/i915_reg.h:11620:11: note: expanded from macro 'TGL_DSI_CHKN_REG'
_TGL_DSI_CHKN_REG_1)
^
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: error: use of undeclared identifier '_TGL_DSI_CHKN_REG_0'
drivers/gpu/drm/i915/i915_reg.h:11619:11: note: expanded from macro 'TGL_DSI_CHKN_REG'
_TGL_DSI_CHKN_REG_0, \
^
>> drivers/gpu/drm/i915/display/icl_dsi.c:1289:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]
for_each_dsi_port(port, intel_dsi->ports)
^
drivers/gpu/drm/i915/display/intel_dsi.h:145:2: note: expanded from macro 'for_each_dsi_port'
for_each_port_masked(__port, __ports_mask)
^
drivers/gpu/drm/i915/display/intel_display.h:374:3: note: expanded from macro 'for_each_port_masked'
for_each_if((__ports_mask) & BIT(__port))
^
include/drm/drm_util.h:63:53: note: expanded from macro 'for_each_if'
#define for_each_if(condition) if (!(condition)) {} else
^
1 warning and 3 errors generated.
vim +1289 drivers/gpu/drm/i915/display/icl_dsi.c
1273
1274 /*
1275 * Wa_16012360555:ADLP
1276 * SW will have to program the "LP to HS Wakeup Guardband"
1277 * field (bits 15:12) of register offset 0x6B0C0 (DSI0)
1278 * and 0x6B8C0 (DSI1) to a value of 4 to account for the repeaters
1279 * on the HS Request/Ready PPI signaling between
1280 * the Display engine and the DPHY.
1281 */
1282 static void adlp_set_lp_hs_wakeup_gb(struct intel_encoder *encoder)
1283 {
1284 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
1285 struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);
1286 enum port port;
1287
1288 if (DISPLAY_VER(dev_priv) == 13)
> 1289 for_each_dsi_port(port, intel_dsi->ports)
1290 intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
1291 TGL_DSI_CHKN_LSHS_GB, 0x4);
1292 }
1293
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
Re: [Intel-gfx] [PATCH 1/2] drm/i915/dsi/xelpd: Add WA to program LP to HS wakeup guardband
by kernel test robot
Hi Vandita,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip next-20210820]
[cannot apply to v5.14-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]
url: https://github.com/0day-ci/linux/commits/Vandita-Kulkarni/Enable-mipi-dsi...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a006-20210822 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/d75ce0657c5bed32b206ab0461ea42eea...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vandita-Kulkarni/Enable-mipi-dsi-on-XELPD/20210823-112313
git checkout d75ce0657c5bed32b206ab0461ea42eea7514436
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/display/intel_ddi.h:10,
from drivers/gpu/drm/i915/display/icl_dsi.c:35:
drivers/gpu/drm/i915/display/icl_dsi.c: In function 'adlp_set_lp_hs_wakeup_gb':
drivers/gpu/drm/i915/i915_reg.h:11619:11: error: '_TGL_DSI_CHKN_REG_0' undeclared (first use in this function); did you mean 'TGL_DSI_CHKN_REG_0'?
11619 | _TGL_DSI_CHKN_REG_0, \
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:185:47: note: in definition of macro '_MMIO'
185 | #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
| ^
drivers/gpu/drm/i915/i915_reg.h:231:28: note: in expansion of macro '_PICK_EVEN'
231 | #define _PORT(port, a, b) _PICK_EVEN(port, a, b)
| ^~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:238:39: note: in expansion of macro '_PORT'
238 | #define _MMIO_PORT(port, a, b) _MMIO(_PORT(port, a, b))
| ^~~~~
drivers/gpu/drm/i915/i915_reg.h:11618:33: note: in expansion of macro '_MMIO_PORT'
11618 | #define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port, \
| ^~~~~~~~~~
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: note: in expansion of macro 'TGL_DSI_CHKN_REG'
1290 | intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:11619:11: note: each undeclared identifier is reported only once for each function it appears in
11619 | _TGL_DSI_CHKN_REG_0, \
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:185:47: note: in definition of macro '_MMIO'
185 | #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
| ^
drivers/gpu/drm/i915/i915_reg.h:231:28: note: in expansion of macro '_PICK_EVEN'
231 | #define _PORT(port, a, b) _PICK_EVEN(port, a, b)
| ^~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:238:39: note: in expansion of macro '_PORT'
238 | #define _MMIO_PORT(port, a, b) _MMIO(_PORT(port, a, b))
| ^~~~~
drivers/gpu/drm/i915/i915_reg.h:11618:33: note: in expansion of macro '_MMIO_PORT'
11618 | #define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port, \
| ^~~~~~~~~~
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: note: in expansion of macro 'TGL_DSI_CHKN_REG'
1290 | intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:11620:11: error: '_TGL_DSI_CHKN_REG_1' undeclared (first use in this function); did you mean 'TGL_DSI_CHKN_REG_1'?
11620 | _TGL_DSI_CHKN_REG_1)
| ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:185:47: note: in definition of macro '_MMIO'
185 | #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
| ^
drivers/gpu/drm/i915/i915_reg.h:231:28: note: in expansion of macro '_PICK_EVEN'
231 | #define _PORT(port, a, b) _PICK_EVEN(port, a, b)
| ^~~~~~~~~~
drivers/gpu/drm/i915/i915_reg.h:238:39: note: in expansion of macro '_PORT'
238 | #define _MMIO_PORT(port, a, b) _MMIO(_PORT(port, a, b))
| ^~~~~
drivers/gpu/drm/i915/i915_reg.h:11618:33: note: in expansion of macro '_MMIO_PORT'
11618 | #define TGL_DSI_CHKN_REG(port) _MMIO_PORT(port, \
| ^~~~~~~~~~
drivers/gpu/drm/i915/display/icl_dsi.c:1290:27: note: in expansion of macro 'TGL_DSI_CHKN_REG'
1290 | intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
| ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/display/icl_dsi.c:1288:5: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else]
1288 | if (DISPLAY_VER(dev_priv) == 13)
| ^
cc1: all warnings being treated as errors
vim +/else +1288 drivers/gpu/drm/i915/display/icl_dsi.c
1273
1274 /*
1275 * Wa_16012360555:ADLP
1276 * SW will have to program the "LP to HS Wakeup Guardband"
1277 * field (bits 15:12) of register offset 0x6B0C0 (DSI0)
1278 * and 0x6B8C0 (DSI1) to a value of 4 to account for the repeaters
1279 * on the HS Request/Ready PPI signaling between
1280 * the Display engine and the DPHY.
1281 */
1282 static void adlp_set_lp_hs_wakeup_gb(struct intel_encoder *encoder)
1283 {
1284 struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
1285 struct intel_dsi *intel_dsi = enc_to_intel_dsi(encoder);
1286 enum port port;
1287
> 1288 if (DISPLAY_VER(dev_priv) == 13)
1289 for_each_dsi_port(port, intel_dsi->ports)
> 1290 intel_de_rmw(dev_priv, TGL_DSI_CHKN_REG(port),
1291 TGL_DSI_CHKN_LSHS_GB, 0x4);
1292 }
1293
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[net-next:master 16/16] drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2782:8: error: implicit declaration of function 'pci_vpd_find_ro_info_keyword'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 8d63ee602da381c437c0a4ef7ea882b71d829eb6
commit: 8d63ee602da381c437c0a4ef7ea882b71d829eb6 [16/16] cxgb4: Search VPD with pci_vpd_find_ro_info_keyword()
config: riscv-randconfig-r014-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit...
git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git fetch --no-tags net-next master
git checkout 8d63ee602da381c437c0a4ef7ea882b71d829eb6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:464: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:477: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:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2775:8: error: implicit declaration of function 'pci_vpd_check_csum' [-Werror,-Wimplicit-function-declaration]
ret = pci_vpd_check_csum(vpd, VPD_LEN);
^
>> drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2782:8: error: implicit declaration of function 'pci_vpd_find_ro_info_keyword' [-Werror,-Wimplicit-function-declaration]
ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN,
^
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2782:8: note: did you mean 'pci_vpd_find_info_keyword'?
include/linux/pci.h:2349:5: note: 'pci_vpd_find_info_keyword' declared here
int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off,
^
7 warnings and 2 errors generated.
vim +/pci_vpd_find_ro_info_keyword +2782 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
2736
2737 /**
2738 * t4_get_raw_vpd_params - read VPD parameters from VPD EEPROM
2739 * @adapter: adapter to read
2740 * @p: where to store the parameters
2741 *
2742 * Reads card parameters stored in VPD EEPROM.
2743 */
2744 int t4_get_raw_vpd_params(struct adapter *adapter, struct vpd_params *p)
2745 {
2746 unsigned int id_len, pn_len, sn_len, na_len;
2747 int sn, pn, na, addr, ret = 0;
2748 u8 *vpd, base_val = 0;
2749
2750 vpd = vmalloc(VPD_LEN);
2751 if (!vpd)
2752 return -ENOMEM;
2753
2754 /* Card information normally starts at VPD_BASE but early cards had
2755 * it at 0.
2756 */
2757 ret = pci_read_vpd(adapter->pdev, VPD_BASE, 1, &base_val);
2758 if (ret < 0)
2759 goto out;
2760
2761 addr = base_val == PCI_VPD_LRDT_ID_STRING ? VPD_BASE : VPD_BASE_OLD;
2762
2763 ret = pci_read_vpd(adapter->pdev, addr, VPD_LEN, vpd);
2764 if (ret < 0)
2765 goto out;
2766
2767 if (vpd[0] != PCI_VPD_LRDT_ID_STRING) {
2768 dev_err(adapter->pdev_dev, "missing VPD ID string\n");
2769 ret = -EINVAL;
2770 goto out;
2771 }
2772
2773 id_len = pci_vpd_lrdt_size(vpd);
2774
2775 ret = pci_vpd_check_csum(vpd, VPD_LEN);
2776 if (ret) {
2777 dev_err(adapter->pdev_dev, "VPD checksum incorrect or missing\n");
2778 ret = -EINVAL;
2779 goto out;
2780 }
2781
> 2782 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN,
2783 PCI_VPD_RO_KEYWORD_SERIALNO, &sn_len);
2784 if (ret < 0)
2785 goto out;
2786 sn = ret;
2787
2788 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN,
2789 PCI_VPD_RO_KEYWORD_PARTNO, &pn_len);
2790 if (ret < 0)
2791 goto out;
2792 pn = ret;
2793
2794 ret = pci_vpd_find_ro_info_keyword(vpd, VPD_LEN, "NA", &na_len);
2795 if (ret < 0)
2796 goto out;
2797 na = ret;
2798
2799 memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, min_t(int, id_len, ID_LEN));
2800 strim(p->id);
2801 memcpy(p->sn, vpd + sn, min_t(int, sn_len, SERNUM_LEN));
2802 strim(p->sn);
2803 memcpy(p->pn, vpd + pn, min_t(int, pn_len, PN_LEN));
2804 strim(p->pn);
2805 memcpy(p->na, vpd + na, min_t(int, na_len, MACADDR_LEN));
2806 strim((char *)p->na);
2807
2808 out:
2809 vfree(vpd);
2810 if (ret < 0) {
2811 dev_err(adapter->pdev_dev, "error reading VPD\n");
2812 return ret;
2813 }
2814
2815 return 0;
2816 }
2817
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[net-next:master 14/16] drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2803:8: error: implicit declaration of function 'pci_vpd_check_csum'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 8d63ee602da381c437c0a4ef7ea882b71d829eb6
commit: 96ce96f151261e33a170cecb8a4fa664b45743ab [14/16] cxgb4: Validate VPD checksum with pci_vpd_check_csum()
config: riscv-randconfig-r014-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 79b55e5038324e61a3abf4e6a9a949c473edd858)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit...
git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git fetch --no-tags net-next master
git checkout 96ce96f151261e33a170cecb8a4fa664b45743ab
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:464: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:477: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:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:36:
In file included from drivers/net/ethernet/chelsio/cxgb4/cxgb4.h:42:
In file included from include/linux/ethtool.h:18:
In file included from include/uapi/linux/ethtool.h:19:
In file included from include/linux/if_ether.h:19:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:2803:8: error: implicit declaration of function 'pci_vpd_check_csum' [-Werror,-Wimplicit-function-declaration]
ret = pci_vpd_check_csum(vpd, VPD_LEN);
^
7 warnings and 1 error generated.
vim +/pci_vpd_check_csum +2803 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
2802
> 2803 ret = pci_vpd_check_csum(vpd, VPD_LEN);
2804 if (ret) {
2805 dev_err(adapter->pdev_dev, "VPD checksum incorrect or missing\n");
2806 ret = -EINVAL;
2807 goto out;
2808 }
2809
2810 FIND_VPD_KW(ec, "EC");
2811 FIND_VPD_KW(sn, "SN");
2812 FIND_VPD_KW(pn, "PN");
2813 FIND_VPD_KW(na, "NA");
2814 #undef FIND_VPD_KW
2815
2816 memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, id_len);
2817 strim(p->id);
2818 memcpy(p->ec, vpd + ec, EC_LEN);
2819 strim(p->ec);
2820 i = pci_vpd_info_field_size(vpd + sn - PCI_VPD_INFO_FLD_HDR_SIZE);
2821 memcpy(p->sn, vpd + sn, min(i, SERNUM_LEN));
2822 strim(p->sn);
2823 i = pci_vpd_info_field_size(vpd + pn - PCI_VPD_INFO_FLD_HDR_SIZE);
2824 memcpy(p->pn, vpd + pn, min(i, PN_LEN));
2825 strim(p->pn);
2826 memcpy(p->na, vpd + na, min(i, MACADDR_LEN));
2827 strim((char *)p->na);
2828
2829 out:
2830 vfree(vpd);
2831 return ret < 0 ? ret : 0;
2832 }
2833
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[block:for-5.15/io_uring-late 5/10] fs/io_uring.c:1429:61: warning: parameter 'locked' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.15/io_uring-late
head: 7183e74cadee8d9a65f2dbd23d41006e96ecb26e
commit: 984a7d0be18d007162655ae84db6f54d2449ed2d [5/10] io_uring: batch task work locking
config: nios2-defconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block for-5.15/io_uring-late
git checkout 984a7d0be18d007162655ae84db6f54d2449ed2d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/io_uring.c: In function 'io_queue_async_work':
>> fs/io_uring.c:1429:61: warning: parameter 'locked' set but not used [-Wunused-but-set-parameter]
1429 | static void io_queue_async_work(struct io_kiocb *req, bool *locked)
| ~~~~~~^~~~~~
vim +/locked +1429 fs/io_uring.c
1428
> 1429 static void io_queue_async_work(struct io_kiocb *req, bool *locked)
1430 {
1431 struct io_ring_ctx *ctx = req->ctx;
1432 struct io_kiocb *link = io_prep_linked_timeout(req);
1433 struct io_uring_task *tctx = req->task->io_uring;
1434
1435 /* must not take the lock, NULL it as a precaution */
1436 locked = NULL;
1437
1438 BUG_ON(!tctx);
1439 BUG_ON(!tctx->io_wq);
1440
1441 /* init ->work of the whole link before punting */
1442 io_prep_async_link(req);
1443
1444 /*
1445 * Not expected to happen, but if we do have a bug where this _can_
1446 * happen, catch it here and ensure the request is marked as
1447 * canceled. That will make io-wq go through the usual work cancel
1448 * procedure rather than attempt to run this request (or create a new
1449 * worker for it).
1450 */
1451 if (WARN_ON_ONCE(!same_thread_group(req->task, current)))
1452 req->work.flags |= IO_WQ_WORK_CANCEL;
1453
1454 trace_io_uring_queue_async_work(ctx, io_wq_is_hashed(&req->work), req,
1455 &req->work, req->flags);
1456 io_wq_enqueue(tctx->io_wq, &req->work);
1457 if (link)
1458 io_queue_linked_timeout(link);
1459 }
1460
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year