include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_561' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
by kernel test robot
Hi Bikash,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0
commit: a04658594399e1fa25f984601b77ee840e6aaf01 scsi: qla2xxx: Wait for ABTS response on I/O timeouts for NVMe
date: 9 weeks ago
config: arm-randconfig-r036-20210316 (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
# 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 a04658594399e1fa25f984601b77ee840e6aaf01
# 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 >>):
In file included from <command-line>:
drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_module_init':
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_553' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7782:2: note: in expansion of macro 'BUILD_BUG_ON'
7782 | BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_554' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7783:2: note: in expansion of macro 'BUILD_BUG_ON'
7783 | BUILD_BUG_ON(sizeof(cmd_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_558' declared with attribute error: BUILD_BUG_ON failed: sizeof(mrk_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7787:2: note: in expansion of macro 'BUILD_BUG_ON'
7787 | BUILD_BUG_ON(sizeof(mrk_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_559' declared with attribute error: BUILD_BUG_ON failed: sizeof(ms_iocb_entry_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7788:2: note: in expansion of macro 'BUILD_BUG_ON'
7788 | BUILD_BUG_ON(sizeof(ms_iocb_entry_t) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_560' declared with attribute error: BUILD_BUG_ON failed: sizeof(request_t) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7789:2: note: in expansion of macro 'BUILD_BUG_ON'
7789 | BUILD_BUG_ON(sizeof(request_t) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_561' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct abort_entry_24xx) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7790:2: note: in expansion of macro 'BUILD_BUG_ON'
7790 | BUILD_BUG_ON(sizeof(struct abort_entry_24xx) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_579' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7808:2: note: in expansion of macro 'BUILD_BUG_ON'
7808 | BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_582' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct device_reg_2xxx) != 256
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7811:2: note: in expansion of macro 'BUILD_BUG_ON'
7811 | BUILD_BUG_ON(sizeof(struct device_reg_2xxx) != 256);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_588' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct imm_ntfy_from_isp) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7817:2: note: in expansion of macro 'BUILD_BUG_ON'
7817 | BUILD_BUG_ON(sizeof(struct imm_ntfy_from_isp) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_592' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct mbx_entry) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7821:2: note: in expansion of macro 'BUILD_BUG_ON'
7821 | BUILD_BUG_ON(sizeof(struct mbx_entry) != 64);
| ^~~~~~~~~~~~
include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_598' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct pt_ls4_rx_unsol) != 64
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:307:4: note: in definition of macro '__compiletime_assert'
307 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:326:2: note: in expansion of macro '_compiletime_assert'
326 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
vim +/__compiletime_assert_561 +326 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 312
eb5c2d4b45e3d2 Will Deacon 2020-07-21 313 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 314 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 315
eb5c2d4b45e3d2 Will Deacon 2020-07-21 316 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 317 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 318 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 319 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 320 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 321 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 322 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 323 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 324 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 325 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @326 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 327
:::::: The code at line 326 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will(a)kernel.org>
:::::: CC: Will Deacon <will(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[agd5f:amd-staging-drm-next 2019/2047] drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4677:6: warning: no previous prototype for 'amdgpu_device_recheck_guilty_jobs'
by kernel test robot
tree: https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head: 931794a62f1be00cb2bda1d67798a887c9cd90ba
commit: c8a921d49443025e10794342d4433b3f29616409 [2019/2047] drm/amd/amdgpu implement tdr advanced mode
config: i386-randconfig-a004-20210315 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f amd-staging-drm-next
git checkout c8a921d49443025e10794342d4433b3f29616409
# 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 warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4677:6: warning: no previous prototype for 'amdgpu_device_recheck_guilty_jobs' [-Wmissing-prototypes]
4677 | void amdgpu_device_recheck_guilty_jobs(struct amdgpu_device *adev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: In function 'amdgpu_device_recheck_guilty_jobs':
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4731:26: error: 'struct drm_gpu_scheduler' has no member named 'num_jobs'
4731 | atomic_dec(&ring->sched.num_jobs);
| ^
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4738:23: error: 'struct drm_sched_job' has no member named 'node'
4738 | list_del_init(&s_job->node);
| ^~
vim +/amdgpu_device_recheck_guilty_jobs +4677 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
4676
> 4677 void amdgpu_device_recheck_guilty_jobs(struct amdgpu_device *adev,
4678 struct amdgpu_hive_info *hive,
4679 struct list_head *device_list_handle,
4680 bool *need_full_reset)
4681 {
4682 int i, r = 0;
4683
4684 for (i = 0; i < AMDGPU_MAX_RINGS; ++i) {
4685 struct amdgpu_ring *ring = adev->rings[i];
4686 int ret = 0;
4687 struct drm_sched_job *s_job;
4688
4689 if (!ring || !ring->sched.thread)
4690 continue;
4691
4692 s_job = list_first_entry_or_null(&ring->sched.pending_list,
4693 struct drm_sched_job, list);
4694 if (s_job == NULL)
4695 continue;
4696
4697 /* clear job's guilty and depend the folowing step to decide the real one */
4698 drm_sched_reset_karma(s_job);
4699 drm_sched_resubmit_jobs_ext(&ring->sched, 1);
4700
4701 ret = dma_fence_wait_timeout(s_job->s_fence->parent, false, ring->sched.timeout);
4702 if (ret == 0) { /* timeout */
4703 DRM_ERROR("Found the real bad job! ring:%s, job_id:%llx\n",
4704 ring->sched.name, s_job->id);
4705
4706 /* set guilty */
4707 drm_sched_increase_karma(s_job);
4708 retry:
4709 /* do hw reset */
4710 if (amdgpu_sriov_vf(adev)) {
4711 amdgpu_virt_fini_data_exchange(adev);
4712 r = amdgpu_device_reset_sriov(adev, false);
4713 if (r)
4714 adev->asic_reset_res = r;
4715 } else {
4716 r = amdgpu_do_asic_reset(hive, device_list_handle,
4717 need_full_reset, false);
4718 if (r && r == -EAGAIN)
4719 goto retry;
4720 }
4721
4722 /*
4723 * add reset counter so that the following
4724 * resubmitted job could flush vmid
4725 */
4726 atomic_inc(&adev->gpu_reset_counter);
4727 continue;
4728 }
4729
4730 /* got the hw fence, signal finished fence */
4731 atomic_dec(&ring->sched.num_jobs);
4732 dma_fence_get(&s_job->s_fence->finished);
4733 dma_fence_signal(&s_job->s_fence->finished);
4734 dma_fence_put(&s_job->s_fence->finished);
4735
4736 /* remove node from list and free the job */
4737 spin_lock(&ring->sched.job_list_lock);
4738 list_del_init(&s_job->node);
4739 spin_unlock(&ring->sched.job_list_lock);
4740 ring->sched.ops->free_job(s_job);
4741 }
4742 }
4743
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[song-md:md-next 6/6] mm/mmap.c:1453:31: error: called object type 'void is not a function or function pointer
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git md-next
head: 49c4d345c81f149a29b3db6e521e5191e55f02b6
commit: 49c4d345c81f149a29b3db6e521e5191e55f02b6 [6/6] thp test
config: mips-randconfig-r036-20210315 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a28facba1ccdc957f386b7753f4958307f1bfde8)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/song/md.git/commit/?id=49...
git remote add song-md git://git.kernel.org/pub/scm/linux/kernel/git/song/md.git
git fetch --no-tags song-md md-next
git checkout 49c4d345c81f149a29b3db6e521e5191e55f02b6
# 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 errors (new ones prefixed by >>):
>> mm/mmap.c:1453:31: error: called object type 'void *' is not a function or function pointer
addr = thp_get_unmapped_area(file, addr, len, pgoff, flags);
~~~~~~~~~~~~~~~~~~~~~^
1 error generated.
vim +1453 mm/mmap.c
1398
1399 /*
1400 * The caller must write-lock current->mm->mmap_lock.
1401 */
1402 unsigned long do_mmap(struct file *file, unsigned long addr,
1403 unsigned long len, unsigned long prot,
1404 unsigned long flags, unsigned long pgoff,
1405 unsigned long *populate, struct list_head *uf)
1406 {
1407 struct mm_struct *mm = current->mm;
1408 vm_flags_t vm_flags;
1409 int pkey = 0;
1410
1411 *populate = 0;
1412
1413 if (!len)
1414 return -EINVAL;
1415
1416 /*
1417 * Does the application expect PROT_READ to imply PROT_EXEC?
1418 *
1419 * (the exception is when the underlying filesystem is noexec
1420 * mounted, in which case we dont add PROT_EXEC.)
1421 */
1422 if ((prot & PROT_READ) && (current->personality & READ_IMPLIES_EXEC))
1423 if (!(file && path_noexec(&file->f_path)))
1424 prot |= PROT_EXEC;
1425
1426 /* force arch specific MAP_FIXED handling in get_unmapped_area */
1427 if (flags & MAP_FIXED_NOREPLACE)
1428 flags |= MAP_FIXED;
1429
1430 if (!(flags & MAP_FIXED))
1431 addr = round_hint_to_min(addr);
1432
1433 /* Careful about overflows.. */
1434 len = PAGE_ALIGN(len);
1435 if (!len)
1436 return -ENOMEM;
1437
1438 /* offset overflow? */
1439 if ((pgoff + (len >> PAGE_SHIFT)) < pgoff)
1440 return -EOVERFLOW;
1441
1442 /* Too many mappings? */
1443 if (mm->map_count > sysctl_max_map_count)
1444 return -ENOMEM;
1445
1446 /* Obtain the address to map to. we verify (or select) it and ensure
1447 * that it represents a valid section of the address space.
1448 */
1449 if ((prot & PROT_READ) && (prot & PROT_EXEC) && (!(prot & PROT_WRITE)) &&
1450 (len >= HPAGE_PMD_SIZE) && (flags & MAP_PRIVATE)) {
1451 /* potential THP large page */
1452 pr_info("%s do thp for addr %lx pgoff %lx\n", __func__, addr, pgoff);
> 1453 addr = thp_get_unmapped_area(file, addr, len, pgoff, flags);
1454 } else {
1455 addr = get_unmapped_area(file, addr, len, pgoff, flags);
1456 }
1457 if (IS_ERR_VALUE(addr))
1458 return addr;
1459
1460 if (flags & MAP_FIXED_NOREPLACE) {
1461 struct vm_area_struct *vma = find_vma(mm, addr);
1462
1463 if (vma && vma->vm_start < addr + len)
1464 return -EEXIST;
1465 }
1466
1467 if (prot == PROT_EXEC) {
1468 pkey = execute_only_pkey(mm);
1469 if (pkey < 0)
1470 pkey = 0;
1471 }
1472
1473 /* Do simple checking here so the lower-level routines won't have
1474 * to. we assume access permissions have been handled by the open
1475 * of the memory object, so we don't do any here.
1476 */
1477 vm_flags = calc_vm_prot_bits(prot, pkey) | calc_vm_flag_bits(flags) |
1478 mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
1479
1480 if (flags & MAP_LOCKED)
1481 if (!can_do_mlock())
1482 return -EPERM;
1483
1484 if (mlock_future_check(mm, vm_flags, len))
1485 return -EAGAIN;
1486
1487 if (file) {
1488 struct inode *inode = file_inode(file);
1489 unsigned long flags_mask;
1490
1491 if (!file_mmap_ok(file, inode, pgoff, len))
1492 return -EOVERFLOW;
1493
1494 flags_mask = LEGACY_MAP_MASK | file->f_op->mmap_supported_flags;
1495
1496 switch (flags & MAP_TYPE) {
1497 case MAP_SHARED:
1498 /*
1499 * Force use of MAP_SHARED_VALIDATE with non-legacy
1500 * flags. E.g. MAP_SYNC is dangerous to use with
1501 * MAP_SHARED as you don't know which consistency model
1502 * you will get. We silently ignore unsupported flags
1503 * with MAP_SHARED to preserve backward compatibility.
1504 */
1505 flags &= LEGACY_MAP_MASK;
1506 fallthrough;
1507 case MAP_SHARED_VALIDATE:
1508 if (flags & ~flags_mask)
1509 return -EOPNOTSUPP;
1510 if (prot & PROT_WRITE) {
1511 if (!(file->f_mode & FMODE_WRITE))
1512 return -EACCES;
1513 if (IS_SWAPFILE(file->f_mapping->host))
1514 return -ETXTBSY;
1515 }
1516
1517 /*
1518 * Make sure we don't allow writing to an append-only
1519 * file..
1520 */
1521 if (IS_APPEND(inode) && (file->f_mode & FMODE_WRITE))
1522 return -EACCES;
1523
1524 /*
1525 * Make sure there are no mandatory locks on the file.
1526 */
1527 if (locks_verify_locked(file))
1528 return -EAGAIN;
1529
1530 vm_flags |= VM_SHARED | VM_MAYSHARE;
1531 if (!(file->f_mode & FMODE_WRITE))
1532 vm_flags &= ~(VM_MAYWRITE | VM_SHARED);
1533 fallthrough;
1534 case MAP_PRIVATE:
1535 if (!(file->f_mode & FMODE_READ))
1536 return -EACCES;
1537 if (path_noexec(&file->f_path)) {
1538 if (vm_flags & VM_EXEC)
1539 return -EPERM;
1540 vm_flags &= ~VM_MAYEXEC;
1541 }
1542
1543 if (!file->f_op->mmap)
1544 return -ENODEV;
1545 if (vm_flags & (VM_GROWSDOWN|VM_GROWSUP))
1546 return -EINVAL;
1547 break;
1548
1549 default:
1550 return -EINVAL;
1551 }
1552 } else {
1553 switch (flags & MAP_TYPE) {
1554 case MAP_SHARED:
1555 if (vm_flags & (VM_GROWSDOWN|VM_GROWSUP))
1556 return -EINVAL;
1557 /*
1558 * Ignore pgoff.
1559 */
1560 pgoff = 0;
1561 vm_flags |= VM_SHARED | VM_MAYSHARE;
1562 break;
1563 case MAP_PRIVATE:
1564 /*
1565 * Set pgoff according to addr for anon_vma.
1566 */
1567 pgoff = addr >> PAGE_SHIFT;
1568 break;
1569 default:
1570 return -EINVAL;
1571 }
1572 }
1573
1574 /*
1575 * Set 'VM_NORESERVE' if we should not account for the
1576 * memory use of this mapping.
1577 */
1578 if (flags & MAP_NORESERVE) {
1579 /* We honor MAP_NORESERVE if allowed to overcommit */
1580 if (sysctl_overcommit_memory != OVERCOMMIT_NEVER)
1581 vm_flags |= VM_NORESERVE;
1582
1583 /* hugetlb applies strict overcommit unless MAP_NORESERVE */
1584 if (file && is_file_hugepages(file))
1585 vm_flags |= VM_NORESERVE;
1586 }
1587
1588 addr = mmap_region(file, addr, len, vm_flags, pgoff, uf);
1589 if (!IS_ERR_VALUE(addr) &&
1590 ((vm_flags & VM_LOCKED) ||
1591 (flags & (MAP_POPULATE | MAP_NONBLOCK)) == MAP_POPULATE))
1592 *populate = len;
1593 return addr;
1594 }
1595
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH] Bluetooth: hci_h5: btrtl: Add quirk for keep power during suspend/resume for specific devices
by kernel test robot
Hi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bluetooth-next/master]
[also build test ERROR on net-next/master net/master v5.12-rc3 next-20210315]
[cannot apply to sparc-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/hildawu-realtek-com/Bluetooth-hc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
config: powerpc64-randconfig-r016-20210315 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a28facba1ccdc957f386b7753f4958307f1bfde8)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/0day-ci/linux/commit/c97383d88c50364f4451a74ac4d3ad7b3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review hildawu-realtek-com/Bluetooth-hci_h5-btrtl-Add-quirk-for-keep-power-during-suspend-resume-for-specific-devices/20210315-170101
git checkout c97383d88c50364f4451a74ac4d3ad7b3605c20b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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/bluetooth/btrtl.c:11:
In file included from include/linux/usb.h:16:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:33:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bluetooth/btrtl.c:11:
In file included from include/linux/usb.h:16:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:35:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bluetooth/btrtl.c:11:
In file included from include/linux/usb.h:16:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:37:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bluetooth/btrtl.c:11:
In file included from include/linux/usb.h:16:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:39:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/bluetooth/btrtl.c:11:
In file included from include/linux/usb.h:16:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:41:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/bluetooth/btrtl.c:556:14: error: no member named 'drop_fw' in 'struct btrtl_device_info'
btrtl_dev->drop_fw = true;
~~~~~~~~~ ^
drivers/bluetooth/btrtl.c:558:17: error: no member named 'drop_fw' in 'struct btrtl_device_info'
if (btrtl_dev->drop_fw) {
~~~~~~~~~ ^
12 warnings and 2 errors generated.
vim +556 drivers/bluetooth/btrtl.c
26503ad25de8c7 Martin Blumenstingl 2018-08-02 519
1cc194caaffbe0 Hans de Goede 2018-08-02 520 struct btrtl_device_info *btrtl_initialize(struct hci_dev *hdev,
1cc194caaffbe0 Hans de Goede 2018-08-02 521 const char *postfix)
db33c77dddc2ed Carlo Caione 2015-05-14 522 {
26503ad25de8c7 Martin Blumenstingl 2018-08-02 523 struct btrtl_device_info *btrtl_dev;
db33c77dddc2ed Carlo Caione 2015-05-14 524 struct sk_buff *skb;
db33c77dddc2ed Carlo Caione 2015-05-14 525 struct hci_rp_read_local_version *resp;
1cc194caaffbe0 Hans de Goede 2018-08-02 526 char cfg_name[40];
907f84990924bf Alex Lu 2018-02-11 527 u16 hci_rev, lmp_subver;
c50903e3ee1b55 Martin Blumenstingl 2018-08-02 528 u8 hci_ver;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 529 int ret;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 530 u16 opcode;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 531 u8 cmd[2];
26503ad25de8c7 Martin Blumenstingl 2018-08-02 532
26503ad25de8c7 Martin Blumenstingl 2018-08-02 533 btrtl_dev = kzalloc(sizeof(*btrtl_dev), GFP_KERNEL);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 534 if (!btrtl_dev) {
26503ad25de8c7 Martin Blumenstingl 2018-08-02 535 ret = -ENOMEM;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 536 goto err_alloc;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 537 }
db33c77dddc2ed Carlo Caione 2015-05-14 538
db33c77dddc2ed Carlo Caione 2015-05-14 539 skb = btrtl_read_local_version(hdev);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 540 if (IS_ERR(skb)) {
26503ad25de8c7 Martin Blumenstingl 2018-08-02 541 ret = PTR_ERR(skb);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 542 goto err_free;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 543 }
db33c77dddc2ed Carlo Caione 2015-05-14 544
db33c77dddc2ed Carlo Caione 2015-05-14 545 resp = (struct hci_rp_read_local_version *)skb->data;
f1300c0340872d Alex Lu 2019-08-31 546 rtl_dev_info(hdev, "examining hci_ver=%02x hci_rev=%04x lmp_ver=%02x lmp_subver=%04x",
2064ee332e4c1b Marcel Holtmann 2017-10-30 547 resp->hci_ver, resp->hci_rev,
db33c77dddc2ed Carlo Caione 2015-05-14 548 resp->lmp_ver, resp->lmp_subver);
db33c77dddc2ed Carlo Caione 2015-05-14 549
c50903e3ee1b55 Martin Blumenstingl 2018-08-02 550 hci_ver = resp->hci_ver;
907f84990924bf Alex Lu 2018-02-11 551 hci_rev = le16_to_cpu(resp->hci_rev);
db33c77dddc2ed Carlo Caione 2015-05-14 552 lmp_subver = le16_to_cpu(resp->lmp_subver);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 553
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 554 if (resp->hci_ver == 0x8 && le16_to_cpu(resp->hci_rev) == 0x826c &&
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 555 resp->lmp_ver == 0x8 && le16_to_cpu(resp->lmp_subver) == 0xa99e)
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 @556 btrtl_dev->drop_fw = true;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 557
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 558 if (btrtl_dev->drop_fw) {
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 559 opcode = hci_opcode_pack(0x3f, 0x66);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 560 cmd[0] = opcode & 0xff;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 561 cmd[1] = opcode >> 8;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 562
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 563 skb = bt_skb_alloc(sizeof(cmd), GFP_KERNEL);
f5e8e215869eed Colin Ian King 2020-11-10 564 if (!skb)
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 565 goto out_free;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 566
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 567 skb_put_data(skb, cmd, sizeof(cmd));
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 568 hci_skb_pkt_type(skb) = HCI_COMMAND_PKT;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 569
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 570 hdev->send(hdev, skb);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 571
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 572 /* Ensure the above vendor command is sent to controller and
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 573 * process has done.
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 574 */
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 575 msleep(200);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 576
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 577 /* Read the local version again. Expect to have the vanilla
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 578 * version as cold boot.
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 579 */
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 580 skb = btrtl_read_local_version(hdev);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 581 if (IS_ERR(skb)) {
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 582 ret = PTR_ERR(skb);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 583 goto err_free;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 584 }
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 585
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 586 resp = (struct hci_rp_read_local_version *)skb->data;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 587 rtl_dev_info(hdev, "examining hci_ver=%02x hci_rev=%04x lmp_ver=%02x lmp_subver=%04x",
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 588 resp->hci_ver, resp->hci_rev,
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 589 resp->lmp_ver, resp->lmp_subver);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 590
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 591 hci_ver = resp->hci_ver;
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 592 hci_rev = le16_to_cpu(resp->hci_rev);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 593 lmp_subver = le16_to_cpu(resp->lmp_subver);
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 594 }
1996d9cad6ad48 Kai-Heng Feng 2020-10-26 595 out_free:
db33c77dddc2ed Carlo Caione 2015-05-14 596 kfree_skb(skb);
db33c77dddc2ed Carlo Caione 2015-05-14 597
c50903e3ee1b55 Martin Blumenstingl 2018-08-02 598 btrtl_dev->ic_info = btrtl_match_ic(lmp_subver, hci_rev, hci_ver,
c50903e3ee1b55 Martin Blumenstingl 2018-08-02 599 hdev->bus);
c50903e3ee1b55 Martin Blumenstingl 2018-08-02 600
26503ad25de8c7 Martin Blumenstingl 2018-08-02 601 if (!btrtl_dev->ic_info) {
d182215d2fb9e5 Alex Lu 2019-08-31 602 rtl_dev_info(hdev, "unknown IC info, lmp subver %04x, hci rev %04x, hci ver %04x",
c50903e3ee1b55 Martin Blumenstingl 2018-08-02 603 lmp_subver, hci_rev, hci_ver);
00df214b1faae5 Kai-Heng Feng 2019-01-27 604 return btrtl_dev;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 605 }
26503ad25de8c7 Martin Blumenstingl 2018-08-02 606
26503ad25de8c7 Martin Blumenstingl 2018-08-02 607 if (btrtl_dev->ic_info->has_rom_version) {
26503ad25de8c7 Martin Blumenstingl 2018-08-02 608 ret = rtl_read_rom_version(hdev, &btrtl_dev->rom_version);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 609 if (ret)
26503ad25de8c7 Martin Blumenstingl 2018-08-02 610 goto err_free;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 611 }
26503ad25de8c7 Martin Blumenstingl 2018-08-02 612
26503ad25de8c7 Martin Blumenstingl 2018-08-02 613 btrtl_dev->fw_len = rtl_load_file(hdev, btrtl_dev->ic_info->fw_name,
26503ad25de8c7 Martin Blumenstingl 2018-08-02 614 &btrtl_dev->fw_data);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 615 if (btrtl_dev->fw_len < 0) {
f1300c0340872d Alex Lu 2019-08-31 616 rtl_dev_err(hdev, "firmware file %s not found",
26503ad25de8c7 Martin Blumenstingl 2018-08-02 617 btrtl_dev->ic_info->fw_name);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 618 ret = btrtl_dev->fw_len;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 619 goto err_free;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 620 }
26503ad25de8c7 Martin Blumenstingl 2018-08-02 621
26503ad25de8c7 Martin Blumenstingl 2018-08-02 622 if (btrtl_dev->ic_info->cfg_name) {
1cc194caaffbe0 Hans de Goede 2018-08-02 623 if (postfix) {
1cc194caaffbe0 Hans de Goede 2018-08-02 624 snprintf(cfg_name, sizeof(cfg_name), "%s-%s.bin",
1cc194caaffbe0 Hans de Goede 2018-08-02 625 btrtl_dev->ic_info->cfg_name, postfix);
1cc194caaffbe0 Hans de Goede 2018-08-02 626 } else {
1cc194caaffbe0 Hans de Goede 2018-08-02 627 snprintf(cfg_name, sizeof(cfg_name), "%s.bin",
1cc194caaffbe0 Hans de Goede 2018-08-02 628 btrtl_dev->ic_info->cfg_name);
1cc194caaffbe0 Hans de Goede 2018-08-02 629 }
1cc194caaffbe0 Hans de Goede 2018-08-02 630 btrtl_dev->cfg_len = rtl_load_file(hdev, cfg_name,
26503ad25de8c7 Martin Blumenstingl 2018-08-02 631 &btrtl_dev->cfg_data);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 632 if (btrtl_dev->ic_info->config_needed &&
26503ad25de8c7 Martin Blumenstingl 2018-08-02 633 btrtl_dev->cfg_len <= 0) {
f1300c0340872d Alex Lu 2019-08-31 634 rtl_dev_err(hdev, "mandatory config file %s not found",
26503ad25de8c7 Martin Blumenstingl 2018-08-02 635 btrtl_dev->ic_info->cfg_name);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 636 ret = btrtl_dev->cfg_len;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 637 goto err_free;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 638 }
26503ad25de8c7 Martin Blumenstingl 2018-08-02 639 }
26503ad25de8c7 Martin Blumenstingl 2018-08-02 640
673fae14f24052 Miao-chen Chou 2020-12-17 641 /* RTL8822CE supports the Microsoft vendor extension and uses 0xFCF0
673fae14f24052 Miao-chen Chou 2020-12-17 642 * for VsMsftOpCode.
673fae14f24052 Miao-chen Chou 2020-12-17 643 */
673fae14f24052 Miao-chen Chou 2020-12-17 644 if (lmp_subver == RTL_ROM_LMP_8822B)
673fae14f24052 Miao-chen Chou 2020-12-17 645 hci_set_msft_opcode(hdev, 0xFCF0);
673fae14f24052 Miao-chen Chou 2020-12-17 646
26503ad25de8c7 Martin Blumenstingl 2018-08-02 647 return btrtl_dev;
26503ad25de8c7 Martin Blumenstingl 2018-08-02 648
26503ad25de8c7 Martin Blumenstingl 2018-08-02 649 err_free:
26503ad25de8c7 Martin Blumenstingl 2018-08-02 650 btrtl_free(btrtl_dev);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 651 err_alloc:
26503ad25de8c7 Martin Blumenstingl 2018-08-02 652 return ERR_PTR(ret);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 653 }
26503ad25de8c7 Martin Blumenstingl 2018-08-02 654 EXPORT_SYMBOL_GPL(btrtl_initialize);
26503ad25de8c7 Martin Blumenstingl 2018-08-02 655
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_518' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
by kernel test robot
Hi Will,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0
commit: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
date: 8 months ago
config: arm-randconfig-r036-20210316 (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
# 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 eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5
# 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 >>):
In file included from <command-line>:
drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_module_init':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_518' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_a64_entry_t) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7825:2: note: in expansion of macro 'BUILD_BUG_ON'
7825 | BUILD_BUG_ON(sizeof(cmd_a64_entry_t) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_519' declared with attribute error: BUILD_BUG_ON failed: sizeof(cmd_entry_t) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7826:2: note: in expansion of macro 'BUILD_BUG_ON'
7826 | BUILD_BUG_ON(sizeof(cmd_entry_t) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_523' declared with attribute error: BUILD_BUG_ON failed: sizeof(mrk_entry_t) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7830:2: note: in expansion of macro 'BUILD_BUG_ON'
7830 | BUILD_BUG_ON(sizeof(mrk_entry_t) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_524' declared with attribute error: BUILD_BUG_ON failed: sizeof(ms_iocb_entry_t) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7831:2: note: in expansion of macro 'BUILD_BUG_ON'
7831 | BUILD_BUG_ON(sizeof(ms_iocb_entry_t) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_525' declared with attribute error: BUILD_BUG_ON failed: sizeof(request_t) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7832:2: note: in expansion of macro 'BUILD_BUG_ON'
7832 | BUILD_BUG_ON(sizeof(request_t) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_544' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_crc2_to_fw) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7851:2: note: in expansion of macro 'BUILD_BUG_ON'
7851 | BUILD_BUG_ON(sizeof(struct ctio_crc2_to_fw) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_547' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct device_reg_2xxx) != 256
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7854:2: note: in expansion of macro 'BUILD_BUG_ON'
7854 | BUILD_BUG_ON(sizeof(struct device_reg_2xxx) != 256);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_553' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct imm_ntfy_from_isp) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7860:2: note: in expansion of macro 'BUILD_BUG_ON'
7860 | BUILD_BUG_ON(sizeof(struct imm_ntfy_from_isp) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_557' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct mbx_entry) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7864:2: note: in expansion of macro 'BUILD_BUG_ON'
7864 | BUILD_BUG_ON(sizeof(struct mbx_entry) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_563' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct pt_ls4_rx_unsol) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7870:2: note: in expansion of macro 'BUILD_BUG_ON'
7870 | BUILD_BUG_ON(sizeof(struct pt_ls4_rx_unsol) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_565' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct qla2100_fw_dump) != 123634
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7872:2: note: in expansion of macro 'BUILD_BUG_ON'
7872 | BUILD_BUG_ON(sizeof(struct qla2100_fw_dump) != 123634);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_587' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct sts_entry_24xx) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7894:2: note: in expansion of macro 'BUILD_BUG_ON'
7894 | BUILD_BUG_ON(sizeof(struct sts_entry_24xx) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_601' declared with attribute error: BUILD_BUG_ON failed: sizeof(target_id_t) != 2
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_os.c:7908:2: note: in expansion of macro 'BUILD_BUG_ON'
7908 | BUILD_BUG_ON(sizeof(target_id_t) != 2);
| ^~~~~~~~~~~~
--
In file included from <command-line>:
drivers/scsi/qla2xxx/qla_target.c: In function 'qlt_init':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_387' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio7_to_24xx) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_target.c:7297:2: note: in expansion of macro 'BUILD_BUG_ON'
7297 | BUILD_BUG_ON(sizeof(struct ctio7_to_24xx) != 64);
| ^~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_388' declared with attribute error: BUILD_BUG_ON failed: sizeof(struct ctio_to_2xxx) != 64
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/scsi/qla2xxx/qla_target.c:7298:2: note: in expansion of macro 'BUILD_BUG_ON'
7298 | BUILD_BUG_ON(sizeof(struct ctio_to_2xxx) != 64);
| ^~~~~~~~~~~~
--
In file included from <command-line>:
net/smc/smc_llc.c: In function 'smc_llc_add_pending_send':
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_599' declared with attribute error: must increase SMC_WR_BUF_SIZE to at least sizeof(struct smc_llc_msg)
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
net/smc/smc_llc.c:348:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
348 | BUILD_BUG_ON_MSG(
| ^~~~~~~~~~~~~~~~
>> include/linux/compiler_types.h:338:38: error: call to '__compiletime_assert_600' declared with attribute error: must adapt SMC_WR_TX_SIZE to sizeof(struct smc_llc_msg); if not all smc_wr upper layer protocols use the same message size any more, must start to set link->wr_tx_sges[i].length on each individual smc_wr_tx_send()
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:319:4: note: in definition of macro '__compiletime_assert'
319 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:338:2: note: in expansion of macro '_compiletime_assert'
338 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
net/smc/smc_llc.c:351:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
351 | BUILD_BUG_ON_MSG(
| ^~~~~~~~~~~~~~~~
..
vim +/__compiletime_assert_518 +338 include/linux/compiler_types.h
324
325 #define _compiletime_assert(condition, msg, prefix, suffix) \
326 __compiletime_assert(condition, msg, prefix, suffix)
327
328 /**
329 * compiletime_assert - break build and emit msg if condition is false
330 * @condition: a compile-time constant condition to check
331 * @msg: a message to emit if condition is false
332 *
333 * In tradition of POSIX assert, this macro will break the build if the
334 * supplied condition is *false*, emitting the supplied error message if the
335 * compiler has support to do so.
336 */
337 #define compiletime_assert(condition, msg) \
> 338 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
339
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [Intel-wired-lan] [Patch v5 15/18] iavf: Support IPv4 Flow Director filters
by kernel test robot
Hi Haiyue,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on v5.12-rc2]
[also build test WARNING on next-20210315]
[cannot apply to tnguy-next-queue/dev-queue]
[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/Haiyue-Wang/Enable-Intel-VF-flow...
base: a38fd8748464831584a19438cbb3082b5a2dab15
config: powerpc-randconfig-r023-20210315 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a28facba1ccdc957f386b7753f4958307f1bfde8)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/0day-ci/linux/commit/c7d34ec95d9eda2d29b24cec2d98e9b2b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Haiyue-Wang/Enable-Intel-VF-flow-director-with-DDP/20210309-112812
git checkout c7d34ec95d9eda2d29b24cec2d98e9b2b887cb1f
# 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/net/ethernet/intel/iavf/iavf_fdir.c:399: warning: expecting prototype for iavf_fdir_fltr(). Prototype was for iavf_find_fdir_fltr_by_loc() instead
vim +399 drivers/net/ethernet/intel/iavf/iavf_fdir.c
390
391 /**
392 * iavf_fdir_fltr - find filter with location
393 * @adapter: pointer to the VF adapter structure
394 * @loc: location to find.
395 *
396 * Returns pointer to Flow Director filter if found or null
397 */
398 struct iavf_fdir_fltr *iavf_find_fdir_fltr_by_loc(struct iavf_adapter *adapter, u32 loc)
> 399 {
400 struct iavf_fdir_fltr *rule;
401
402 list_for_each_entry(rule, &adapter->fdir_list_head, list)
403 if (rule->loc == loc)
404 return rule;
405
406 return NULL;
407 }
408
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH net-next v5 6/6] net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum header
by kernel test robot
Hi Alex,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Alex-Elder/net-qualcomm-rmnet-st...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 2117fce81f6b862aac0673abe8df0c60dca64bfa
config: sparc64-randconfig-m031-20210315 (attached as .config)
compiler: sparc64-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
# https://github.com/0day-ci/linux/commit/34a8cce42717e61eeef72fb1ec8ebd8dc...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alex-Elder/net-qualcomm-rmnet-stop-using-C-bit-fields/20210316-025323
git checkout 34a8cce42717e61eeef72fb1ec8ebd8dc1a4764c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
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/net/ethernet/qualcomm/rmnet/rmnet_map_data.c: In function 'rmnet_map_ipv4_ul_csum_header':
>> drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:204:13: error: 'struct rmnet_map_ul_csum_header' has no member named 'csum_insert_offset'; did you mean 'csum_start_offset'?
204 | ul_header->csum_insert_offset = skb->csum_offset;
| ^~~~~~~~~~~~~~~~~~
| csum_start_offset
>> drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:205:11: error: 'struct rmnet_map_ul_csum_header' has no member named 'csum_enabled'
205 | ul_header->csum_enabled = 1;
| ^~
>> drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:207:12: error: 'struct rmnet_map_ul_csum_header' has no member named 'udp_ind'
207 | ul_header->udp_ind = 1;
| ^~
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:209:12: error: 'struct rmnet_map_ul_csum_header' has no member named 'udp_ind'
209 | ul_header->udp_ind = 0;
| ^~
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c: In function 'rmnet_map_ipv6_ul_csum_header':
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:244:13: error: 'struct rmnet_map_ul_csum_header' has no member named 'csum_insert_offset'; did you mean 'csum_start_offset'?
244 | ul_header->csum_insert_offset = skb->csum_offset;
| ^~~~~~~~~~~~~~~~~~
| csum_start_offset
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:245:11: error: 'struct rmnet_map_ul_csum_header' has no member named 'csum_enabled'
245 | ul_header->csum_enabled = 1;
| ^~
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:248:12: error: 'struct rmnet_map_ul_csum_header' has no member named 'udp_ind'
248 | ul_header->udp_ind = 1;
| ^~
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:250:12: error: 'struct rmnet_map_ul_csum_header' has no member named 'udp_ind'
250 | ul_header->udp_ind = 0;
| ^~
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c: In function 'rmnet_map_checksum_uplink_packet':
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:423:13: error: 'struct rmnet_map_ul_csum_header' has no member named 'csum_insert_offset'; did you mean 'csum_start_offset'?
423 | ul_header->csum_insert_offset = 0;
| ^~~~~~~~~~~~~~~~~~
| csum_start_offset
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:424:11: error: 'struct rmnet_map_ul_csum_header' has no member named 'csum_enabled'
424 | ul_header->csum_enabled = 0;
| ^~
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c:425:11: error: 'struct rmnet_map_ul_csum_header' has no member named 'udp_ind'
425 | ul_header->udp_ind = 0;
| ^~
vim +204 drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 194
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 195 static void
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 196 rmnet_map_ipv4_ul_csum_header(void *iphdr,
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 197 struct rmnet_map_ul_csum_header *ul_header,
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 198 struct sk_buff *skb)
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 199 {
8626cbb3cd11f6 Alex Elder 2021-03-15 200 __be16 *hdr = (__be16 *)ul_header;
8626cbb3cd11f6 Alex Elder 2021-03-15 201 struct iphdr *ip4h = iphdr;
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 202
8626cbb3cd11f6 Alex Elder 2021-03-15 203 ul_header->csum_start_offset = htons(skb_network_header_len(skb));
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 @204 ul_header->csum_insert_offset = skb->csum_offset;
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 @205 ul_header->csum_enabled = 1;
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 206 if (ip4h->protocol == IPPROTO_UDP)
a7cf3d24ee6081 Subash Abhinov Kasiviswanathan 2019-07-25 @207 ul_header->udp_ind = 1;
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 208 else
a7cf3d24ee6081 Subash Abhinov Kasiviswanathan 2019-07-25 209 ul_header->udp_ind = 0;
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 210
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 211 /* Changing remaining fields to network order */
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 212 hdr++;
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 213 *hdr = htons((__force u16)*hdr);
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 214
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 215 skb->ip_summed = CHECKSUM_NONE;
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 216
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 217 rmnet_map_complement_ipv4_txporthdr_csum_field(iphdr);
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 218 }
5eb5f8608ef118 Subash Abhinov Kasiviswanathan 2018-01-07 219
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months