Re: [PATCH v11 11/12] vduse: Introduce VDUSE - vDPA Device in Userspace
by kernel test robot
Hi Xie,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on vhost/linux-next]
[also build test ERROR on linus/master next-20210818]
[cannot apply to iommu/next lwn/docs-next v5.14-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Xie-Yongji/Introduce-VDUSE-vDPA-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/0b6102bc9db2d526393eaf9e5b8412940...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xie-Yongji/Introduce-VDUSE-vDPA-Device-in-Userspace/20210818-201209
git checkout 0b6102bc9db2d526393eaf9e5b8412940445a34b
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>):
>> drivers/vdpa/vdpa_user/vduse_dev.c:698:21: error: initialization of 'u16 (*)(struct vdpa_device *)' {aka 'short unsigned int (*)(struct vdpa_device *)'} from incompatible pointer type 'u16 (*)(struct vdpa_device *, u16)' {aka 'short unsigned int (*)(struct vdpa_device *, short unsigned int)'} [-Werror=incompatible-pointer-types]
698 | .get_vq_num_max = vduse_vdpa_get_vq_num_max,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/vdpa/vdpa_user/vduse_dev.c:698:21: note: (near initialization for 'vduse_vdpa_config_ops.get_vq_num_max')
cc1: some warnings being treated as errors
vim +698 drivers/vdpa/vdpa_user/vduse_dev.c
684
685 static const struct vdpa_config_ops vduse_vdpa_config_ops = {
686 .set_vq_address = vduse_vdpa_set_vq_address,
687 .kick_vq = vduse_vdpa_kick_vq,
688 .set_vq_cb = vduse_vdpa_set_vq_cb,
689 .set_vq_num = vduse_vdpa_set_vq_num,
690 .set_vq_ready = vduse_vdpa_set_vq_ready,
691 .get_vq_ready = vduse_vdpa_get_vq_ready,
692 .set_vq_state = vduse_vdpa_set_vq_state,
693 .get_vq_state = vduse_vdpa_get_vq_state,
694 .get_vq_align = vduse_vdpa_get_vq_align,
695 .get_features = vduse_vdpa_get_features,
696 .set_features = vduse_vdpa_set_features,
697 .set_config_cb = vduse_vdpa_set_config_cb,
> 698 .get_vq_num_max = vduse_vdpa_get_vq_num_max,
699 .get_device_id = vduse_vdpa_get_device_id,
700 .get_vendor_id = vduse_vdpa_get_vendor_id,
701 .get_status = vduse_vdpa_get_status,
702 .set_status = vduse_vdpa_set_status,
703 .get_config_size = vduse_vdpa_get_config_size,
704 .get_config = vduse_vdpa_get_config,
705 .set_config = vduse_vdpa_set_config,
706 .get_generation = vduse_vdpa_get_generation,
707 .reset = vduse_vdpa_reset,
708 .set_map = vduse_vdpa_set_map,
709 .free = vduse_vdpa_free,
710 };
711
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v1 1/2] bus: mhi: core: Bail on writing register fields if read fails
by kernel test robot
Hi Bhaumik,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on next-20210818]
[cannot apply to linus/master v5.14-rc6 v5.14-rc5 v5.14-rc4 v5.14-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Bhaumik-Bhatt/MHI-MMIO-register-...
base: f26c3abc432a2026ba9ee7767061a1f88aead6ec
config: arm64-randconfig-r025-20210818 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d2b574a4dea5b718e4386bf2e26af0126e5978ce)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/034c38ae851193cbeec4b4538d1a47e75...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bhaumik-Bhatt/MHI-MMIO-register-write-updates/20210819-075312
git checkout 034c38ae851193cbeec4b4538d1a47e75198b92a
# 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: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/bus/mhi/core/pm.c:133:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL,
^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/bus/mhi/core/pm.c:136:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL,
^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
vim +/warn_unused_result +133 drivers/bus/mhi/core/pm.c
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 129
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 130 void mhi_set_mhi_state(struct mhi_controller *mhi_cntrl, enum mhi_state state)
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 131 {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 132 if (state == MHI_STATE_RESET) {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 @133 mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL,
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 134 MHICTRL_RESET_MASK, MHICTRL_RESET_SHIFT, 1);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 135 } else {
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 136 mhi_write_reg_field(mhi_cntrl, mhi_cntrl->regs, MHICTRL,
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 137 MHICTRL_MHISTATE_MASK,
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 138 MHICTRL_MHISTATE_SHIFT, state);
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 139 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 140 }
a6e2e3522f2914 Manivannan Sadhasivam 2020-02-20 141
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH rdma-rc 1/3] RDMA/bnxt_re: Disable atomic support on VFs
by kernel test robot
Hi Selvin,
I love your patch! Yet something to improve:
[auto build test ERROR on rdma/for-next]
[also build test ERROR on v5.14-rc6 next-20210818]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Selvin-Xavier/RDMA-bnxt_re-Bug-f...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/5b4e1e8d37b166a3d6c7468eb96a8d7bc...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Selvin-Xavier/RDMA-bnxt_re-Bug-fixes/20210819-045917
git checkout 5b4e1e8d37b166a3d6c7468eb96a8d7bc77740dd
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/infiniband/hw/bnxt_re/
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 >>):
drivers/infiniband/hw/bnxt_re/main.c: In function 'bnxt_re_setup_chip_ctx':
>> drivers/infiniband/hw/bnxt_re/main.c:131:29: error: 'struct bnxt_qplib_res' has no member named 'is_vf'
131 | if (!rdev->qplib_res.is_vf && bnxt_qplib_determine_atomics(en_dev->pdev))
| ^
vim +131 drivers/infiniband/hw/bnxt_re/main.c
109
110 static int bnxt_re_setup_chip_ctx(struct bnxt_re_dev *rdev, u8 wqe_mode)
111 {
112 struct bnxt_qplib_chip_ctx *chip_ctx;
113 struct bnxt_en_dev *en_dev;
114 struct bnxt *bp;
115
116 en_dev = rdev->en_dev;
117 bp = netdev_priv(en_dev->net);
118
119 chip_ctx = kzalloc(sizeof(*chip_ctx), GFP_KERNEL);
120 if (!chip_ctx)
121 return -ENOMEM;
122 chip_ctx->chip_num = bp->chip_num;
123
124 rdev->chip_ctx = chip_ctx;
125 /* rest members to follow eventually */
126
127 rdev->qplib_res.cctx = rdev->chip_ctx;
128 rdev->rcfw.res = &rdev->qplib_res;
129
130 bnxt_re_set_drv_mode(rdev, wqe_mode);
> 131 if (!rdev->qplib_res.is_vf && bnxt_qplib_determine_atomics(en_dev->pdev))
132 ibdev_info(&rdev->ibdev,
133 "platform doesn't support global atomics.");
134 return 0;
135 }
136
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[ogabbay:habanalabs-next 51/55] drivers/misc/habanalabs/common/debugfs.c:358:76: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'}
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git habanalabs-next
head: 7ff0882e4eb53de988df67bc47c0d153dc343962
commit: bff4f13b946858c7fb2c1e56d7b34a4109fae5f7 [51/55] habanalabs: add userptr_lookup node in debugfs
config: arc-randconfig-r043-20210818 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git/commit/...
git remote add ogabbay https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git
git fetch --no-tags ogabbay habanalabs-next
git checkout bff4f13b946858c7fb2c1e56d7b34a4109fae5f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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/misc/habanalabs/common/debugfs.c: In function 'userptr_lookup_show':
>> drivers/misc/habanalabs/common/debugfs.c:358:76: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=]
358 | seq_printf(s, " 0x%-18llx 0x%-16llx %-8u 0x%-16llx %-12llu\n",
| ~~~~~~^
| |
| long long unsigned int
| %-16x
359 | dev_entry->userptr_lookup,
360 | dma_addr, userptr->pid,
| ~~~~~~~~
| |
| dma_addr_t {aka unsigned int}
vim +358 drivers/misc/habanalabs/common/debugfs.c
322
323 static int userptr_lookup_show(struct seq_file *s, void *data)
324 {
325 struct hl_debugfs_entry *entry = s->private;
326 struct hl_dbg_device_entry *dev_entry = entry->dev_entry;
327 struct scatterlist *sg;
328 struct hl_userptr *userptr;
329 bool first = true;
330 u64 total_npages, npages, sg_start, sg_end;
331 dma_addr_t dma_addr;
332 int i;
333
334 spin_lock(&dev_entry->userptr_spinlock);
335
336 list_for_each_entry(userptr, &dev_entry->userptr_list, debugfs_list) {
337 if (dev_entry->userptr_lookup >= userptr->addr &&
338 dev_entry->userptr_lookup < userptr->addr + userptr->size) {
339 total_npages = 0;
340 for_each_sg(userptr->sgt->sgl, sg, userptr->sgt->nents,
341 i) {
342 npages = hl_get_sg_info(sg, &dma_addr);
343 sg_start = userptr->addr +
344 total_npages * PAGE_SIZE;
345 sg_end = userptr->addr +
346 (total_npages + npages) * PAGE_SIZE;
347
348 if (dev_entry->userptr_lookup >= sg_start &&
349 dev_entry->userptr_lookup < sg_end) {
350 dma_addr += (dev_entry->userptr_lookup -
351 sg_start);
352 if (first) {
353 first = false;
354 seq_puts(s, "\n");
355 seq_puts(s, " user virtual address dma address pid region start region size\n");
356 seq_puts(s, "---------------------------------------------------------------------------------------\n");
357 }
> 358 seq_printf(s, " 0x%-18llx 0x%-16llx %-8u 0x%-16llx %-12llu\n",
359 dev_entry->userptr_lookup,
360 dma_addr, userptr->pid,
361 userptr->addr, userptr->size);
362 }
363 total_npages += npages;
364 }
365 }
366 }
367
368 spin_unlock(&dev_entry->userptr_spinlock);
369
370 if (!first)
371 seq_puts(s, "\n");
372
373 return 0;
374 }
375
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-chenxing:rperier-rtc 5/9] drivers/rtc/rtc-msc313.c:231:25: error: 'ms_rtc_of_match_table' undeclared here (not in a function); did you mean 'msc313_rtc_of_match_table'?
by kernel test robot
tree: git://github.com/linux-chenxing/linux.git rperier-rtc
head: c3937f8420a5b44e0a7779c71519bb957a978ad5
commit: 2a634e5f7844b41d99f96989a044b2b183b42ecc [5/9] rtc: Add support for the MSTAR MSC313 RTC
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/linux-chenxing/linux/commit/2a634e5f7844b41d99f96989a0...
git remote add linux-chenxing git://github.com/linux-chenxing/linux.git
git fetch --no-tags linux-chenxing rperier-rtc
git checkout 2a634e5f7844b41d99f96989a044b2b183b42ecc
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/infiniband/hw/bnxt_re/ drivers/rtc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/rtc/rtc-msc313.c:13:
>> drivers/rtc/rtc-msc313.c:231:25: error: 'ms_rtc_of_match_table' undeclared here (not in a function); did you mean 'msc313_rtc_of_match_table'?
231 | MODULE_DEVICE_TABLE(of, ms_rtc_of_match_table);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/module.h:244:15: note: in definition of macro 'MODULE_DEVICE_TABLE'
244 | extern typeof(name) __mod_##type##__##name##_device_table \
| ^~~~
>> include/linux/module.h:244:21: error: '__mod_of__ms_rtc_of_match_table_device_table' aliased to undefined symbol 'ms_rtc_of_match_table'
244 | extern typeof(name) __mod_##type##__##name##_device_table \
| ^~~~~~
drivers/rtc/rtc-msc313.c:231:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
231 | MODULE_DEVICE_TABLE(of, ms_rtc_of_match_table);
| ^~~~~~~~~~~~~~~~~~~
vim +231 drivers/rtc/rtc-msc313.c
226
227 static const struct of_device_id msc313_rtc_of_match_table[] = {
228 { .compatible = "mstar,msc313-rtc" },
229 { }
230 };
> 231 MODULE_DEVICE_TABLE(of, ms_rtc_of_match_table);
232
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 951/8804] drivers/leds/flash/leds-as3645a.c:382:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f26c3abc432a2026ba9ee7767061a1f88aead6ec
commit: f5d69f6290a37f5579ef24334d5bf8a59bb13ef4 [951/8804] leds: as3645a: Move driver to flash subdirectory
config: arm-randconfig-c002-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project af7818093677dcb4c0840aef96bc029deb219e57)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://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 f5d69f6290a37f5579ef24334d5bf8a59bb13ef4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
^
include/linux/list.h:563:2: note: expanded from macro 'list_prev_entry'
list_entry((pos)->member.prev, typeof(*(pos)), member)
^
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:316:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:306:2: note: expanded from macro '__compiletime_assert'
do { \
^
sound/core/device.c:228:2: note: Loop condition is false. Execution continues on line 237
list_for_each_entry_safe_reverse(dev, next, &card->devices, list) {
^
include/linux/list.h:762:2: note: expanded from macro 'list_for_each_entry_safe_reverse'
for (pos = list_last_entry(head, typeof(*pos), member), \
^
sound/core/device.c:237:2: note: Left side of '&&' is false
list_for_each_entry_safe_reverse(dev, next, &card->devices, list)
^
include/linux/list.h:762:13: note: expanded from macro 'list_for_each_entry_safe_reverse'
for (pos = list_last_entry(head, typeof(*pos), member), \
^
include/linux/list.h:533:2: note: expanded from macro 'list_last_entry'
list_entry((ptr)->prev, type, member)
^
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^
include/linux/kernel.h:495:61: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
sound/core/device.c:237:2: note: Taking false branch
list_for_each_entry_safe_reverse(dev, next, &card->devices, list)
^
include/linux/list.h:762:13: note: expanded from macro 'list_for_each_entry_safe_reverse'
for (pos = list_last_entry(head, typeof(*pos), member), \
^
include/linux/list.h:533:2: note: expanded from macro 'list_last_entry'
list_entry((ptr)->prev, type, member)
^
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:316:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:308:3: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
sound/core/device.c:237:2: note: Loop condition is false. Exiting loop
list_for_each_entry_safe_reverse(dev, next, &card->devices, list)
^
include/linux/list.h:762:13: note: expanded from macro 'list_for_each_entry_safe_reverse'
for (pos = list_last_entry(head, typeof(*pos), member), \
^
include/linux/list.h:533:2: note: expanded from macro 'list_last_entry'
list_entry((ptr)->prev, type, member)
^
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:316:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:306:2: note: expanded from macro '__compiletime_assert'
do { \
^
sound/core/device.c:237:2: note: Use of memory after it is freed
list_for_each_entry_safe_reverse(dev, next, &card->devices, list)
^
include/linux/list.h:763:7: note: expanded from macro 'list_for_each_entry_safe_reverse'
n = list_prev_entry(pos, member); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:563:2: note: expanded from macro 'list_prev_entry'
list_entry((pos)->member.prev, typeof(*(pos)), member)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/kernel.h:494:25: note: expanded from macro 'container_of'
void *__mptr = (void *)(ptr); \
^~~~~
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
4 warnings generated.
>> drivers/leds/flash/leds-as3645a.c:382:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = &flash->client->dev;
^~~ ~~~~~~~~~~~~~~~~~~~
drivers/leds/flash/leds-as3645a.c:382:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = &flash->client->dev;
^~~ ~~~~~~~~~~~~~~~~~~~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
4 warnings generated.
sound/soc/codecs/wm8903.c:434:3: warning: Value stored to 'best' is never read [clang-analyzer-deadcode.DeadStores]
best = 0;
^ ~
sound/soc/codecs/wm8903.c:434:3: note: Value stored to 'best' is never read
best = 0;
^ ~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
6 warnings generated.
sound/soc/codecs/wm8960.c:508:18: warning: Access to field 'lout1' results in a dereference of a null pointer (loaded from variable 'wm8960') [clang-analyzer-core.NullDereference]
wm8960->lout1 = w;
^
sound/soc/codecs/wm8960.c:1345:6: note: Assuming field 'capless' is false
if (pdata->capless)
^~~~~~~~~~~~~~
sound/soc/codecs/wm8960.c:1345:2: note: Taking false branch
if (pdata->capless)
^
sound/soc/codecs/wm8960.c:1352:2: note: Calling 'wm8960_add_widgets'
wm8960_add_widgets(component);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8960.c:472:2: note: 'wm8960' initialized here
struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component);
^~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/wm8960.c:485:6: note: Assuming 'pdata' is null
if (pdata && pdata->capless) {
^~~~~
sound/soc/codecs/wm8960.c:485:12: note: Left side of '&&' is false
if (pdata && pdata->capless) {
^
sound/soc/codecs/wm8960.c:504:2: note: Left side of '&&' is false
list_for_each_entry(w, &component->card->widgets, list) {
^
include/linux/list.h:628:13: note: expanded from macro 'list_for_each_entry'
for (pos = list_first_entry(head, typeof(*pos), member); \
^
include/linux/list.h:522:2: note: expanded from macro 'list_first_entry'
list_entry((ptr)->next, type, member)
^
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^
include/linux/kernel.h:495:61: note: expanded from macro 'container_of'
BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
^
sound/soc/codecs/wm8960.c:504:2: note: Taking false branch
list_for_each_entry(w, &component->card->widgets, list) {
^
include/linux/list.h:628:13: note: expanded from macro 'list_for_each_entry'
for (pos = list_first_entry(head, typeof(*pos), member); \
^
include/linux/list.h:522:2: note: expanded from macro 'list_first_entry'
list_entry((ptr)->next, type, member)
^
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
container_of(ptr, type, member)
^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:328:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:316:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:308:3: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
sound/soc/codecs/wm8960.c:504:2: note: Loop condition is false. Exiting loop
list_for_each_entry(w, &component->card->widgets, list) {
^
include/linux/list.h:628:13: note: expanded from macro 'list_for_each_entry'
for (pos = list_first_entry(head, typeof(*pos), member); \
^
include/linux/list.h:522:2: note: expanded from macro 'list_first_entry'
list_entry((ptr)->next, type, member)
^
include/linux/list.h:511:2: note: expanded from macro 'list_entry'
vim +/dev +382 drivers/leds/flash/leds-as3645a.c
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 379
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 380 static int as3645a_setup(struct as3645a *flash)
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 381 {
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 @382 struct device *dev = &flash->client->dev;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 383 u32 fault = 0;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 384 int rval;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 385
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 386 /* clear errors */
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 387 rval = as3645a_read(flash, AS_FAULT_INFO_REG);
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 388 if (rval < 0)
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 389 return rval;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 390
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 391 dev_dbg(dev, "Fault info: %02x\n", rval);
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 392
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 393 rval = as3645a_set_current(flash);
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 394 if (rval < 0)
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 395 return rval;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 396
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 397 rval = as3645a_set_timeout(flash);
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 398 if (rval < 0)
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 399 return rval;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 400
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 401 rval = as3645a_set_control(flash, AS_MODE_INDICATOR, false);
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 402 if (rval < 0)
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 403 return rval;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 404
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 405 /* read status */
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 406 rval = as3645a_get_fault(&flash->fled, &fault);
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 407 if (rval < 0)
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 408 return rval;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 409
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 410 dev_dbg(dev, "AS_INDICATOR_AND_TIMER_REG: %02x\n",
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 411 as3645a_read(flash, AS_INDICATOR_AND_TIMER_REG));
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 412 dev_dbg(dev, "AS_CURRENT_SET_REG: %02x\n",
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 413 as3645a_read(flash, AS_CURRENT_SET_REG));
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 414 dev_dbg(dev, "AS_CONTROL_REG: %02x\n",
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 415 as3645a_read(flash, AS_CONTROL_REG));
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 416
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 417 return rval & ~AS_FAULT_INFO_LED_AMOUNT ? -EIO : 0;
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 418 }
a56ba8fbcb55f3 drivers/leds/leds-as3645a.c Sakari Ailus 2015-04-26 419
:::::: The code at line 382 was first introduced by commit
:::::: a56ba8fbcb55f3c5fc06f803469e7412f9e13c18 media: leds: as3645a: Add LED flash class driver
:::::: TO: Sakari Ailus <sakari.ailus(a)linux.intel.com>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)s-opensource.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month