[leon-rdma:rdma-next 69/78] drivers/infiniband/core/uverbs_std_types_device.c:353 ib_uverbs_handler_UVERBS_METHOD_QUERY_GID_TABLE() warn: unsigned 'num_entries' is never less than zero.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git rdma-next
head: 93f98326fc4e11126c642c8fcdcde78a3988a069
commit: 96d06cee786f3ea1f4a623ed2d88bc77059aa671 [69/78] RDMA/uverbs: Expose the new GID query API to user space
config: i386-randconfig-m021-20200911 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/infiniband/core/uverbs_std_types_device.c:353 ib_uverbs_handler_UVERBS_METHOD_QUERY_GID_TABLE() warn: unsigned 'num_entries' is never less than zero.
Old smatch warnings:
include/rdma/uverbs_ioctl.h:708 uverbs_attr_get_len() warn: passing a valid pointer to 'PTR_ERR'
drivers/infiniband/core/uverbs_std_types_device.c:291 copy_gid_entries_to_user() warn: passing a valid pointer to 'PTR_ERR'
# https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/commi...
git remote add leon-rdma https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git
git fetch --no-tags leon-rdma rdma-next
git checkout 96d06cee786f3ea1f4a623ed2d88bc77059aa671
vim +/num_entries +353 drivers/infiniband/core/uverbs_std_types_device.c
311
312 static int UVERBS_HANDLER(UVERBS_METHOD_QUERY_GID_TABLE)(
313 struct uverbs_attr_bundle *attrs)
314 {
315 struct ib_uverbs_gid_entry *entries;
316 struct ib_ucontext *ucontext;
317 struct ib_device *ib_dev;
318 size_t user_entry_size;
319 size_t max_entries;
320 size_t num_entries;
321 u32 flags;
322 int ret;
323
324 ret = uverbs_get_flags32(&flags, attrs,
325 UVERBS_ATTR_QUERY_GID_TABLE_FLAGS, 0);
326 if (ret)
327 return ret;
328
329 ret = uverbs_get_const(&user_entry_size, attrs,
330 UVERBS_ATTR_QUERY_GID_TABLE_ENTRY_SIZE);
331 if (ret)
332 return ret;
333
334 max_entries = uverbs_attr_ptr_get_array_size(
335 attrs, UVERBS_ATTR_QUERY_GID_TABLE_RESP_ENTRIES,
336 user_entry_size);
337 if (max_entries <= 0)
338 return -EINVAL;
339
340 ucontext = ib_uverbs_get_ucontext(attrs);
341 if (IS_ERR(ucontext))
342 return PTR_ERR(ucontext);
343 ib_dev = ucontext->device;
344
345 if (check_mul_overflow(max_entries, sizeof(*entries), &num_entries))
346 return -EINVAL;
347
348 entries = uverbs_zalloc(attrs, num_entries);
349 if (!entries)
350 return -ENOMEM;
351
352 num_entries = rdma_query_gid_table(ib_dev, entries, max_entries);
> 353 if (num_entries < 0)
354 return num_entries;
355
356 ret = copy_gid_entries_to_user(attrs, entries, num_entries,
357 user_entry_size);
358 if (ret)
359 return ret;
360
361 ret = uverbs_copy_to(attrs,
362 UVERBS_ATTR_QUERY_GID_TABLE_RESP_NUM_ENTRIES,
363 &num_entries, sizeof(num_entries));
364 return ret;
365 }
366
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[mellanox:queue-next 1605/1612] drivers/infiniband/hw/mlx5/mr.c:1205:3: warning: variable 'err' is used uninitialized whenever 'if' condition is true
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git queue-next
head: 68591fc13872b4971e7384508742e998a185efca
commit: c6ca03a1d0da03615a68b6132e81605985ca2ce2 [1605/1612] RDMA/mlx5: Clarify what the UMR is for when creating MRs
config: powerpc-randconfig-r035-20200913 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d6fadc49e3d7eb0977bca3ff92bf156bd059fcd4)
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
git checkout c6ca03a1d0da03615a68b6132e81605985ca2ce2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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/infiniband/hw/mlx5/mr.c:1205:3: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (WARN_ON(access_flags & IB_ACCESS_ON_DEMAND))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:56:28: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:30: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/infiniband/hw/mlx5/mr.c:1253:17: note: uninitialized use occurs here
return ERR_PTR(err);
^~~
drivers/infiniband/hw/mlx5/mr.c:1205:3: note: remove the 'if' if its condition is always false
if (WARN_ON(access_flags & IB_ACCESS_ON_DEMAND))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:56:23: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^
drivers/infiniband/hw/mlx5/mr.c:1185:9: note: initialize the variable 'err' to silence this warning
int err;
^
= 0
1 warning generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git/commit...
git remote add mellanox https://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git
git fetch --no-tags mellanox queue-next
git checkout c6ca03a1d0da03615a68b6132e81605985ca2ce2
vim +1205 drivers/infiniband/hw/mlx5/mr.c
1168
1169 /*
1170 * If ibmr is NULL it will be allocated by reg_create.
1171 * Else, the given ibmr will be used.
1172 */
1173 static struct mlx5_ib_mr *reg_create(struct ib_mr *ibmr, struct ib_pd *pd,
1174 u64 virt_addr, u64 length,
1175 struct ib_umem *umem, int npages,
1176 int page_shift, int access_flags,
1177 bool populate)
1178 {
1179 struct mlx5_ib_dev *dev = to_mdev(pd->device);
1180 struct mlx5_ib_mr *mr;
1181 __be64 *pas;
1182 void *mkc;
1183 int inlen;
1184 u32 *in;
1185 int err;
1186 bool pg_cap = !!(MLX5_CAP_GEN(dev->mdev, pg));
1187
1188 mr = ibmr ? to_mmr(ibmr) : kzalloc(sizeof(*mr), GFP_KERNEL);
1189 if (!mr)
1190 return ERR_PTR(-ENOMEM);
1191
1192 mr->ibmr.pd = pd;
1193 mr->access_flags = access_flags;
1194
1195 inlen = MLX5_ST_SZ_BYTES(create_mkey_in);
1196 if (populate)
1197 inlen += sizeof(*pas) * roundup(npages, 2);
1198 in = kvzalloc(inlen, GFP_KERNEL);
1199 if (!in) {
1200 err = -ENOMEM;
1201 goto err_1;
1202 }
1203 pas = (__be64 *)MLX5_ADDR_OF(create_mkey_in, in, klm_pas_mtt);
1204 if (populate) {
> 1205 if (WARN_ON(access_flags & IB_ACCESS_ON_DEMAND))
1206 goto err_2;
1207 mlx5_ib_populate_pas(dev, umem, page_shift, pas,
1208 pg_cap ? MLX5_IB_MTT_PRESENT : 0);
1209 }
1210
1211 /* The pg_access bit allows setting the access flags
1212 * in the page list submitted with the command. */
1213 MLX5_SET(create_mkey_in, in, pg_access, !!(pg_cap));
1214
1215 mkc = MLX5_ADDR_OF(create_mkey_in, in, memory_key_mkey_entry);
1216 set_mkc_access_pd_addr_fields(mkc, access_flags, virt_addr,
1217 populate ? pd : dev->umrc.pd);
1218 MLX5_SET(mkc, mkc, free, !populate);
1219 MLX5_SET(mkc, mkc, access_mode_1_0, MLX5_MKC_ACCESS_MODE_MTT);
1220 MLX5_SET(mkc, mkc, umr_en, 1);
1221
1222 MLX5_SET64(mkc, mkc, len, length);
1223 MLX5_SET(mkc, mkc, bsf_octword_size, 0);
1224 MLX5_SET(mkc, mkc, translations_octword_size,
1225 get_octo_len(virt_addr, length, page_shift));
1226 MLX5_SET(mkc, mkc, log_page_size, page_shift);
1227 if (populate) {
1228 MLX5_SET(create_mkey_in, in, translations_octword_actual_size,
1229 get_octo_len(virt_addr, length, page_shift));
1230 }
1231
1232 err = mlx5_ib_create_mkey(dev, &mr->mmkey, in, inlen);
1233 if (err) {
1234 mlx5_ib_warn(dev, "create mkey failed\n");
1235 goto err_2;
1236 }
1237 mr->mmkey.type = MLX5_MKEY_MR;
1238 mr->desc_size = sizeof(struct mlx5_mtt);
1239 mr->dev = dev;
1240 kvfree(in);
1241
1242 mlx5_ib_dbg(dev, "mkey = 0x%x\n", mr->mmkey.key);
1243
1244 return mr;
1245
1246 err_2:
1247 kvfree(in);
1248
1249 err_1:
1250 if (!ibmr)
1251 kfree(mr);
1252
1253 return ERR_PTR(err);
1254 }
1255
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[afaerber:rtd1295-next 129/228] ERROR: modpost: "ahci_ops" undefined!
by kernel test robot
Hi Andreas,
First bad commit (maybe != root cause):
tree: https://github.com/afaerber/linux.git rtd1295-next
head: b51760e6a71ede9753aec63ed2ccc3aa0c5d623b
commit: d2c4c9fb29cfade4a75131bff730ae15db62821b [129/228] ata: Prepare RTD1295 AHCI driver
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d2c4c9fb29cfade4a75131bff730ae15db62821b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>, old ones prefixed by <<):
>> ERROR: modpost: "ahci_ops" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_platform_suspend" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_check_ready" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_dev_classify" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_platform_resume_host" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_qoriq.ko] undefined!
>> ERROR: modpost: "ahci_ops" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_start_fis_rx" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_qc_issue" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_platform_enable_clks" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_xgene.ko] undefined!
>> ERROR: modpost: "ahci_platform_disable_clks" [drivers/ata/ahci_xgene.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_xgene.ko] undefined!
ERROR: modpost: "ahci_do_softreset" [drivers/ata/ahci_xgene.ko] undefined!
ERROR: modpost: "ahci_check_ready" [drivers/ata/ahci_xgene.ko] undefined!
ERROR: modpost: "ahci_dev_classify" [drivers/ata/ahci_xgene.ko] undefined!
ERROR: modpost: "ahci_handle_port_intr" [drivers/ata/ahci_xgene.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_xgene.ko] undefined!
ERROR: modpost: "ahci_ops" [drivers/ata/ahci_tegra.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_tegra.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_tegra.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_tegra.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_tegra.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_tegra.ko] undefined!
ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_tegra.ko] undefined!
ERROR: modpost: "ahci_platform_ops" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_platform_suspend_host" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_platform_resume_host" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_st.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_platform_suspend" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_platform_ops" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_platform_resume_host" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_sunxi.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_platform_ops" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_platform_suspend_host" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_platform_resume_host" [drivers/ata/ahci_mvebu.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_platform_resume" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_platform_suspend" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_platform_ops" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_mtk.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_platform_resume_host" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_platform_enable_regulators" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_error_handler" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_platform_suspend_host" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_platform_disable_regulators" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_ops" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_pmp_retry_srst_ops" [drivers/ata/ahci_imx.ko] undefined!
ERROR: modpost: "ahci_platform_ops" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_platform_resume" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_platform_suspend" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_check_ready" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_do_softreset" [drivers/ata/ahci_dm816.ko] undefined!
ERROR: modpost: "ahci_platform_ops" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_platform_suspend" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_platform_resume_host" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_platform_enable_resources" [drivers/ata/ahci_ceva.ko] undefined!
ERROR: modpost: "ahci_ops" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_init_host" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_get_resources" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_disable_resources" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_suspend" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_disable_clks" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_disable_phys" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_resume_host" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_enable_phys" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_platform_enable_clks" [drivers/ata/ahci_brcm.ko] undefined!
ERROR: modpost: "ahci_sdev_attrs" [drivers/ata/sata_highbank.ko] undefined!
ERROR: modpost: "ahci_shost_attrs" [drivers/ata/sata_highbank.ko] undefined!
ERROR: modpost: "ahci_ops" [drivers/ata/sata_highbank.ko] undefined!
ERROR: modpost: "ahci_dev_classify" [drivers/ata/sata_highbank.ko] undefined!
ERROR: modpost: "ahci_ignore_sss" [drivers/ata/sata_highbank.ko] undefined!
ERROR: modpost: "ahci_host_activate" [drivers/ata/sata_highbank.ko] undefined!
ERROR: modpost: "ahci_print_info" [drivers/ata/sata_highbank.ko] undefined!
ERROR: modpost: "ahci_save_initial_config" [drivers/ata/sata_highbank.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[arm64:for-next/fixes 3/3] arch/arm64/include/asm/cpufeature.h:273:2: warning: initialized field overwritten
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/fixes
head: ed888cb0d1ebce69f12794e89fbd5e2c86d40b8d
commit: ed888cb0d1ebce69f12794e89fbd5e2c86d40b8d [3/3] arm64: Allow CPUs unffected by ARM erratum 1418040 to come in late
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ed888cb0d1ebce69f12794e89fbd5e2c86d40b8d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm64/kernel/cpu_errata.c:295:13: warning: no previous prototype for 'arm64_update_smccc_conduit' [-Wmissing-prototypes]
295 | void __init arm64_update_smccc_conduit(struct alt_instr *alt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:317:13: warning: no previous prototype for 'arm64_enable_wa2_handling' [-Wmissing-prototypes]
317 | void __init arm64_enable_wa2_handling(struct alt_instr *alt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:486:13: warning: initialized field overwritten [-Woverride-init]
486 | .matches = is_affected_midr_range, \
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:498:2: note: in expansion of macro 'CAP_MIDR_RANGE'
498 | CAP_MIDR_RANGE(model, v_min, r_min, v_max, r_max)
| ^~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:506:2: note: in expansion of macro 'ERRATA_MIDR_RANGE'
506 | ERRATA_MIDR_RANGE(m, var, r_min, var, r_max)
| ^~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:747:3: note: in expansion of macro 'ERRATA_MIDR_REV_RANGE'
747 | ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4),
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:486:13: note: (near initialization for 'erratum_843419_list[0].matches')
486 | .matches = is_affected_midr_range, \
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:498:2: note: in expansion of macro 'CAP_MIDR_RANGE'
498 | CAP_MIDR_RANGE(model, v_min, r_min, v_max, r_max)
| ^~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:506:2: note: in expansion of macro 'ERRATA_MIDR_RANGE'
506 | ERRATA_MIDR_RANGE(m, var, r_min, var, r_max)
| ^~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:747:3: note: in expansion of macro 'ERRATA_MIDR_REV_RANGE'
747 | ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A53, 0, 0, 4),
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:486:13: warning: initialized field overwritten [-Woverride-init]
486 | .matches = is_affected_midr_range, \
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:498:2: note: in expansion of macro 'CAP_MIDR_RANGE'
498 | CAP_MIDR_RANGE(model, v_min, r_min, v_max, r_max)
| ^~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:510:2: note: in expansion of macro 'ERRATA_MIDR_RANGE'
510 | ERRATA_MIDR_RANGE(model, var, rev, var, rev)
| ^~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:753:3: note: in expansion of macro 'ERRATA_MIDR_REV'
753 | ERRATA_MIDR_REV(MIDR_BRAHMA_B53, 0, 0),
| ^~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:486:13: note: (near initialization for 'erratum_843419_list[1].matches')
486 | .matches = is_affected_midr_range, \
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:498:2: note: in expansion of macro 'CAP_MIDR_RANGE'
498 | CAP_MIDR_RANGE(model, v_min, r_min, v_max, r_max)
| ^~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:510:2: note: in expansion of macro 'ERRATA_MIDR_RANGE'
510 | ERRATA_MIDR_RANGE(model, var, rev, var, rev)
| ^~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:753:3: note: in expansion of macro 'ERRATA_MIDR_REV'
753 | ERRATA_MIDR_REV(MIDR_BRAHMA_B53, 0, 0),
| ^~~~~~~~~~~~~~~
In file included from arch/arm64/include/asm/ptrace.h:11,
from arch/arm64/include/asm/irqflags.h:10,
from include/linux/irqflags.h:16,
from include/linux/rcupdate.h:26,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from arch/arm64/kernel/cpu_errata.c:10:
>> arch/arm64/include/asm/cpufeature.h:273:2: warning: initialized field overwritten [-Woverride-init]
273 | (ARM64_CPUCAP_SCOPE_LOCAL_CPU | \
| ^
arch/arm64/kernel/cpu_errata.c:918:11: note: in expansion of macro 'ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE'
918 | .type = ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/include/asm/cpufeature.h:273:2: note: (near initialization for 'arm64_errata[15].type')
273 | (ARM64_CPUCAP_SCOPE_LOCAL_CPU | \
| ^
arch/arm64/kernel/cpu_errata.c:918:11: note: in expansion of macro 'ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE'
918 | .type = ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:942:14: warning: initialized field overwritten [-Woverride-init]
942 | .matches = needs_tx2_tvm_workaround,
| ^~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kernel/cpu_errata.c:942:14: note: (near initialization for 'arm64_errata[18].matches')
# https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/commit/?i...
git remote add arm64 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
git fetch --no-tags arm64 for-next/fixes
git checkout ed888cb0d1ebce69f12794e89fbd5e2c86d40b8d
vim +273 arch/arm64/include/asm/cpufeature.h
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 249
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 250 /*
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 251 * CPU errata workarounds that need to be enabled at boot time if one or
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 252 * more CPUs in the system requires it. When one of these capabilities
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 253 * has been enabled, it is safe to allow any CPU to boot that doesn't
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 254 * require the workaround. However, it is not safe if a "late" CPU
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 255 * requires a workaround and the system hasn't enabled it already.
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 256 */
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 257 #define ARM64_CPUCAP_LOCAL_CPU_ERRATUM \
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 258 (ARM64_CPUCAP_SCOPE_LOCAL_CPU | ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU)
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 259 /*
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 260 * CPU feature detected at boot time based on system-wide value of a
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 261 * feature. It is safe for a late CPU to have this feature even though
ca7f686ac9fe87a Will Deacon 2018-06-15 262 * the system hasn't enabled it, although the feature will not be used
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 263 * by Linux in this case. If the system has enabled this feature already,
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 264 * then every late CPU must have it.
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 265 */
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 266 #define ARM64_CPUCAP_SYSTEM_FEATURE \
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 267 (ARM64_CPUCAP_SCOPE_SYSTEM | ARM64_CPUCAP_PERMITTED_FOR_LATE_CPU)
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 268 /*
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 269 * CPU feature detected at boot time based on feature of one or more CPUs.
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 270 * All possible conflicts for a late CPU are ignored.
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 271 */
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 272 #define ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE \
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 @273 (ARM64_CPUCAP_SCOPE_LOCAL_CPU | \
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 274 ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU | \
5c137714dd8cae4 Suzuki K Poulose 2018-03-26 275 ARM64_CPUCAP_PERMITTED_FOR_LATE_CPU)
5b4747c5dce7a87 Suzuki K Poulose 2018-03-26 276
:::::: The code at line 273 was first introduced by commit
:::::: 5c137714dd8cae464dbd5f028c07af149e6d09fc arm64: capabilities: Introduce weak features based on local CPU
:::::: TO: Suzuki K Poulose <suzuki.poulose(a)arm.com>
:::::: CC: Will Deacon <will.deacon(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
arch/mips/include/asm/atomic.h:49:1: warning: converting the result of '<<' to a boolean always evaluates to true
by kernel test robot
Hi Nathan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ef2e9a563b0cd7965e2a1263125dcbb1c86aa6cc
commit: afe956c577b2d5a3d9834e4424587c1ebcf90c4c kbuild: Enable -Wtautological-compare
date: 5 months ago
config: mips-randconfig-r014-20200913 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d6fadc49e3d7eb0977bca3ff92bf156bd059fcd4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git checkout afe956c577b2d5a3d9834e4424587c1ebcf90c4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
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 >>):
clang-12: warning: argument unused during compilation: '-mno-branch-likely' [-Wunused-command-line-argument]
clang-12: warning: argument unused during compilation: '-mno-branch-likely' [-Wunused-command-line-argument]
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
>> arch/mips/include/asm/atomic.h:49:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_OPS(atomic, int)
^
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:194:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
>> arch/mips/include/asm/atomic.h:49:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:204:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
>> arch/mips/include/asm/atomic.h:49:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:45:9: note: expanded from macro 'ATOMIC_OPS'
return xchg(&v->counter, n); \
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:53:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_OPS(atomic64, s64)
^
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:194:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:53:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:204:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:53:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:45:9: note: expanded from macro 'ATOMIC_OPS'
return xchg(&v->counter, n); \
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:258:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_SIP_OP(atomic, int, subu, ll, sc)
^
arch/mips/include/asm/atomic.h:252:7: note: expanded from macro 'ATOMIC_SIP_OP'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
In file included from include/linux/debug_locks.h:6:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:262:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_SIP_OP(atomic64, s64, dsubu, lld, scd)
^
arch/mips/include/asm/atomic.h:252:7: note: expanded from macro 'ATOMIC_SIP_OP'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from kernel/bounds.c:14:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
>> include/linux/debug_locks.h:17:9: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
return xchg(&debug_locks, 0);
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
9 warnings generated.
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
>> arch/mips/include/asm/atomic.h:49:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_OPS(atomic, int)
^
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:194:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
>> arch/mips/include/asm/atomic.h:49:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:204:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
>> arch/mips/include/asm/atomic.h:49:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:45:9: note: expanded from macro 'ATOMIC_OPS'
return xchg(&v->counter, n); \
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:53:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_OPS(atomic64, s64)
^
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:194:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:53:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:40:9: note: expanded from macro 'ATOMIC_OPS'
return cmpxchg(&v->counter, o, n); \
^
arch/mips/include/asm/cmpxchg.h:204:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:53:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/atomic.h:45:9: note: expanded from macro 'ATOMIC_OPS'
return xchg(&v->counter, n); \
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:258:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_SIP_OP(atomic, int, subu, ll, sc)
^
arch/mips/include/asm/atomic.h:252:7: note: expanded from macro 'ATOMIC_SIP_OP'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from ./arch/mips/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
In file included from include/linux/thread_info.h:38:
In file included from arch/mips/include/asm/thread_info.h:16:
In file included from arch/mips/include/asm/processor.h:14:
In file included from include/linux/atomic.h:7:
arch/mips/include/asm/atomic.h:262:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
ATOMIC_SIP_OP(atomic64, s64, dsubu, lld, scd)
^
arch/mips/include/asm/atomic.h:252:7: note: expanded from macro 'ATOMIC_SIP_OP'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:83:
In file included from include/linux/spinlock_types.h:18:
In file included from include/linux/lockdep.h:44:
>> include/linux/debug_locks.h:17:9: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
return xchg(&debug_locks, 0);
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:10:
In file included from include/linux/time.h:74:
In file included from include/linux/time32.h:13:
In file included from include/linux/timex.h:65:
In file included from arch/mips/include/asm/timex.h:19:
In file included from arch/mips/include/asm/cpu-type.h:12:
In file included from include/linux/smp.h:15:
>> include/linux/llist.h:222:9: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
return xchg(&head->first, NULL);
^
arch/mips/include/asm/cmpxchg.h:102:7: note: expanded from macro 'xchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:9:
include/linux/topology.h:119:9: error: implicit declaration of function 'cpu_logical_map' [-Werror,-Wimplicit-function-declaration]
return cpu_to_node(raw_smp_processor_id());
^
arch/mips/include/asm/mach-loongson64/topology.h:7:27: note: expanded from macro 'cpu_to_node'
#define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:9:
include/linux/topology.h:176:9: error: implicit declaration of function 'cpu_logical_map' [-Werror,-Wimplicit-function-declaration]
return cpu_to_node(cpu);
^
arch/mips/include/asm/mach-loongson64/topology.h:7:27: note: expanded from macro 'cpu_to_node'
#define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
^
In file included from arch/mips/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:10:
In file included from include/crypto/hash.h:11:
In file included from include/linux/crypto.h:19:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:9:
include/linux/topology.h:210:25: error: implicit declaration of function 'cpu_logical_map' [-Werror,-Wimplicit-function-declaration]
return cpumask_of_node(cpu_to_node(cpu));
^
arch/mips/include/asm/mach-loongson64/topology.h:7:27: note: expanded from macro 'cpu_to_node'
#define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2)
^
In file included from arch/mips/kernel/asm-offsets.c:15:
In file included from include/linux/mm.h:95:
>> arch/mips/include/asm/pgtable.h:210:3: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
cmpxchg64(&buddy->pte, 0, _PAGE_GLOBAL);
^
arch/mips/include/asm/cmpxchg.h:220:2: note: expanded from macro 'cmpxchg64'
cmpxchg((ptr), (o), (n)); \
^
arch/mips/include/asm/cmpxchg.h:194:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:15:
In file included from include/linux/mm.h:95:
>> arch/mips/include/asm/pgtable.h:210:3: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/cmpxchg.h:220:2: note: expanded from macro 'cmpxchg64'
cmpxchg((ptr), (o), (n)); \
^
arch/mips/include/asm/cmpxchg.h:204:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:24:
>> include/linux/kvm_host.h:332:9: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
return cmpxchg(&vcpu->mode, IN_GUEST_MODE, EXITING_GUEST_MODE);
^
arch/mips/include/asm/cmpxchg.h:194:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
In file included from arch/mips/kernel/asm-offsets.c:24:
>> include/linux/kvm_host.h:332:9: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautological-constant-compare]
arch/mips/include/asm/cmpxchg.h:204:7: note: expanded from macro 'cmpxchg'
if (!__SYNC_loongson3_war) \
^
arch/mips/include/asm/sync.h:147:34: note: expanded from macro '__SYNC_loongson3_war'
# define __SYNC_loongson3_war (1 << 31)
^
arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for function 'output_ptreg_defines' [-Wmissing-prototypes]
void output_ptreg_defines(void)
^
arch/mips/kernel/asm-offsets.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_ptreg_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for function 'output_task_defines' [-Wmissing-prototypes]
void output_task_defines(void)
^
arch/mips/kernel/asm-offsets.c:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_task_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for function 'output_thread_info_defines' [-Wmissing-prototypes]
void output_thread_info_defines(void)
^
arch/mips/kernel/asm-offsets.c:93:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_thread_info_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for function 'output_thread_defines' [-Wmissing-prototypes]
void output_thread_defines(void)
^
arch/mips/kernel/asm-offsets.c:110:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_thread_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for function 'output_thread_fpu_defines' [-Wmissing-prototypes]
void output_thread_fpu_defines(void)
^
arch/mips/kernel/asm-offsets.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_thread_fpu_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for function 'output_mm_defines' [-Wmissing-prototypes]
void output_mm_defines(void)
^
arch/mips/kernel/asm-offsets.c:181:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_mm_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:242:6: warning: no previous prototype for function 'output_sc_defines' [-Wmissing-prototypes]
void output_sc_defines(void)
^
arch/mips/kernel/asm-offsets.c:242:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_sc_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for function 'output_signal_defined' [-Wmissing-prototypes]
void output_signal_defined(void)
^
arch/mips/kernel/asm-offsets.c:255:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_signal_defined(void)
^
static
arch/mips/kernel/asm-offsets.c:334:6: warning: no previous prototype for function 'output_pm_defines' [-Wmissing-prototypes]
void output_pm_defines(void)
^
arch/mips/kernel/asm-offsets.c:334:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_pm_defines(void)
^
static
arch/mips/kernel/asm-offsets.c:348:6: warning: no previous prototype for function 'output_kvm_defines' [-Wmissing-prototypes]
void output_kvm_defines(void)
^
arch/mips/kernel/asm-offsets.c:348:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void output_kvm_defines(void)
^
static
24 warnings and 3 errors generated.
make[2]: *** [scripts/Makefile.build:101: arch/mips/kernel/asm-offsets.s] Error 1
make[2]: Target 'missing-syscalls' not remade because of errors.
make[1]: *** [arch/mips/Makefile:414: archprepare] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:180: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
# 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 afe956c577b2d5a3d9834e4424587c1ebcf90c4c
vim +49 arch/mips/include/asm/atomic.h
^1da177e4c3f41 include/asm-mips/atomic.h Linus Torvalds 2005-04-16 47
1da7bce8591d58 arch/mips/include/asm/atomic.h Paul Burton 2019-10-01 48 #define ATOMIC_INIT(i) { (i) }
1da7bce8591d58 arch/mips/include/asm/atomic.h Paul Burton 2019-10-01 @49 ATOMIC_OPS(atomic, int)
^1da177e4c3f41 include/asm-mips/atomic.h Linus Torvalds 2005-04-16 50
:::::: The code at line 49 was first introduced by commit
:::::: 1da7bce8591d58bf2a442b0324659af7390401c2 MIPS: atomic: Deduplicate 32b & 64b read, set, xchg, cmpxchg
:::::: TO: Paul Burton <paul.burton(a)mips.com>
:::::: CC: Paul Burton <paul.burton(a)mips.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[ragnatech:media-tree 319/322] include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'}
by kernel test robot
tree: git://git.ragnatech.se/linux media-tree
head: c4176e12a755d0c761736c14bd2656ffc733eb95
commit: f90cf6079bf67988f8b1ad1ade70fc89d0080905 [319/322] media: vidtv: add a bridge driver
config: nios2-randconfig-r002-20200913 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout f90cf6079bf67988f8b1ad1ade70fc89d0080905
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.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 >>):
In file included from drivers/media/test-drivers/vidtv/vidtv_common.c:11:
drivers/media/test-drivers/vidtv/vidtv_common.c: In function 'vidtv_memcpy':
>> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro 'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:522:21: note: in expansion of macro 'KERN_ERR'
522 | printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_common.c:45:3: note: in expansion of macro 'pr_err_ratelimited'
45 | pr_err_ratelimited("overflow detected, skipping. Try increasing the buffer size. Needed %lu, had %zu\n",
| ^~~~~~~~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_common.c: In function 'vidtv_memset':
>> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro 'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:11:18: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:522:21: note: in expansion of macro 'KERN_ERR'
522 | printk_ratelimited(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_common.c:81:3: note: in expansion of macro 'pr_err_ratelimited'
81 | pr_err_ratelimited("overflow detected, skipping. Try increasing the buffer size. Needed %lu, had %zu\n",
| ^~~~~~~~~~~~~~~~~~
--
In file included from include/linux/ratelimit_types.h:5,
from include/linux/printk.h:10,
from drivers/media/test-drivers/vidtv/vidtv_pes.c:17:
drivers/media/test-drivers/vidtv/vidtv_pes.c: In function 'vidtv_pes_write_pts_dts':
>> include/linux/bits.h:36:11: warning: right shift count is negative [-Wshift-count-negative]
36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
| ^~
include/linux/bits.h:38:31: note: in expansion of macro '__GENMASK'
38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_pes.c:98:10: note: in expansion of macro 'GENMASK'
98 | mask1 = GENMASK(32, 30);
| ^~~~~~~
--
In file included from include/linux/kernel.h:15,
from include/asm-generic/bug.h:20,
from ./arch/nios2/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/media/test-drivers/vidtv/vidtv_s302m.c:21:
drivers/media/test-drivers/vidtv/vidtv_s302m.c: In function 'vidtv_s302m_write_frames':
>> include/linux/kern_levels.h:5:18: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' {aka 'unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:508:10: note: in definition of macro 'printk_ratelimited'
508 | printk(fmt, ##__VA_ARGS__); \
| ^~~
include/linux/kern_levels.h:12:22: note: in expansion of macro 'KERN_SOH'
12 | #define KERN_WARNING KERN_SOH "4" /* warning conditions */
| ^~~~~~~~
include/linux/printk.h:524:21: note: in expansion of macro 'KERN_WARNING'
524 | printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~
drivers/media/test-drivers/vidtv/vidtv_s302m.c:425:4: note: in expansion of macro 'pr_warn_ratelimited'
425 | pr_warn_ratelimited("write size was %d, expected %lu\n",
| ^~~~~~~~~~~~~~~~~~~
git remote add ragnatech git://git.ragnatech.se/linux
git fetch --no-tags ragnatech media-tree
git checkout f90cf6079bf67988f8b1ad1ade70fc89d0080905
vim +5 include/linux/kern_levels.h
314ba3520e513a7 Joe Perches 2012-07-30 4
04d2c8c83d0e3ac Joe Perches 2012-07-30 @5 #define KERN_SOH "\001" /* ASCII Start Of Header */
04d2c8c83d0e3ac Joe Perches 2012-07-30 6 #define KERN_SOH_ASCII '\001'
04d2c8c83d0e3ac Joe Perches 2012-07-30 7
:::::: The code at line 5 was first introduced by commit
:::::: 04d2c8c83d0e3ac5f78aeede51babb3236200112 printk: convert the format for KERN_<LEVEL> to a 2 byte pattern
:::::: TO: Joe Perches <joe(a)perches.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
drivers/bluetooth/hci_qca.c:1692:35: warning: unused variable 'qca_soc_data_wcn3990'
by kernel test robot
Hi Rocky,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ef2e9a563b0cd7965e2a1263125dcbb1c86aa6cc
commit: e5d6468fe9d8dced9af0c548a359a7dbeb31c931 Bluetooth: hci_qca: Add support for Qualcomm Bluetooth SoC QCA6390
date: 5 months ago
config: x86_64-randconfig-r026-20200912 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 45d0343900d3005d1d00cbb1a87c419c085dec71)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout e5d6468fe9d8dced9af0c548a359a7dbeb31c931
# 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/bluetooth/hci_qca.c:1692:35: warning: unused variable 'qca_soc_data_wcn3990' [-Wunused-const-variable]
static const struct qca_vreg_data qca_soc_data_wcn3990 = {
^
>> drivers/bluetooth/hci_qca.c:1703:35: warning: unused variable 'qca_soc_data_wcn3991' [-Wunused-const-variable]
static const struct qca_vreg_data qca_soc_data_wcn3991 = {
^
>> drivers/bluetooth/hci_qca.c:1714:35: warning: unused variable 'qca_soc_data_wcn3998' [-Wunused-const-variable]
static const struct qca_vreg_data qca_soc_data_wcn3998 = {
^
3 warnings generated.
# 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 e5d6468fe9d8dced9af0c548a359a7dbeb31c931
vim +/qca_soc_data_wcn3990 +1692 drivers/bluetooth/hci_qca.c
0ff252c1976da5d Ben Young Tae Kim 2015-08-10 1691
523760b7ff88712 Harish Bandi 2019-04-26 @1692 static const struct qca_vreg_data qca_soc_data_wcn3990 = {
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03 1693 .soc_type = QCA_WCN3990,
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03 1694 .vregs = (struct qca_vreg []) {
f2edd66e515b994 Bjorn Andersson 2019-10-17 1695 { "vddio", 15000 },
f2edd66e515b994 Bjorn Andersson 2019-10-17 1696 { "vddxo", 80000 },
f2edd66e515b994 Bjorn Andersson 2019-10-17 1697 { "vddrf", 300000 },
f2edd66e515b994 Bjorn Andersson 2019-10-17 1698 { "vddch0", 450000 },
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03 1699 },
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03 1700 .num_vregs = 4,
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03 1701 };
fa9ad876b8e0ebd Balakrishna Godavarthi 2018-08-03 1702
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 @1703 static const struct qca_vreg_data qca_soc_data_wcn3991 = {
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1704 .soc_type = QCA_WCN3991,
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1705 .vregs = (struct qca_vreg []) {
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1706 { "vddio", 15000 },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1707 { "vddxo", 80000 },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1708 { "vddrf", 300000 },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1709 { "vddch0", 450000 },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1710 },
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1711 .num_vregs = 4,
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1712 };
7d250a062f75e6e Balakrishna Godavarthi 2019-11-06 1713
523760b7ff88712 Harish Bandi 2019-04-26 @1714 static const struct qca_vreg_data qca_soc_data_wcn3998 = {
523760b7ff88712 Harish Bandi 2019-04-26 1715 .soc_type = QCA_WCN3998,
523760b7ff88712 Harish Bandi 2019-04-26 1716 .vregs = (struct qca_vreg []) {
f2edd66e515b994 Bjorn Andersson 2019-10-17 1717 { "vddio", 10000 },
f2edd66e515b994 Bjorn Andersson 2019-10-17 1718 { "vddxo", 80000 },
f2edd66e515b994 Bjorn Andersson 2019-10-17 1719 { "vddrf", 300000 },
f2edd66e515b994 Bjorn Andersson 2019-10-17 1720 { "vddch0", 450000 },
523760b7ff88712 Harish Bandi 2019-04-26 1721 },
523760b7ff88712 Harish Bandi 2019-04-26 1722 .num_vregs = 4,
523760b7ff88712 Harish Bandi 2019-04-26 1723 };
523760b7ff88712 Harish Bandi 2019-04-26 1724
:::::: The code at line 1692 was first introduced by commit
:::::: 523760b7ff8871281aaedc44c305926469ab47f8 Bluetooth: hci_qca: Added support for WCN3998
:::::: TO: Harish Bandi <c-hbandi(a)codeaurora.org>
:::::: CC: Marcel Holtmann <marcel(a)holtmann.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-next:master 3068/7089] drivers/net/mdio/mdio-xgene.c:302:34: warning: unused variable 'xgene_mdio_of_match'
by kernel test robot
Hi Andrew,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d5b2251d63b5344ee827d3680fa79bdb9f9ddfa1
commit: a9770eac511ad82390b9f4a3c1728e078c387ac7 [3068/7089] net: mdio: Move MDIO drivers into a new subdirectory
config: x86_64-randconfig-a014-20200912 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 45d0343900d3005d1d00cbb1a87c419c085dec71)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout a9770eac511ad82390b9f4a3c1728e078c387ac7
# 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/net/mdio/mdio-xgene.c:337:13: warning: cast to smaller integer type 'enum xgene_mdio_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
mdio_id = (enum xgene_mdio_id)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/mdio/mdio-xgene.c:302:34: warning: unused variable 'xgene_mdio_of_match' [-Wunused-const-variable]
static const struct of_device_id xgene_mdio_of_match[] = {
^
2 warnings generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a9770eac511ad82390b9f4a3c1728e078c387ac7
vim +/xgene_mdio_of_match +302 drivers/net/mdio/mdio-xgene.c
43b3cf6634a4ae2 drivers/net/phy/mdio-xgene.c Iyappan Subramanian 2016-07-25 301
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 @302 static const struct of_device_id xgene_mdio_of_match[] = {
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 303 {
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 304 .compatible = "apm,xgene-mdio-rgmii",
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 305 .data = (void *)XGENE_MDIO_RGMII
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 306 },
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 307 {
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 308 .compatible = "apm,xgene-mdio-xfi",
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 309 .data = (void *)XGENE_MDIO_XFI
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 310 },
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 311 {},
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 312 };
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 313 MODULE_DEVICE_TABLE(of, xgene_mdio_of_match);
1f3d62090d3ba4d drivers/net/phy/mdio-xgene.c Arnd Bergmann 2017-02-01 314
:::::: The code at line 302 was first introduced by commit
:::::: 1f3d62090d3ba4d0c14e5271be87812fc577b197 xgene_enet: remove bogus forward declarations
:::::: TO: Arnd Bergmann <arnd(a)arndb.de>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years