Re: [RFC PATCH 07/13] scsi: scsi_dh: ufshpb: Add ufshpb state machine
by kbuild test robot
Hi Avri,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on scsi/for-next]
[also build test ERROR on next-20200515]
[cannot apply to mkp-scsi/for-next v5.7-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Avri-Altman/scsi-ufs-Add-HPB-Sup...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
aarch64-linux-ld: drivers/scsi/device_handler/scsi_dh_ufshpb.o: in function `ufshpb_attach':
scsi_dh_ufshpb.c:(.text+0xdc): undefined reference to `sdev_prefix_printk'
aarch64-linux-ld: drivers/scsi/device_handler/scsi_dh_ufshpb.o: in function `__subregion_activate':
scsi_dh_ufshpb.c:(.text+0x1128): undefined reference to `__scsi_execute'
aarch64-linux-ld: drivers/scsi/device_handler/scsi_dh_ufshpb.o: in function `ufshpb_subregion_inactivate.constprop.0':
scsi_dh_ufshpb.c:(.text+0x1604): undefined reference to `__scsi_execute'
>> aarch64-linux-ld: scsi_dh_ufshpb.c:(.text+0x1648): undefined reference to `sdev_prefix_printk'
aarch64-linux-ld: drivers/scsi/device_handler/scsi_dh_ufshpb.o: in function `ufshpb_exit':
scsi_dh_ufshpb.c:(.exit.text+0x18): undefined reference to `scsi_unregister_device_handler'
aarch64-linux-ld: drivers/scsi/device_handler/scsi_dh_ufshpb.o: in function `ufshpb_init':
scsi_dh_ufshpb.c:(.init.text+0x2c): undefined reference to `scsi_register_device_handler'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[jkirsher-next-queue:dev-queue 7/115] drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8157:14: warning: division by zero is undefined
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue
head: 1ae51690bc317eb011c6fcc8f5549b151b347167
commit: cc703d543a3b97138318bfe7d3c86cbf78136395 [7/115] ixgbe: fix XDP redirect on archs with PAGE_SIZE above 4K
config: arm64-randconfig-r025-20200515 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project b31cb3aa5ee7ea92d830b06a0a7e42c7f2791dd4)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout cc703d543a3b97138318bfe7d3c86cbf78136395
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:2271:15: error: redefinition of 'truesize'
unsigned int truesize = ring_uses_build_skb(rx_ring) ?
^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:2267:15: note: previous definition is here
unsigned int truesize = ixgbe_rx_frame_truesize(rx_ring, size);
^
>> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8157:14: warning: division by zero is undefined [-Wdivision-by-zero]
cmd_type |= IXGBE_SET_FLAG(tx_flags, IXGBE_TX_FLAGS_HW_VLAN,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8161:14: warning: division by zero is undefined [-Wdivision-by-zero]
cmd_type |= IXGBE_SET_FLAG(tx_flags, IXGBE_TX_FLAGS_TSO,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8165:14: warning: division by zero is undefined [-Wdivision-by-zero]
cmd_type |= IXGBE_SET_FLAG(tx_flags, IXGBE_TX_FLAGS_TSTAMP,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8169:14: warning: division by zero is undefined [-Wdivision-by-zero]
cmd_type ^= IXGBE_SET_FLAG(skb->no_fcs, 1, IXGBE_ADVTXD_DCMD_IFCS);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8180:19: warning: division by zero is undefined [-Wdivision-by-zero]
olinfo_status |= IXGBE_SET_FLAG(tx_flags,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8185:19: warning: division by zero is undefined [-Wdivision-by-zero]
olinfo_status |= IXGBE_SET_FLAG(tx_flags,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8190:19: warning: division by zero is undefined [-Wdivision-by-zero]
olinfo_status |= IXGBE_SET_FLAG(tx_flags,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8198:19: warning: division by zero is undefined [-Wdivision-by-zero]
olinfo_status |= IXGBE_SET_FLAG(tx_flags,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:8147:26: note: expanded from macro 'IXGBE_SET_FLAG'
((u32)(_input & _flag) / (_flag / _result)))
^ ~~~~~~~~~~~~~~~~~
>> drivers/net/ethernet/intel/ixgbe/ixgbe_main.c:10796:45: warning: shift count >= width of type [-Wshift-count-overflow]
if (!dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) {
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
9 warnings and 1 error generated.
vim +8157 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9a799d71034c4e2 drivers/net/ixgbe/ixgbe_main.c Auke Kok 2007-09-15 8143
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8144 #define IXGBE_SET_FLAG(_input, _flag, _result) \
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8145 ((_flag <= _result) ? \
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8146 ((u32)(_input & _flag) * (_result / _flag)) : \
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8147 ((u32)(_input & _flag) / (_flag / _result)))
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8148
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8149 static u32 ixgbe_tx_cmd_type(struct sk_buff *skb, u32 tx_flags)
9a799d71034c4e2 drivers/net/ixgbe/ixgbe_main.c Auke Kok 2007-09-15 8150 {
d3d0023979c87ee drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2011-07-15 8151 /* set type for advanced descriptor with frame checksum insertion */
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8152 u32 cmd_type = IXGBE_ADVTXD_DTYP_DATA |
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8153 IXGBE_ADVTXD_DCMD_DEXT |
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8154 IXGBE_ADVTXD_DCMD_IFCS;
9a799d71034c4e2 drivers/net/ixgbe/ixgbe_main.c Auke Kok 2007-09-15 8155
d3d0023979c87ee drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2011-07-15 8156 /* set HW vlan bit if vlan is present */
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 @8157 cmd_type |= IXGBE_SET_FLAG(tx_flags, IXGBE_TX_FLAGS_HW_VLAN,
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8158 IXGBE_ADVTXD_DCMD_VLE);
3a6a4edaa59273f drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Jacob Keller 2012-05-01 8159
d3d0023979c87ee drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2011-07-15 8160 /* set segmentation enable bits for TSO/FSO */
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8161 cmd_type |= IXGBE_SET_FLAG(tx_flags, IXGBE_TX_FLAGS_TSO,
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8162 IXGBE_ADVTXD_DCMD_TSE);
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8163
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8164 /* set timestamp bit if present */
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8165 cmd_type |= IXGBE_SET_FLAG(tx_flags, IXGBE_TX_FLAGS_TSTAMP,
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8166 IXGBE_ADVTXD_MAC_TSTAMP);
9a799d71034c4e2 drivers/net/ixgbe/ixgbe_main.c Auke Kok 2007-09-15 8167
62748b7bde84618 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-07-20 8168 /* insert frame checksum */
472148c320c0d11 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-11-07 8169 cmd_type ^= IXGBE_SET_FLAG(skb->no_fcs, 1, IXGBE_ADVTXD_DCMD_IFCS);
62748b7bde84618 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2012-07-20 8170
d3d0023979c87ee drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2011-07-15 8171 return cmd_type;
d3d0023979c87ee drivers/net/ethernet/intel/ixgbe/ixgbe_main.c Alexander Duyck 2011-07-15 8172 }
9a799d71034c4e2 drivers/net/ixgbe/ixgbe_main.c Auke Kok 2007-09-15 8173
:::::: The code at line 8157 was first introduced by commit
:::::: 472148c320c0d11245932ba1315bc4ec0667ed57 ixgbe: Update ixgbe Tx flags to improve code efficiency
:::::: TO: Alexander Duyck <alexander.h.duyck(a)intel.com>
:::::: CC: Jeff Kirsher <jeffrey.t.kirsher(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[hnaz-linux-mm:master 500/523] <stdin>:1529:2: warning: #warning syscall fsinfo not implemented
by kbuild test robot
tree: https://github.com/hnaz/linux-mm master
head: 2bbf0589bfeb27800c730b76eacf34528eee5418
commit: 749bef3c5b7f66d0c3f5ad67341dec0a4c1ad53d [500/523] mm/madvise: introduce process_madvise() syscall: an external memory hinting API
config: microblaze-randconfig-r003-20200515 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 749bef3c5b7f66d0c3f5ad67341dec0a4c1ad53d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> <stdin>:1529:2: warning: #warning syscall fsinfo not implemented [-Wcpp]
--
scripts/Makefile.asm-generic:25: redundant generic-y found in arch/microblaze/include/asm/Kbuild: hw_irq.h
>> <stdin>:1529:2: warning: #warning syscall fsinfo not implemented [-Wcpp]
--
scripts/Makefile.asm-generic:25: redundant generic-y found in arch/microblaze/include/asm/Kbuild: hw_irq.h
>> <stdin>:1529:2: warning: #warning syscall fsinfo not implemented [-Wcpp]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[skn:smccc_v1_2_soc_id 7/7] drivers/firmware/smccc/soc_id.c:96:2: note: in expansion of macro 'if'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git smccc_v1_2_soc_id
head: e5d38d7d28222b9a997e1ec7521493b87d302389
commit: e5d38d7d28222b9a997e1ec7521493b87d302389 [7/7] firmware: smccc: Add ARCH_SOC_ID support
config: arm64-randconfig-r003-20200515 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout e5d38d7d28222b9a997e1ec7521493b87d302389
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/export.h:43,
from include/linux/linkage.h:7,
from include/linux/arm-smccc.h:90,
from drivers/firmware/smccc/soc_id.c:8:
drivers/firmware/smccc/soc_id.c: In function 'smccc_soc_init':
drivers/firmware/smccc/soc_id.c:96:6: error: implicit declaration of function 'arm_smccc_version_get' [-Werror=implicit-function-declaration]
96 | if (arm_smccc_version_get() < ARM_SMCCC_VERSION_1_2)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> drivers/firmware/smccc/soc_id.c:96:2: note: in expansion of macro 'if'
96 | if (arm_smccc_version_get() < ARM_SMCCC_VERSION_1_2)
| ^~
cc1: some warnings being treated as errors
vim +/if +96 drivers/firmware/smccc/soc_id.c
88
89 static int __init smccc_soc_init(void)
90 {
91 struct device *dev;
92 int ret, soc_id_rev;
93 struct arm_smccc_res res;
94 static char soc_id_str[8], soc_id_rev_str[12];
95
> 96 if (arm_smccc_version_get() < ARM_SMCCC_VERSION_1_2)
97 return 0;
98
99 ret = smccc_soc_id_support_check();
100 if (ret) {
101 pr_info("Feature not implemented, skipping ....\n");
102 return 0;
103 }
104
105 arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_SOC_ID, 0, &res);
106
107 ret = smccc_map_error_codes(res.a0);
108 if (ret) {
109 pr_err("Failed to fetch version, Err = %d\n", ret);
110 return ret;
111 }
112
113 soc_id_version = res.a0;
114
115 arm_smccc_1_1_invoke(ARM_SMCCC_ARCH_SOC_ID, 1, &res);
116
117 ret = smccc_map_error_codes(res.a0);
118 if (ret) {
119 pr_err("Failed to fetch revision, Err = %d\n", ret);
120 return ret;
121 }
122
123 soc_id_rev = res.a0;
124
125 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
126 if (!soc_dev_attr)
127 return -ENOMEM;
128
129 sprintf(soc_id_str, "0x%04x", IMP_DEF_SOC_ID(soc_id_version));
130 sprintf(soc_id_rev_str, "0x%08x", soc_id_rev);
131
132 soc_dev_attr->soc_id = soc_id_str;
133 soc_dev_attr->revision = soc_id_rev_str;
134
135 soc_dev = soc_device_register(soc_dev_attr);
136 if (IS_ERR(soc_dev)) {
137 ret = PTR_ERR(soc_dev);
138 goto free_soc;
139 }
140
141 dev = soc_device_to_device(soc_dev);
142
143 ret = devm_device_add_groups(dev, jep106_id_groups);
144 if (ret) {
145 dev_err(dev, "sysfs create failed: %d\n", ret);
146 goto unregister_soc;
147 }
148
149 pr_info("ID = %s Revision = %s\n", soc_dev_attr->soc_id,
150 soc_dev_attr->revision);
151
152 return 0;
153
154 unregister_soc:
155 soc_device_unregister(soc_dev);
156 free_soc:
157 kfree(soc_dev_attr);
158 return ret;
159 }
160 module_init(smccc_soc_init);
161
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[peterz-queue:locking/kcsan 14/21] arch/s390/kernel/uv.c:163:23: sparse: sparse: cast to non-scalar
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/kcsan
head: ffed638b6a2180da8fd002a46632d746af72b299
commit: 7b364f0949ae2dd205d5e9afa4b82ee17030d928 [14/21] READ_ONCE: Drop pointer qualifiers when reading from scalar types
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout 7b364f0949ae2dd205d5e9afa4b82ee17030d928
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/s390/kernel/uv.c:163:23: sparse: sparse: cast to non-scalar
>> arch/s390/kernel/uv.c:163:23: sparse: sparse: cast from non-scalar
include/linux/mm.h:1953:21: sparse: sparse: context imbalance in 'gmap_make_secure' - different lock contexts for basic block
--
>> arch/s390/mm/gmap.c:2666:21: sparse: sparse: cast to non-scalar
>> arch/s390/mm/gmap.c:2666:21: sparse: sparse: cast from non-scalar
arch/s390/mm/gmap.c:689:17: sparse: sparse: context imbalance in '__gmap_zap' - different lock contexts for basic block
arch/s390/mm/gmap.c:859:16: sparse: sparse: context imbalance in 'gmap_pte_op_walk' - different lock contexts for basic block
arch/s390/mm/gmap.c:898:28: sparse: sparse: context imbalance in 'gmap_pte_op_end' - unexpected unlock
arch/s390/mm/gmap.c:1004:12: sparse: sparse: context imbalance in 'gmap_protect_pte' - different lock contexts for basic block
arch/s390/mm/gmap.c:942:28: sparse: sparse: context imbalance in 'gmap_protect_range' - unexpected unlock
arch/s390/mm/gmap.c:2459:6: sparse: sparse: context imbalance in 'gmap_sync_dirty_log_pmd' - different lock contexts for basic block
--
>> arch/s390/kvm/gaccess.c:289:23: sparse: sparse: cast to non-scalar
>> arch/s390/kvm/gaccess.c:289:23: sparse: sparse: cast from non-scalar
arch/s390/kvm/gaccess.c:314:23: sparse: sparse: cast to non-scalar
arch/s390/kvm/gaccess.c:314:23: sparse: sparse: cast from non-scalar
arch/s390/kvm/gaccess.c:332:23: sparse: sparse: cast to non-scalar
arch/s390/kvm/gaccess.c:332:23: sparse: sparse: cast from non-scalar
arch/s390/kvm/gaccess.c:352:23: sparse: sparse: cast to non-scalar
arch/s390/kvm/gaccess.c:352:23: sparse: sparse: cast from non-scalar
vim +163 arch/s390/kernel/uv.c
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 159
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 160 static int make_secure_pte(pte_t *ptep, unsigned long addr,
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 161 struct page *exp_page, struct uv_cb_header *uvcb)
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 162 {
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 @163 pte_t entry = READ_ONCE(*ptep);
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 164 struct page *page;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 165 int expected, rc = 0;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 166
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 167 if (!pte_present(entry))
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 168 return -ENXIO;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 169 if (pte_val(entry) & _PAGE_INVALID)
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 170 return -ENXIO;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 171
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 172 page = pte_page(entry);
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 173 if (page != exp_page)
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 174 return -ENXIO;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 175 if (PageWriteback(page))
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 176 return -EAGAIN;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 177 expected = expected_page_refs(page);
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 178 if (!page_ref_freeze(page, expected))
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 179 return -EBUSY;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 180 set_bit(PG_arch_1, &page->flags);
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 181 rc = uv_call(0, (u64)uvcb);
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 182 page_ref_unfreeze(page, expected);
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 183 /* Return -ENXIO if the page was not mapped, -EINVAL otherwise */
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 184 if (rc)
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 185 rc = uvcb->rc == 0x10a ? -ENXIO : -EINVAL;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 186 return rc;
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 187 }
214d9bbcd3a672 Claudio Imbrenda 2020-01-21 188
:::::: The code at line 163 was first introduced by commit
:::::: 214d9bbcd3a67230b932f6cea83c078ab34d9e70 s390/mm: provide memory management functions for protected KVM guests
:::::: TO: Claudio Imbrenda <imbrenda(a)linux.ibm.com>
:::::: CC: Christian Borntraeger <borntraeger(a)de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[chrome-os:chromeos-4.4 7/7] ld.lld: error: failed to open crypto/built-in.o: Cannot allocate memory
by kbuild test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: d1974a0cf5157a22d0e7eaba08dff5500e37032a
commit: d1974a0cf5157a22d0e7eaba08dff5500e37032a [7/7] UPSTREAM: clk: fix critical clock locking
config: x86_64-randconfig-a014-20200515 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project b31cb3aa5ee7ea92d830b06a0a7e42c7f2791dd4)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout d1974a0cf5157a22d0e7eaba08dff5500e37032a
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
terminate called after throwing an instance of 'std::system_error'
what(): Resource temporarily unavailable
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
>> ld.lld: error: failed to open crypto/built-in.o: Cannot allocate memory
#0 0x0000559800dbb35a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/opt/cross/clang-b31cb3aa5e/bin/lld+0x8a335a)
#1 0x0000559800db9295 llvm::sys::RunSignalHandlers() (/opt/cross/clang-b31cb3aa5e/bin/lld+0x8a1295)
#2 0x0000559800db93b2 SignalHandler(int) (/opt/cross/clang-b31cb3aa5e/bin/lld+0x8a13b2)
#3 0x00007f1eead6d110 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14110)
#4 0x00007f1eea893781 raise (/lib/x86_64-linux-gnu/libc.so.6+0x3b781)
#5 0x00007f1eea87d55b abort (/lib/x86_64-linux-gnu/libc.so.6+0x2555b)
#6 0x00007f1eeac1680c (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x9a80c)
#7 0x00007f1eeac218f6 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xa58f6)
#8 0x00007f1eeac21961 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xa5961)
#9 0x00007f1eeac21bf5 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xa5bf5)
#10 0x00007f1eeac19478 std::__throw_system_error(int) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x9d478)
#11 0x00007f1eeac4ae69 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xcee69)
#12 0x0000559803681734 std::thread::_State_impl<std::_Bind_simple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'() ()> >::_M_run() (/opt/cross/clang-b31cb3aa5e/bin/lld+0x3169734)
#13 0x00007f1eeac4abe0 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xcebe0)
#14 0x00007f1eead61f27 start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x8f27)
#15 0x00007f1eea95531f clone (/lib/x86_64-linux-gnu/libc.so.6+0xfd31f)
/bin/bash: line 1: 66556 Aborted ld.lld -z max-page-size=0x200000 -r -o crypto/built-in.o crypto/crypto.o crypto/crypto_wq.o crypto/crypto_algapi.o crypto/aead.o crypto/crypto_blkcipher.o crypto/chainiv.o crypto/eseqiv.o crypto/seqiv.o crypto/crypto_hash.o crypto/pcompress.o crypto/akcipher.o crypto/rsa_generic.o crypto/cryptomgr.o crypto/cmac.o crypto/hmac.o crypto/xcbc.o crypto/crypto_null.o crypto/md5.o crypto/rmd128.o crypto/rmd160.o crypto/rmd320.o crypto/sha1_generic.o crypto/sha256_generic.o crypto/sha512_generic.o crypto/wp512.o crypto/gf128mul.o crypto/ecb.o crypto/cbc.o crypto/pcbc.o crypto/cts.o crypto/lrw.o crypto/xts.o crypto/ctr.o crypto/keywrap.o crypto/gcm.o crypto/ccm.o crypto/chacha20poly1305.o crypto/cryptd.o crypto/des_generic.o crypto/blowfish_generic.o crypto/blowfish_common.o crypto/twofish_generic.o crypto/twofish_common.o crypto/serpent_generic.o crypto/aes_generic.o crypto/camellia_generic.o crypto/cast_common.o crypto/cast6_generic.o crypto/arc4.o crypto/tea.o crypto/seed.o crypto/salsa20_generic.o crypto/chacha20_generic.o crypto/poly1305_generic.o crypto/deflate.o crypto/michael_mic.o crypto/crc32c_generic.o crypto/crct10dif_common.o crypto/crct10dif_generic.o crypto/authenc.o crypto/authencesn.o crypto/lz4.o crypto/lz4hc.o crypto/842.o crypto/rng.o crypto/ansi_cprng.o crypto/drbg.o crypto/jitterentropy_rng.o crypto/ghash-generic.o crypto/asymmetric_keys/built-in.o crypto/hash_info.o crypto/ablk_helper.o
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[hnaz-linux-mm:master 494/523] arch/powerpc/mm/kasan/kasan_init_32.c:124:16: error: implicit declaration of function 'pmd_ptr_k'; did you mean 'pmd_off_k'?
by kbuild test robot
tree: https://github.com/hnaz/linux-mm master
head: 2bbf0589bfeb27800c730b76eacf34528eee5418
commit: 724648314aafde8dce6440dbc849f80e45b83289 [494/523] mm: pgtable: add shortcuts for accessing kernel PMD and PTE
config: powerpc-randconfig-r002-20200515 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 724648314aafde8dce6440dbc849f80e45b83289
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
arch/powerpc/mm/kasan/kasan_init_32.c: In function 'kasan_unmap_early_shadow_vmalloc':
>> arch/powerpc/mm/kasan/kasan_init_32.c:124:16: error: implicit declaration of function 'pmd_ptr_k'; did you mean 'pmd_off_k'? [-Werror=implicit-function-declaration]
124 | pmd_t *pmd = pmd_ptr_k(k_cur);
| ^~~~~~~~~
| pmd_off_k
>> arch/powerpc/mm/kasan/kasan_init_32.c:124:16: warning: initialization of 'pmd_t *' {aka 'struct <anonymous> *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
cc1: some warnings being treated as errors
vim +124 arch/powerpc/mm/kasan/kasan_init_32.c
2edb16efc899f9 Christophe Leroy 2019-04-26 115
3d4247fcc938d0 Christophe Leroy 2020-01-14 116 static void __init kasan_unmap_early_shadow_vmalloc(void)
3d4247fcc938d0 Christophe Leroy 2020-01-14 117 {
3d4247fcc938d0 Christophe Leroy 2020-01-14 118 unsigned long k_start = (unsigned long)kasan_mem_to_shadow((void *)VMALLOC_START);
3d4247fcc938d0 Christophe Leroy 2020-01-14 119 unsigned long k_end = (unsigned long)kasan_mem_to_shadow((void *)VMALLOC_END);
3d4247fcc938d0 Christophe Leroy 2020-01-14 120 unsigned long k_cur;
3d4247fcc938d0 Christophe Leroy 2020-01-14 121 phys_addr_t pa = __pa(kasan_early_shadow_page);
3d4247fcc938d0 Christophe Leroy 2020-01-14 122
3d4247fcc938d0 Christophe Leroy 2020-01-14 123 for (k_cur = k_start & PAGE_MASK; k_cur < k_end; k_cur += PAGE_SIZE) {
4a93b1104e586f Mike Rapoport 2020-05-16 @124 pmd_t *pmd = pmd_ptr_k(k_cur);
3d4247fcc938d0 Christophe Leroy 2020-01-14 125 pte_t *ptep = pte_offset_kernel(pmd, k_cur);
3d4247fcc938d0 Christophe Leroy 2020-01-14 126
3d4247fcc938d0 Christophe Leroy 2020-01-14 127 if ((pte_val(*ptep) & PTE_RPN_MASK) != pa)
3d4247fcc938d0 Christophe Leroy 2020-01-14 128 continue;
3d4247fcc938d0 Christophe Leroy 2020-01-14 129
3d4247fcc938d0 Christophe Leroy 2020-01-14 130 __set_pte_at(&init_mm, k_cur, ptep, __pte(0), 0);
3d4247fcc938d0 Christophe Leroy 2020-01-14 131 }
3d4247fcc938d0 Christophe Leroy 2020-01-14 132 flush_tlb_kernel_range(k_start, k_end);
3d4247fcc938d0 Christophe Leroy 2020-01-14 133 }
3d4247fcc938d0 Christophe Leroy 2020-01-14 134
:::::: The code at line 124 was first introduced by commit
:::::: 4a93b1104e586f284c8400200eabf37a51a961bc powerpc-add-support-for-folded-p4d-page-tables-fix
:::::: TO: Mike Rapoport <rppt(a)linux.ibm.com>
:::::: CC: Johannes Weiner <hannes(a)cmpxchg.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[chrome-os:chromeos-4.4 7/7] ld.lld: error: failed to open kernel/trace/built-in.o: Cannot allocate memory
by kbuild test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: d1974a0cf5157a22d0e7eaba08dff5500e37032a
commit: d1974a0cf5157a22d0e7eaba08dff5500e37032a [7/7] UPSTREAM: clk: fix critical clock locking
config: x86_64-randconfig-a015-20200515 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project b31cb3aa5ee7ea92d830b06a0a7e42c7f2791dd4)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout d1974a0cf5157a22d0e7eaba08dff5500e37032a
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
terminate called after throwing an instance of 'std::system_error'
what(): Resource temporarily unavailable
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
>> ld.lld: error: failed to open kernel/trace/built-in.o: Cannot allocate memory
#0 0x000055df6ce8235a llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/opt/cross/clang-b31cb3aa5e/bin/lld+0x8a335a)
#1 0x000055df6ce80295 llvm::sys::RunSignalHandlers() (/opt/cross/clang-b31cb3aa5e/bin/lld+0x8a1295)
#2 0x000055df6ce803b2 SignalHandler(int) (/opt/cross/clang-b31cb3aa5e/bin/lld+0x8a13b2)
#3 0x00007f838bf54110 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14110)
#4 0x00007f838ba7a781 raise (/lib/x86_64-linux-gnu/libc.so.6+0x3b781)
#5 0x00007f838ba6455b abort (/lib/x86_64-linux-gnu/libc.so.6+0x2555b)
#6 0x00007f838bdfd80c (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x9a80c)
#7 0x00007f838be088f6 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xa58f6)
#8 0x00007f838be08961 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xa5961)
#9 0x00007f838be08bf5 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xa5bf5)
#10 0x00007f838be00478 std::__throw_system_error(int) (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x9d478)
#11 0x00007f838be31e69 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xcee69)
#12 0x000055df6f748734 std::thread::_State_impl<std::_Bind_simple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'() ()> >::_M_run() (/opt/cross/clang-b31cb3aa5e/bin/lld+0x3169734)
#13 0x00007f838be31be0 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0xcebe0)
#14 0x00007f838bf48f27 start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x8f27)
#15 0x00007f838bb3c31f clone (/lib/x86_64-linux-gnu/libc.so.6+0xfd31f)
/bin/bash: line 1: 167786 Aborted ld.lld -z max-page-size=0x200000 -r -o kernel/trace/built-in.o kernel/trace/trace_clock.o kernel/trace/libftrace.o kernel/trace/ring_buffer.o kernel/trace/ring_buffer_benchmark.o kernel/trace/trace.o kernel/trace/trace_output.o kernel/trace/trace_seq.o kernel/trace/trace_stat.o kernel/trace/trace_printk.o kernel/trace/trace_sched_switch.o kernel/trace/trace_functions.o kernel/trace/trace_irqsoff.o kernel/trace/trace_sched_wakeup.o kernel/trace/trace_nop.o kernel/trace/trace_stack.o kernel/trace/trace_branch.o kernel/trace/blktrace.o kernel/trace/trace_events.o kernel/trace/trace_export.o kernel/trace/trace_syscalls.o kernel/trace/trace_event_perf.o kernel/trace/trace_events_filter.o kernel/trace/trace_events_trigger.o kernel/trace/bpf_trace.o kernel/trace/trace_kprobe.o kernel/trace/power-traces.o kernel/trace/rpm-traces.o kernel/trace/trace_probe.o
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months