Re: [PATCH 09/23] MM: submit multipage reads for SWP_FS_OPS swap-space
by kernel test robot
Hi NeilBrown,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.17-rc1 next-20220124]
[cannot apply to trondmy-nfs/linux-next cifs/for-next hnaz-mm/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/NeilBrown/Repair-SWAP-over_NFS/2...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20220124/202201241613.8J5z5arQ-lk...)
compiler: powerpc-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/63bff668aa0537d7ccef9ed428809fc16...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review NeilBrown/Repair-SWAP-over_NFS/20220124-115716
git checkout 63bff668aa0537d7ccef9ed428809fc16c1a6b6c
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash
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 mm/vmscan.c:61:
mm/swap.h:66:40: warning: 'struct swap_iocb' declared inside parameter list will not be visible outside of this definition or declaration
66 | struct swap_iocb **plug);
| ^~~~~~~~~
>> mm/swap.h:67:1: error: expected identifier or '(' before '{' token
67 | {
| ^
mm/swap.h:65:19: warning: 'swap_readpage' declared 'static' but never defined [-Wunused-function]
65 | static inline int swap_readpage(struct page *page, bool do_poll,
| ^~~~~~~~~~~~~
--
In file included from mm/memory.c:89:
mm/swap.h:66:40: warning: 'struct swap_iocb' declared inside parameter list will not be visible outside of this definition or declaration
66 | struct swap_iocb **plug);
| ^~~~~~~~~
>> mm/swap.h:67:1: error: expected identifier or '(' before '{' token
67 | {
| ^
>> mm/swap.h:65:19: warning: 'swap_readpage' used but never defined
65 | static inline int swap_readpage(struct page *page, bool do_poll,
| ^~~~~~~~~~~~~
--
In file included from mm/page_alloc.c:84:
mm/swap.h:66:40: warning: 'struct swap_iocb' declared inside parameter list will not be visible outside of this definition or declaration
66 | struct swap_iocb **plug);
| ^~~~~~~~~
>> mm/swap.h:67:1: error: expected identifier or '(' before '{' token
67 | {
| ^
mm/page_alloc.c:3821:15: warning: no previous prototype for 'should_fail_alloc_page' [-Wmissing-prototypes]
3821 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from mm/page_alloc.c:84:
mm/swap.h:65:19: warning: 'swap_readpage' declared 'static' but never defined [-Wunused-function]
65 | static inline int swap_readpage(struct page *page, bool do_poll,
| ^~~~~~~~~~~~~
vim +67 mm/swap.h
50dceef273a619 NeilBrown 2022-01-24 45
50dceef273a619 NeilBrown 2022-01-24 46 struct page *read_swap_cache_async(swp_entry_t, gfp_t,
50dceef273a619 NeilBrown 2022-01-24 47 struct vm_area_struct *vma,
50dceef273a619 NeilBrown 2022-01-24 48 unsigned long addr,
63bff668aa0537 NeilBrown 2022-01-24 49 bool do_poll,
63bff668aa0537 NeilBrown 2022-01-24 50 struct swap_iocb **plug);
50dceef273a619 NeilBrown 2022-01-24 51 struct page *__read_swap_cache_async(swp_entry_t, gfp_t,
50dceef273a619 NeilBrown 2022-01-24 52 struct vm_area_struct *vma,
50dceef273a619 NeilBrown 2022-01-24 53 unsigned long addr,
50dceef273a619 NeilBrown 2022-01-24 54 bool *new_page_allocated);
50dceef273a619 NeilBrown 2022-01-24 55 struct page *swap_cluster_readahead(swp_entry_t entry, gfp_t flag,
50dceef273a619 NeilBrown 2022-01-24 56 struct vm_fault *vmf);
50dceef273a619 NeilBrown 2022-01-24 57 struct page *swapin_readahead(swp_entry_t entry, gfp_t flag,
50dceef273a619 NeilBrown 2022-01-24 58 struct vm_fault *vmf);
50dceef273a619 NeilBrown 2022-01-24 59
12cf545fe71035 NeilBrown 2022-01-24 60 static inline unsigned int page_swap_flags(struct page *page)
12cf545fe71035 NeilBrown 2022-01-24 61 {
12cf545fe71035 NeilBrown 2022-01-24 62 return page_swap_info(page)->flags;
12cf545fe71035 NeilBrown 2022-01-24 63 }
50dceef273a619 NeilBrown 2022-01-24 64 #else /* CONFIG_SWAP */
63bff668aa0537 NeilBrown 2022-01-24 @65 static inline int swap_readpage(struct page *page, bool do_poll,
63bff668aa0537 NeilBrown 2022-01-24 @66 struct swap_iocb **plug);
50dceef273a619 NeilBrown 2022-01-24 @67 {
50dceef273a619 NeilBrown 2022-01-24 68 return 0;
50dceef273a619 NeilBrown 2022-01-24 69 }
50dceef273a619 NeilBrown 2022-01-24 70
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
[sashal-stable:pending-5.10 389/399] arch/powerpc/kernel/smp.c:611:6: warning: no previous prototype for function 'crash_smp_send_stop'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: 929e0c4ef688344580bfb57a585b24b1d99a5064
commit: cdf962f344e1e3f76f392fce8eb84e2547842e62 [389/399] powerpc: handle kdump appropriately with crash_kexec_post_notifiers option
config: powerpc-randconfig-r005-20220123 (https://download.01.org/0day-ci/archive/20220124/202201241635.seiM4ELp-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.10
git checkout cdf962f344e1e3f76f392fce8eb84e2547842e62
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/powerpc/kernel/smp.c:551:6: warning: no previous prototype for function 'tick_broadcast' [-Wmissing-prototypes]
void tick_broadcast(const struct cpumask *mask)
^
arch/powerpc/kernel/smp.c:551:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tick_broadcast(const struct cpumask *mask)
^
static
arch/powerpc/kernel/smp.c:561:6: warning: no previous prototype for function 'debugger_ipi_callback' [-Wmissing-prototypes]
void debugger_ipi_callback(struct pt_regs *regs)
^
arch/powerpc/kernel/smp.c:561:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void debugger_ipi_callback(struct pt_regs *regs)
^
static
>> arch/powerpc/kernel/smp.c:611:6: warning: no previous prototype for function 'crash_smp_send_stop' [-Wmissing-prototypes]
void crash_smp_send_stop(void)
^
arch/powerpc/kernel/smp.c:611:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void crash_smp_send_stop(void)
^
static
arch/powerpc/kernel/smp.c:1410:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
bool ret;
^
4 warnings generated.
vim +/crash_smp_send_stop +611 arch/powerpc/kernel/smp.c
559
560 #ifdef CONFIG_DEBUGGER
> 561 void debugger_ipi_callback(struct pt_regs *regs)
562 {
563 debugger_ipi(regs);
564 }
565
566 void smp_send_debugger_break(void)
567 {
568 smp_send_nmi_ipi(NMI_IPI_ALL_OTHERS, debugger_ipi_callback, 1000000);
569 }
570 #endif
571
572 #ifdef CONFIG_KEXEC_CORE
573 void crash_send_ipi(void (*crash_ipi_callback)(struct pt_regs *))
574 {
575 int cpu;
576
577 smp_send_nmi_ipi(NMI_IPI_ALL_OTHERS, crash_ipi_callback, 1000000);
578 if (kdump_in_progress() && crash_wake_offline) {
579 for_each_present_cpu(cpu) {
580 if (cpu_online(cpu))
581 continue;
582 /*
583 * crash_ipi_callback will wait for
584 * all cpus, including offline CPUs.
585 * We don't care about nmi_ipi_function.
586 * Offline cpus will jump straight into
587 * crash_ipi_callback, we can skip the
588 * entire NMI dance and waiting for
589 * cpus to clear pending mask, etc.
590 */
591 do_smp_send_nmi_ipi(cpu, false);
592 }
593 }
594 }
595 #endif
596
597 #ifdef CONFIG_NMI_IPI
598 static void crash_stop_this_cpu(struct pt_regs *regs)
599 #else
600 static void crash_stop_this_cpu(void *dummy)
601 #endif
602 {
603 /*
604 * Just busy wait here and avoid marking CPU as offline to ensure
605 * register data is captured appropriately.
606 */
607 while (1)
608 cpu_relax();
609 }
610
> 611 void crash_smp_send_stop(void)
612 {
613 static bool stopped = false;
614
615 if (stopped)
616 return;
617
618 stopped = true;
619
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
[groeck-staging:hwmon-next 14/33] drivers/hwmon/lm83.c:160:21: warning: excess elements in struct initializer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head: 9b9f1e670d2c61c676039474fd2d98ca0a54ff75
commit: 165aace2ebd0b55c5589f213d55e3ac28b7aa588 [14/33] hwmon: (lm83) Use regmap
config: mips-gpr_defconfig (https://download.01.org/0day-ci/archive/20220124/202201241606.4m6075np-lk...)
compiler: mipsel-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/groeck/linux-staging.git/...
git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags groeck-staging hwmon-next
git checkout 165aace2ebd0b55c5589f213d55e3ac28b7aa588
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/hwmon/
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/hwmon/lm83.c:159:21: error: variable 'lm83_regmap_config' has initializer but incomplete type
159 | static const struct regmap_config lm83_regmap_config = {
| ^~~~~~~~~~~~~
drivers/hwmon/lm83.c:160:10: error: 'const struct regmap_config' has no member named 'reg_bits'
160 | .reg_bits = 8,
| ^~~~~~~~
>> drivers/hwmon/lm83.c:160:21: warning: excess elements in struct initializer
160 | .reg_bits = 8,
| ^
drivers/hwmon/lm83.c:160:21: note: (near initialization for 'lm83_regmap_config')
drivers/hwmon/lm83.c:161:10: error: 'const struct regmap_config' has no member named 'val_bits'
161 | .val_bits = 8,
| ^~~~~~~~
drivers/hwmon/lm83.c:161:21: warning: excess elements in struct initializer
161 | .val_bits = 8,
| ^
drivers/hwmon/lm83.c:161:21: note: (near initialization for 'lm83_regmap_config')
drivers/hwmon/lm83.c:162:10: error: 'const struct regmap_config' has no member named 'cache_type'
162 | .cache_type = REGCACHE_RBTREE,
| ^~~~~~~~~~
drivers/hwmon/lm83.c:162:23: warning: excess elements in struct initializer
162 | .cache_type = REGCACHE_RBTREE,
| ^~~~~~~~~~~~~~~
drivers/hwmon/lm83.c:162:23: note: (near initialization for 'lm83_regmap_config')
drivers/hwmon/lm83.c:163:10: error: 'const struct regmap_config' has no member named 'volatile_reg'
163 | .volatile_reg = lm83_regmap_is_volatile,
| ^~~~~~~~~~~~
drivers/hwmon/lm83.c:163:25: warning: excess elements in struct initializer
163 | .volatile_reg = lm83_regmap_is_volatile,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/hwmon/lm83.c:163:25: note: (near initialization for 'lm83_regmap_config')
drivers/hwmon/lm83.c:164:10: error: 'const struct regmap_config' has no member named 'reg_read'
164 | .reg_read = lm83_regmap_reg_read,
| ^~~~~~~~
drivers/hwmon/lm83.c:164:21: warning: excess elements in struct initializer
164 | .reg_read = lm83_regmap_reg_read,
| ^~~~~~~~~~~~~~~~~~~~
drivers/hwmon/lm83.c:164:21: note: (near initialization for 'lm83_regmap_config')
drivers/hwmon/lm83.c:165:10: error: 'const struct regmap_config' has no member named 'reg_write'
165 | .reg_write = lm83_regmap_reg_write,
| ^~~~~~~~~
drivers/hwmon/lm83.c:165:22: warning: excess elements in struct initializer
165 | .reg_write = lm83_regmap_reg_write,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/hwmon/lm83.c:165:22: note: (near initialization for 'lm83_regmap_config')
drivers/hwmon/lm83.c: In function 'lm83_probe':
drivers/hwmon/lm83.c:383:24: error: implicit declaration of function 'devm_regmap_init' [-Werror=implicit-function-declaration]
383 | data->regmap = devm_regmap_init(dev, NULL, client, &lm83_regmap_config);
| ^~~~~~~~~~~~~~~~
>> drivers/hwmon/lm83.c:383:22: warning: assignment to 'struct regmap *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
383 | data->regmap = devm_regmap_init(dev, NULL, client, &lm83_regmap_config);
| ^
drivers/hwmon/lm83.c: At top level:
drivers/hwmon/lm83.c:159:35: error: storage size of 'lm83_regmap_config' isn't known
159 | static const struct regmap_config lm83_regmap_config = {
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +160 drivers/hwmon/lm83.c
158
159 static const struct regmap_config lm83_regmap_config = {
> 160 .reg_bits = 8,
161 .val_bits = 8,
162 .cache_type = REGCACHE_RBTREE,
163 .volatile_reg = lm83_regmap_is_volatile,
164 .reg_read = lm83_regmap_reg_read,
165 .reg_write = lm83_regmap_reg_write,
166 };
167
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
[allisonhenderson-xfs-work:delayed_attrs_v26_extended 21/30] fs/xfs/libxfs/xfs_parent.c:55:1: warning: no previous prototype for 'xfs_init_parent_name_rec'
by kernel test robot
tree: https://github.com/allisonhenderson/xfs_work.git delayed_attrs_v26_extended
head: 19459f5cfa422b0a6a9cd3898892e43ecb49f8f3
commit: 71c74c8dbb3644ba2a05927c016261b776cf17c8 [21/30] xfs: parent pointer attribute creation
config: nds32-randconfig-r024-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241644.gmgcv562-lk...)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/allisonhenderson/xfs_work/commit/71c74c8dbb3644ba2a059...
git remote add allisonhenderson-xfs-work https://github.com/allisonhenderson/xfs_work.git
git fetch --no-tags allisonhenderson-xfs-work delayed_attrs_v26_extended
git checkout 71c74c8dbb3644ba2a05927c016261b776cf17c8
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash fs/xfs/
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/xfs/libxfs/xfs_parent.c:55:1: warning: no previous prototype for 'xfs_init_parent_name_rec' [-Wmissing-prototypes]
55 | xfs_init_parent_name_rec(
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> fs/xfs/libxfs/xfs_parent.c:70:1: warning: no previous prototype for 'xfs_init_parent_name_irec' [-Wmissing-prototypes]
70 | xfs_init_parent_name_irec(
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/xfs_init_parent_name_rec +55 fs/xfs/libxfs/xfs_parent.c
35
36 /*
37 * Parent pointer attribute handling.
38 *
39 * Because the attribute value is a filename component, it will never be longer
40 * than 255 bytes. This means the attribute will always be a local format
41 * attribute as it is xfs_attr_leaf_entsize_local_max() for v5 filesystems will
42 * always be larger than this (max is 75% of block size).
43 *
44 * Creating a new parent attribute will always create a new attribute - there
45 * should never, ever be an existing attribute in the tree for a new inode.
46 * ENOSPC behavior is problematic - creating the inode without the parent
47 * pointer is effectively a corruption, so we allow parent attribute creation
48 * to dip into the reserve block pool to avoid unexpected ENOSPC errors from
49 * occurring.
50 */
51
52
53 /* Initializes a xfs_parent_name_rec to be stored as an attribute name */
54 void
> 55 xfs_init_parent_name_rec(
56 struct xfs_parent_name_rec *rec,
57 struct xfs_inode *ip,
58 uint32_t p_diroffset)
59 {
60 xfs_ino_t p_ino = ip->i_ino;
61 uint32_t p_gen = VFS_I(ip)->i_generation;
62
63 rec->p_ino = cpu_to_be64(p_ino);
64 rec->p_gen = cpu_to_be32(p_gen);
65 rec->p_diroffset = cpu_to_be32(p_diroffset);
66 }
67
68 /* Initializes a xfs_parent_name_irec from an xfs_parent_name_rec */
69 void
> 70 xfs_init_parent_name_irec(
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
[sashal-stable:pending-5.10 368/399] sound/usb/mixer_maps.c:341:67: warning: excess elements in struct initializer
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head: 929e0c4ef688344580bfb57a585b24b1d99a5064
commit: 2e333ffa5a47f4a24f7e71f42baf29eba0818753 [368/399] ALSA: usb-audio: Fix dB level of Bose Revolve+ SoundLink
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220124/202201241600.5XdtfpiO-lk...)
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/sashal/linux-stable.git/c...
git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.10
git checkout 2e333ffa5a47f4a24f7e71f42baf29eba0818753
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash sound/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from sound/usb/mixer.c:98:
>> sound/usb/mixer_maps.c:341:67: warning: excess elements in struct initializer
341 | static const struct usbmix_dB_map bose_soundlink_dB = {-8283, -0, true};
| ^~~~
sound/usb/mixer_maps.c:341:67: note: (near initialization for 'bose_soundlink_dB')
vim +341 sound/usb/mixer_maps.c
339
340 /* Bose Revolve+ SoundLink, correction of dB maps */
> 341 static const struct usbmix_dB_map bose_soundlink_dB = {-8283, -0, true};
342 static const struct usbmix_name_map bose_soundlink_map[] = {
343 { 2, NULL, .dB = &bose_soundlink_dB },
344 { 0 } /* terminator */
345 };
346
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
[ammarfaizi2-block:mellanox/linux/queue-next 106/133] include/linux/rcupdate.h:390:9: error: dereferencing pointer to incomplete type 'struct mlx5e_selq_params'
by kernel test robot
tree: https://github.com/ammarfaizi2/linux-block mellanox/linux/queue-next
head: 32b13b2dd056afa99be1f0904e767d4fc980d6e2
commit: 96e88d9f06884769fac7248d445d5c031da26484 [106/133] net/mlx5e: Use select queue parameters to sync with control flow
config: i386-randconfig-a005-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241612.OX49g5Am-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/96e88d9f06884769fac7248...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block mellanox/linux/queue-next
git checkout 96e88d9f06884769fac7248d445d5c031da26484
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/rculist.h:11,
from include/linux/dcache.h:8,
from include/linux/fs.h:8,
from include/linux/highmem.h:5,
from drivers/net/ethernet/mellanox/mlx5/core/main.c:33:
drivers/net/ethernet/mellanox/mlx5/core/en/selq.h: In function 'mlx5e_selq_get_params':
>> include/linux/rcupdate.h:390:9: error: dereferencing pointer to incomplete type 'struct mlx5e_selq_params'
390 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^
include/linux/rcupdate.h:544:2: note: in expansion of macro '__rcu_dereference_check'
544 | __rcu_dereference_check((p), (c) || rcu_read_lock_bh_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/rcupdate.h:605:31: note: in expansion of macro 'rcu_dereference_bh_check'
605 | #define rcu_dereference_bh(p) rcu_dereference_bh_check(p, 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/mellanox/mlx5/core/en/selq.h:21:9: note: in expansion of macro 'rcu_dereference_bh'
21 | return rcu_dereference_bh(selq->active);
| ^~~~~~~~~~~~~~~~~~
vim +390 include/linux/rcupdate.h
76c8eaafe4f061 Paul E. McKenney 2021-04-21 380
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 381 #define __rcu_access_pointer(p, space) \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 382 ({ \
7d0ae8086b8283 Paul E. McKenney 2015-03-03 383 typeof(*p) *_________p1 = (typeof(*p) *__force)READ_ONCE(p); \
423a86a610cad1 Joel Fernandes (Google 2018-12-12 384) rcu_check_sparse(p, space); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 385 ((typeof(*p) __force __kernel *)(_________p1)); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 386 })
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 387 #define __rcu_dereference_check(p, c, space) \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 388 ({ \
ac59853c06993a Pranith Kumar 2014-11-13 389 /* Dependency order vs. p above. */ \
506458efaf153c Will Deacon 2017-10-24 @390 typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
f78f5b90c4ffa5 Paul E. McKenney 2015-06-18 391 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_check() usage"); \
423a86a610cad1 Joel Fernandes (Google 2018-12-12 392) rcu_check_sparse(p, space); \
ac59853c06993a Pranith Kumar 2014-11-13 393 ((typeof(*p) __force __kernel *)(________p1)); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 394 })
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 395 #define __rcu_dereference_protected(p, c, space) \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 396 ({ \
f78f5b90c4ffa5 Paul E. McKenney 2015-06-18 397 RCU_LOCKDEP_WARN(!(c), "suspicious rcu_dereference_protected() usage"); \
423a86a610cad1 Joel Fernandes (Google 2018-12-12 398) rcu_check_sparse(p, space); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 399 ((typeof(*p) __force __kernel *)(p)); \
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 400 })
995f1405610bd8 Paul E. McKenney 2016-07-01 401 #define rcu_dereference_raw(p) \
995f1405610bd8 Paul E. McKenney 2016-07-01 402 ({ \
995f1405610bd8 Paul E. McKenney 2016-07-01 403 /* Dependency order vs. p above. */ \
506458efaf153c Will Deacon 2017-10-24 404 typeof(p) ________p1 = READ_ONCE(p); \
995f1405610bd8 Paul E. McKenney 2016-07-01 405 ((typeof(*p) __force __kernel *)(________p1)); \
995f1405610bd8 Paul E. McKenney 2016-07-01 406 })
ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 407
:::::: The code at line 390 was first introduced by commit
:::::: 506458efaf153c1ea480591c5602a5a3ba5a3b76 locking/barriers: Convert users of lockless_dereference() to READ_ONCE()
:::::: TO: Will Deacon <will.deacon(a)arm.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
[allisonhenderson-xfs-work:delayed_attrs_v26_extended 17/30] fs/xfs/libxfs/xfs_attr.c:666:72: warning: bitwise comparison always evaluates to true
by kernel test robot
tree: https://github.com/allisonhenderson/xfs_work.git delayed_attrs_v26_extended
head: 19459f5cfa422b0a6a9cd3898892e43ecb49f8f3
commit: 721a69ffe0e2561371de01822bef355354eee926 [17/30] xfs: add parent pointer support to attribute code
config: nds32-randconfig-r024-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241531.xVqSa0gQ-lk...)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/allisonhenderson/xfs_work/commit/721a69ffe0e2561371de0...
git remote add allisonhenderson-xfs-work https://github.com/allisonhenderson/xfs_work.git
git fetch --no-tags allisonhenderson-xfs-work delayed_attrs_v26_extended
git checkout 721a69ffe0e2561371de01822bef355354eee926
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash fs/xfs/
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/xfs/libxfs/xfs_attr.c: In function 'xfs_attr_set':
>> fs/xfs/libxfs/xfs_attr.c:666:72: warning: bitwise comparison always evaluates to true [-Wtautological-compare]
666 | rsvd = ((args->attr_filter & XFS_ATTR_ROOT) | XFS_ATTR_PARENT) != 0;
| ^~
vim +666 fs/xfs/libxfs/xfs_attr.c
648
649 /*
650 * Note: If args->value is NULL the attribute will be removed, just like the
651 * Linux ->setattr API.
652 */
653 int
654 xfs_attr_set(
655 struct xfs_da_args *args)
656 {
657 struct xfs_inode *dp = args->dp;
658 struct xfs_mount *mp = dp->i_mount;
659 struct xfs_trans_res tres;
660 bool rsvd;
661 int error, local;
662 int rmt_blks = 0;
663 unsigned int total;
664 int delayed = xfs_has_larp(mp);
665
> 666 rsvd = ((args->attr_filter & XFS_ATTR_ROOT) | XFS_ATTR_PARENT) != 0;
667
668 if (xfs_is_shutdown(dp->i_mount))
669 return -EIO;
670
671 error = xfs_qm_dqattach(dp);
672 if (error)
673 return error;
674
675 args->geo = mp->m_attr_geo;
676 args->whichfork = XFS_ATTR_FORK;
677 args->hashval = xfs_da_hashname(args->name, args->namelen);
678
679 /*
680 * We have no control over the attribute names that userspace passes us
681 * to remove, so we have to allow the name lookup prior to attribute
682 * removal to fail as well.
683 */
684 args->op_flags = XFS_DA_OP_OKNOENT;
685
686 if (args->value) {
687 XFS_STATS_INC(mp, xs_attr_set);
688
689 args->op_flags |= XFS_DA_OP_ADDNAME;
690 args->total = xfs_attr_calc_size(args, &local);
691
692 /*
693 * If the inode doesn't have an attribute fork, add one.
694 * (inode must not be locked when we call this routine)
695 */
696 if (XFS_IFORK_Q(dp) == 0) {
697 int sf_size = sizeof(struct xfs_attr_sf_hdr) +
698 xfs_attr_sf_entsize_byname(args->namelen,
699 args->valuelen);
700
701 error = xfs_bmap_add_attrfork(dp, sf_size, rsvd);
702 if (error)
703 return error;
704 }
705
706 tres.tr_logres = M_RES(mp)->tr_attrsetm.tr_logres +
707 M_RES(mp)->tr_attrsetrt.tr_logres *
708 args->total;
709 tres.tr_logcount = XFS_ATTRSET_LOG_COUNT;
710 tres.tr_logflags = XFS_TRANS_PERM_LOG_RES;
711 total = args->total;
712
713 if (!local)
714 rmt_blks = xfs_attr3_rmt_blocks(mp, args->valuelen);
715 } else {
716 XFS_STATS_INC(mp, xs_attr_remove);
717
718 tres = M_RES(mp)->tr_attrrm;
719 total = XFS_ATTRRM_SPACE_RES(mp);
720 rmt_blks = xfs_attr3_rmt_blocks(mp, XFS_XATTR_SIZE_MAX);
721 }
722
723 if (delayed) {
724 error = xfs_attr_use_log_assist(mp);
725 if (error)
726 return error;
727 }
728
729 /*
730 * Root fork attributes can use reserved data blocks for this
731 * operation if necessary
732 */
733 error = xfs_trans_alloc_inode(dp, &tres, total, 0, rsvd, &args->trans);
734 if (error)
735 goto drop_incompat;
736
737 if (args->value || xfs_inode_hasattr(dp)) {
738 error = xfs_iext_count_may_overflow(dp, XFS_ATTR_FORK,
739 XFS_IEXT_ATTR_MANIP_CNT(rmt_blks));
740 if (error)
741 goto out_trans_cancel;
742 }
743
744 error = xfs_attr_lookup(args);
745 if (args->value) {
746 if (error == -EEXIST && (args->attr_flags & XATTR_CREATE))
747 goto out_trans_cancel;
748 if (error == -ENOATTR && (args->attr_flags & XATTR_REPLACE))
749 goto out_trans_cancel;
750 if (error != -ENOATTR && error != -EEXIST)
751 goto out_trans_cancel;
752
753 error = xfs_attr_set_deferred(args);
754 if (error)
755 goto out_trans_cancel;
756
757 /* shortform attribute has already been committed */
758 if (!args->trans)
759 goto out_unlock;
760 } else {
761 if (error != -EEXIST)
762 goto out_trans_cancel;
763
764 error = xfs_attr_remove_deferred(args);
765 if (error)
766 goto out_trans_cancel;
767 }
768
769 /*
770 * If this is a synchronous mount, make sure that the
771 * transaction goes to disk before returning to the user.
772 */
773 if (xfs_has_wsync(mp))
774 xfs_trans_set_sync(args->trans);
775
776 if (!(args->op_flags & XFS_DA_OP_NOTIME))
777 xfs_trans_ichgtime(args->trans, dp, XFS_ICHGTIME_CHG);
778
779 /*
780 * Commit the last in the sequence of transactions.
781 */
782 xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE);
783 error = xfs_trans_commit(args->trans);
784 out_unlock:
785 xfs_iunlock(dp, XFS_ILOCK_EXCL);
786 drop_incompat:
787 if (delayed)
788 xlog_drop_incompat_feat(mp->m_log);
789 return error;
790
791 out_trans_cancel:
792 if (args->trans)
793 xfs_trans_cancel(args->trans);
794 goto out_unlock;
795 }
796
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
ld.lld: error: init/built-in.a(main.o):(function __traceiter_initcall_level: .text+0x18): relocation R_RISCV_HI20 out of range: 528322 is not in [-524288, 524287]; references __tracepoint_initcall_level
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Cai Huoqing <caihuoqing(a)baidu.com>
CC: Borislav Petkov <bp(a)suse.de>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dd81e1c7d5fb126e5fbc5c9e334d7b3ec29a16a0
commit: 470b52564cceef62e982283cafbada41ff47903b EDAC/al_mc: Make use of the helper function devm_add_action_or_reset()
date: 4 months ago
config: riscv-buildonly-randconfig-r001-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241321.73rz7g3Z-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 470b52564cceef62e982283cafbada41ff47903b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv 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 >>):
>> ld.lld: error: init/built-in.a(main.o):(function __traceiter_initcall_level: .text+0x18): relocation R_RISCV_HI20 out of range: 528322 is not in [-524288, 524287]; references __tracepoint_initcall_level
>>> referenced by main.c
>>> defined in init/built-in.a(main.o)
--
>> ld.lld: error: init/built-in.a(main.o):(function __traceiter_initcall_start: .text+0x98): relocation R_RISCV_HI20 out of range: 528322 is not in [-524288, 524287]; references __tracepoint_initcall_start
>>> referenced by main.c
>>> defined in init/built-in.a(main.o)
--
>> ld.lld: error: init/built-in.a(main.o):(function __traceiter_initcall_finish: .text+0x11c): relocation R_RISCV_HI20 out of range: 528322 is not in [-524288, 524287]; references __tracepoint_initcall_finish
>>> referenced by main.c
>>> defined in init/built-in.a(main.o)
--
>> ld.lld: error: arch/riscv/built-in.a(kernel/patch.o):(function patch_text: .text+0x19c): relocation R_RISCV_HI20 out of range: 524294 is not in [-524288, 524287]; references patch_text_cb
>>> referenced by patch.c
>>> defined in arch/riscv/built-in.a(kernel/patch.o)
--
>> ld.lld: error: arch/riscv/built-in.a(kernel/patch.o):(function patch_text: .text+0x1a4): relocation R_RISCV_HI20 out of range: 528338 is not in [-524288, 524287]; references __cpu_online_mask
>>> referenced by patch.c
>>> defined in kernel/built-in.a(cpu.o)
--
>> ld.lld: error: arch/riscv/built-in.a(kernel/patch.o):(function patch_text_cb: .text+0xf0): relocation R_RISCV_HI20 out of range: 528338 is not in [-524288, 524287]; references __num_online_cpus
>>> referenced by patch.c
>>> defined in kernel/built-in.a(cpu.o)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks
[cxl:preview 35/53] drivers/cxl/core/hdm.c:100:28: sparse: sparse: duplicate [noderef]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head: e675fabdbbcdb6e32dba688a20fb0bd42e0e2d5d
commit: 47810cb0a1d64b0b7d06e7856981a0afcbe25a0a [35/53] cxl/core/hdm: Add CXL standard decoder enumeration to the core
config: powerpc-randconfig-s031-20220119 (https://download.01.org/0day-ci/archive/20220122/202201222308.W2DGbf9w-lk...)
compiler: powerpc-linux-gcc (GCC) 11.2.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-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/commit/?id=47...
git remote add cxl https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git
git fetch --no-tags cxl preview
git checkout 47810cb0a1d64b0b7d06e7856981a0afcbe25a0a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/cxl/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/cxl/core/hdm.c:100:28: sparse: sparse: duplicate [noderef]
>> drivers/cxl/core/hdm.c:100:28: sparse: sparse: multiple address spaces given: __iomem & __iomem
vim +100 drivers/cxl/core/hdm.c
47810cb0a1d64b Dan Williams 2022-01-19 93
47810cb0a1d64b Dan Williams 2022-01-19 94 /**
47810cb0a1d64b Dan Williams 2022-01-19 95 * devm_cxl_setup_hdm - map HDM decoder component registers
47810cb0a1d64b Dan Williams 2022-01-19 96 * @port: cxl_port to map
47810cb0a1d64b Dan Williams 2022-01-19 97 */
47810cb0a1d64b Dan Williams 2022-01-19 98 struct cxl_hdm *devm_cxl_setup_hdm(struct device *host, struct cxl_port *port)
47810cb0a1d64b Dan Williams 2022-01-19 99 {
47810cb0a1d64b Dan Williams 2022-01-19 @100 void __iomem *crb, __iomem *hdm;
47810cb0a1d64b Dan Williams 2022-01-19 101 struct device *dev = &port->dev;
47810cb0a1d64b Dan Williams 2022-01-19 102 struct cxl_hdm *cxlhdm;
47810cb0a1d64b Dan Williams 2022-01-19 103
47810cb0a1d64b Dan Williams 2022-01-19 104 cxlhdm = devm_kzalloc(host, sizeof(*cxlhdm), GFP_KERNEL);
47810cb0a1d64b Dan Williams 2022-01-19 105 if (!cxlhdm)
47810cb0a1d64b Dan Williams 2022-01-19 106 return ERR_PTR(-ENOMEM);
47810cb0a1d64b Dan Williams 2022-01-19 107
47810cb0a1d64b Dan Williams 2022-01-19 108 cxlhdm->port = port;
47810cb0a1d64b Dan Williams 2022-01-19 109 crb = devm_cxl_iomap_block(host, port->component_reg_phys,
47810cb0a1d64b Dan Williams 2022-01-19 110 CXL_COMPONENT_REG_BLOCK_SIZE);
47810cb0a1d64b Dan Williams 2022-01-19 111 if (!crb) {
47810cb0a1d64b Dan Williams 2022-01-19 112 dev_err(dev, "No component registers mapped\n");
47810cb0a1d64b Dan Williams 2022-01-19 113 return ERR_PTR(-ENXIO);
47810cb0a1d64b Dan Williams 2022-01-19 114 }
47810cb0a1d64b Dan Williams 2022-01-19 115
47810cb0a1d64b Dan Williams 2022-01-19 116 hdm = map_hdm_decoder_regs(port, crb);
47810cb0a1d64b Dan Williams 2022-01-19 117 if (IS_ERR(hdm))
47810cb0a1d64b Dan Williams 2022-01-19 118 return ERR_CAST(hdm);
47810cb0a1d64b Dan Williams 2022-01-19 119 cxlhdm->regs.hdm_decoder = hdm;
47810cb0a1d64b Dan Williams 2022-01-19 120
47810cb0a1d64b Dan Williams 2022-01-19 121 parse_hdm_decoder_caps(cxlhdm);
47810cb0a1d64b Dan Williams 2022-01-19 122 if (cxlhdm->decoder_count == 0) {
47810cb0a1d64b Dan Williams 2022-01-19 123 dev_err(dev, "Spec violation. Caps invalid\n");
47810cb0a1d64b Dan Williams 2022-01-19 124 return ERR_PTR(-ENXIO);
47810cb0a1d64b Dan Williams 2022-01-19 125 }
47810cb0a1d64b Dan Williams 2022-01-19 126
47810cb0a1d64b Dan Williams 2022-01-19 127 return cxlhdm;
47810cb0a1d64b Dan Williams 2022-01-19 128 }
47810cb0a1d64b Dan Williams 2022-01-19 129 EXPORT_SYMBOL_NS_GPL(devm_cxl_setup_hdm, CXL);
47810cb0a1d64b Dan Williams 2022-01-19 130
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
7 months, 4 weeks