Re: [PATCH v1] media: cafe-driver: use generic power management
by kernel test robot
Hi Vaibhav,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on v5.8-rc6 next-20200720]
[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/Vaibhav-Gupta/media-cafe-driver-...
base: git://linuxtv.org/media_tree.git master
config: alpha-allmodconfig (attached as .config)
compiler: alpha-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/media/platform/marvell-ccic/cafe-driver.c: In function 'cafe_pci_suspend':
>> drivers/media/platform/marvell-ccic/cafe-driver.c:615:2: error: implicit declaration of function 'mccic_suspend' [-Werror=implicit-function-declaration]
615 | mccic_suspend(&cam->mcam);
| ^~~~~~~~~~~~~
drivers/media/platform/marvell-ccic/cafe-driver.c: In function 'cafe_pci_resume':
>> drivers/media/platform/marvell-ccic/cafe-driver.c:626:9: error: implicit declaration of function 'mccic_resume'; did you mean 'mccic_register'? [-Werror=implicit-function-declaration]
626 | return mccic_resume(&cam->mcam);
| ^~~~~~~~~~~~
| mccic_register
cc1: some warnings being treated as errors
--
>> drivers/media/platform/marvell-ccic/mcam-core.c:1972:6: warning: no previous prototype for 'mccic_suspend' [-Wmissing-prototypes]
1972 | void mccic_suspend(struct mcam_camera *cam)
| ^~~~~~~~~~~~~
>> drivers/media/platform/marvell-ccic/mcam-core.c:1987:5: warning: no previous prototype for 'mccic_resume' [-Wmissing-prototypes]
1987 | int mccic_resume(struct mcam_camera *cam)
| ^~~~~~~~~~~~
vim +/mccic_suspend +615 drivers/media/platform/marvell-ccic/cafe-driver.c
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 605
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 606
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 607 /*
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 608 * Basic power management.
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 609 */
0ad4543b81ce3b drivers/media/platform/marvell-ccic/cafe-driver.c Vaibhav Gupta 2020-07-20 610 static int __maybe_unused cafe_pci_suspend(struct device *dev)
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 611 {
0ad4543b81ce3b drivers/media/platform/marvell-ccic/cafe-driver.c Vaibhav Gupta 2020-07-20 612 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 613 struct cafe_camera *cam = to_cam(v4l2_dev);
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 614
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 @615 mccic_suspend(&cam->mcam);
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 616 return 0;
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 617 }
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 618
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 619
0ad4543b81ce3b drivers/media/platform/marvell-ccic/cafe-driver.c Vaibhav Gupta 2020-07-20 620 static int __maybe_unused cafe_pci_resume(struct device *dev)
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 621 {
0ad4543b81ce3b drivers/media/platform/marvell-ccic/cafe-driver.c Vaibhav Gupta 2020-07-20 622 struct v4l2_device *v4l2_dev = dev_get_drvdata(dev);
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 623 struct cafe_camera *cam = to_cam(v4l2_dev);
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 624
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 625 cafe_ctlr_init(&cam->mcam);
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 @626 return mccic_resume(&cam->mcam);
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 627 }
abfa3df36c01a3 drivers/media/video/marvell-ccic/cafe-driver.c Jonathan Corbet 2011-06-11 628
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 6288/9560] drivers/iommu/exynos-iommu.c:724:20: error: conflicting types for 'update_pte'
by kernel test robot
Hi Robin,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ab8be66e724ecf4bffb2895c9c91bbd44fa687c7
commit: b4ceb4a5359ed1c9ba4a20acf3a70d4bbead3248 [6288/9560] iommu: Tidy up Kconfig for SoC IOMMUs
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b4ceb4a5359ed1c9ba4a20acf3a70d4bbead3248
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/err.h:5,
from include/linux/clk.h:12,
from drivers/iommu/exynos-iommu.c:11:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
arch/xtensa/include/asm/page.h:201:32: note: in expansion of macro 'pfn_valid'
201 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from ./arch/xtensa/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/xtensa/include/asm/current.h:18,
from include/linux/mutex.h:14,
from include/linux/notifier.h:14,
from include/linux/clk.h:14,
from drivers/iommu/exynos-iommu.c:11:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:193:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
193 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/iommu/exynos-iommu.c: At top level:
>> drivers/iommu/exynos-iommu.c:724:20: error: conflicting types for 'update_pte'
724 | static inline void update_pte(sysmmu_pte_t *ent, sysmmu_pte_t val)
| ^~~~~~~~~~
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:32,
from include/linux/scatterlist.h:8,
from include/linux/dma-mapping.h:11,
from drivers/iommu/exynos-iommu.c:12:
arch/xtensa/include/asm/pgtable.h:306:20: note: previous definition of 'update_pte' was here
306 | static inline void update_pte(pte_t *ptep, pte_t pteval)
| ^~~~~~~~~~
vim +/update_pte +724 drivers/iommu/exynos-iommu.c
2a96536e77b43c KyongHo Cho 2012-05-12 723
5e3435eb7e1d8c Marek Szyprowski 2016-02-18 @724 static inline void update_pte(sysmmu_pte_t *ent, sysmmu_pte_t val)
2a96536e77b43c KyongHo Cho 2012-05-12 725 {
5e3435eb7e1d8c Marek Szyprowski 2016-02-18 726 dma_sync_single_for_cpu(dma_dev, virt_to_phys(ent), sizeof(*ent),
5e3435eb7e1d8c Marek Szyprowski 2016-02-18 727 DMA_TO_DEVICE);
6ae5343c26f9cb Ben Dooks 2016-06-08 728 *ent = cpu_to_le32(val);
5e3435eb7e1d8c Marek Szyprowski 2016-02-18 729 dma_sync_single_for_device(dma_dev, virt_to_phys(ent), sizeof(*ent),
5e3435eb7e1d8c Marek Szyprowski 2016-02-18 730 DMA_TO_DEVICE);
2a96536e77b43c KyongHo Cho 2012-05-12 731 }
2a96536e77b43c KyongHo Cho 2012-05-12 732
:::::: The code at line 724 was first introduced by commit
:::::: 5e3435eb7e1d8c9431254f5e0053ce1ad654a591 iommu/exynos: Remove ARM-specific cache flush interface
:::::: TO: Marek Szyprowski <m.szyprowski(a)samsung.com>
:::::: CC: Joerg Roedel <jroedel(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH V3 5/6] Update the Kconfig to support carrying forward the IMA Measurement log and and update the setup_dtb call to add the linux,ima-kexec-buffer property to the DTB.
by kernel test robot
Hi Prakhar,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on powerpc/next integrity/next-integrity v5.8-rc6 next-20200720]
[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/Prakhar-Srivastava/Add-support-t...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> security/integrity/ima/ima_kexec.c:49:5: warning: no previous prototype for 'ima_get_kexec_buffer' [-Wmissing-prototypes]
49 | int ima_get_kexec_buffer(void **addr, size_t *size)
| ^~~~~~~~~~~~~~~~~~~~
>> security/integrity/ima/ima_kexec.c:73:5: warning: no previous prototype for 'ima_free_kexec_buffer' [-Wmissing-prototypes]
73 | int ima_free_kexec_buffer(void)
| ^~~~~~~~~~~~~~~~~~~~~
security/integrity/ima/ima_kexec.c:161:6: warning: no previous prototype for 'ima_add_kexec_buffer' [-Wmissing-prototypes]
161 | void ima_add_kexec_buffer(struct kimage *image)
| ^~~~~~~~~~~~~~~~~~~~
vim +/ima_get_kexec_buffer +49 security/integrity/ima/ima_kexec.c
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 41
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 42 /**
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 43 * ima_get_kexec_buffer - get IMA buffer from the previous kernel
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 44 * @addr: On successful return, set to point to the buffer contents.
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 45 * @size: On successful return, set to the buffer size.
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 46 *
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 47 * Return: 0 on success, negative errno on error.
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 48 */
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 @49 int ima_get_kexec_buffer(void **addr, size_t *size)
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 50 {
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 51 int ret, len;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 52 unsigned long tmp_addr;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 53 size_t tmp_size;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 54 const void *prop;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 55
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 56 prop = of_get_property(of_chosen, "linux,ima-kexec-buffer", &len);
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 57 if (!prop)
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 58 return -ENOENT;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 59
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 60 ret = do_get_kexec_buffer(prop, len, &tmp_addr, &tmp_size);
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 61 if (ret)
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 62 return ret;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 63
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 64 *addr = __va(tmp_addr);
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 65 *size = tmp_size;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 66
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 67 return 0;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 68 }
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 69
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 70 /**
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 71 * ima_free_kexec_buffer - free memory used by the IMA buffer
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 72 */
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 @73 int ima_free_kexec_buffer(void)
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 74 {
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 75 int ret;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 76 unsigned long addr;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 77 size_t size;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 78 struct property *prop;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 79
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 80 prop = of_find_property(of_chosen, "linux,ima-kexec-buffer", NULL);
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 81 if (!prop)
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 82 return -ENOENT;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 83
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 84 ret = do_get_kexec_buffer(prop->value, prop->length, &addr, &size);
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 85 if (ret)
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 86 return ret;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 87
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 88 ret = of_remove_property(of_chosen, prop);
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 89 if (ret)
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 90 return ret;
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 91
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 92 return memblock_free(addr, size);
0cc3b50ba7b5c5 Prakhar Srivastava 2020-07-20 93
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-next:master 8529/9127] drivers/gpu/drm/nouveau/dispnv50/crc.h:106:47: error: parameter name omitted
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: aab7ee9f8ff0110bfcd594b33dc33748dc1baf46
commit: 12885ecbfe62df4358d452080d3b8feef54ec8cb [8529/9127] drm/nouveau/kms/nvd9-: Add CRC support
config: arm-tegra_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 12885ecbfe62df4358d452080d3b8feef54ec8cb
# 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 error/warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/nouveau/nouveau_display.c:47:
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_head_crc_late_register':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:47: error: parameter name omitted
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:54: warning: no return statement in function returning non-void [-Wreturn-type]
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_handle_vblank':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:108:57: warning: 'return' with a value, in function returning void [-Wreturn-type]
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^
drivers/gpu/drm/nouveau/dispnv50/crc.h:108:1: note: declared here
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_check':
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:23: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:43: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:9: error: parameter name omitted
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:16: warning: no return statement in function returning non-void [-Wreturn-type]
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_stop_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:114:32: error: parameter name omitted
114 | nv50_crc_atomic_stop_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_prepare_notifier_contexts':
drivers/gpu/drm/nouveau/dispnv50/crc.h:116:43: error: parameter name omitted
116 | nv50_crc_atomic_prepare_notifier_contexts(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_start_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:118:33: error: parameter name omitted
118 | nv50_crc_atomic_start_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_set':
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:21: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:41: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_clr':
drivers/gpu/drm/nouveau/dispnv50/crc.h:122:21: error: parameter name omitted
122 | nv50_crc_atomic_clr(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/nouveau_display.c: In function 'nouveau_framebuffer_new':
drivers/gpu/drm/nouveau/nouveau_display.c:286:15: warning: variable 'width' set but not used [-Wunused-but-set-variable]
286 | unsigned int width, height, i;
| ^~~~~
--
In file included from drivers/gpu/drm/nouveau/dispnv50/atom.h:5,
from drivers/gpu/drm/nouveau/dispnv50/disp.c:25:
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_head_crc_late_register':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:47: error: parameter name omitted
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:54: warning: no return statement in function returning non-void [-Wreturn-type]
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_handle_vblank':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:108:57: warning: 'return' with a value, in function returning void [-Wreturn-type]
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^
drivers/gpu/drm/nouveau/dispnv50/crc.h:108:1: note: declared here
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_check':
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:23: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:43: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:9: error: parameter name omitted
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:16: warning: no return statement in function returning non-void [-Wreturn-type]
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_stop_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:114:32: error: parameter name omitted
114 | nv50_crc_atomic_stop_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_prepare_notifier_contexts':
drivers/gpu/drm/nouveau/dispnv50/crc.h:116:43: error: parameter name omitted
116 | nv50_crc_atomic_prepare_notifier_contexts(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_start_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:118:33: error: parameter name omitted
118 | nv50_crc_atomic_start_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_set':
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:21: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:41: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_clr':
drivers/gpu/drm/nouveau/dispnv50/crc.h:122:21: error: parameter name omitted
122 | nv50_crc_atomic_clr(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/disp.c: In function 'nv50_mstm_cleanup':
drivers/gpu/drm/nouveau/dispnv50/disp.c:1232:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1232 | int ret;
| ^~~
drivers/gpu/drm/nouveau/dispnv50/disp.c: In function 'nv50_mstm_prepare':
drivers/gpu/drm/nouveau/dispnv50/disp.c:1256:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
1256 | int ret;
| ^~~
drivers/gpu/drm/nouveau/dispnv50/disp.c: At top level:
drivers/gpu/drm/nouveau/dispnv50/disp.c:2465:1: warning: no previous prototype for 'nv50_display_create' [-Wmissing-prototypes]
2465 | nv50_display_create(struct drm_device *dev)
| ^~~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/nouveau/dispnv50/atom.h:5,
from drivers/gpu/drm/nouveau/dispnv50/core.h:4,
from drivers/gpu/drm/nouveau/dispnv50/core.c:22:
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_head_crc_late_register':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:47: error: parameter name omitted
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:54: warning: no return statement in function returning non-void [-Wreturn-type]
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_handle_vblank':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:108:57: warning: 'return' with a value, in function returning void [-Wreturn-type]
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^
drivers/gpu/drm/nouveau/dispnv50/crc.h:108:1: note: declared here
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_check':
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:23: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:43: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:9: error: parameter name omitted
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:16: warning: no return statement in function returning non-void [-Wreturn-type]
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_stop_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:114:32: error: parameter name omitted
114 | nv50_crc_atomic_stop_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_prepare_notifier_contexts':
drivers/gpu/drm/nouveau/dispnv50/crc.h:116:43: error: parameter name omitted
116 | nv50_crc_atomic_prepare_notifier_contexts(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_start_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:118:33: error: parameter name omitted
118 | nv50_crc_atomic_start_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_set':
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:21: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:41: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_clr':
drivers/gpu/drm/nouveau/dispnv50/crc.h:122:21: error: parameter name omitted
122 | nv50_crc_atomic_clr(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/nouveau/dispnv50/atom.h:5,
from drivers/gpu/drm/nouveau/dispnv50/head.h:7,
from drivers/gpu/drm/nouveau/dispnv50/headc57d.c:22:
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_head_crc_late_register':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:47: error: parameter name omitted
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:106:54: warning: no return statement in function returning non-void [-Wreturn-type]
106 | static inline int nv50_head_crc_late_register(struct nv50_head *) {}
| ^~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_handle_vblank':
>> drivers/gpu/drm/nouveau/dispnv50/crc.h:108:57: warning: 'return' with a value, in function returning void [-Wreturn-type]
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^
drivers/gpu/drm/nouveau/dispnv50/crc.h:108:1: note: declared here
108 | nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_check':
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:23: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:111:43: error: parameter name omitted
111 | nv50_crc_atomic_check(struct nv50_head *, struct nv50_head_atom *,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:9: error: parameter name omitted
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:112:16: warning: no return statement in function returning non-void [-Wreturn-type]
112 | struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_stop_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:114:32: error: parameter name omitted
114 | nv50_crc_atomic_stop_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_prepare_notifier_contexts':
drivers/gpu/drm/nouveau/dispnv50/crc.h:116:43: error: parameter name omitted
116 | nv50_crc_atomic_prepare_notifier_contexts(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_start_reporting':
drivers/gpu/drm/nouveau/dispnv50/crc.h:118:33: error: parameter name omitted
118 | nv50_crc_atomic_start_reporting(struct drm_atomic_state *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_set':
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:21: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h:120:41: error: parameter name omitted
120 | nv50_crc_atomic_set(struct nv50_head *, struct nv50_head_atom *) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/crc.h: In function 'nv50_crc_atomic_clr':
drivers/gpu/drm/nouveau/dispnv50/crc.h:122:21: error: parameter name omitted
122 | nv50_crc_atomic_clr(struct nv50_head *) {}
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/headc57d.c: At top level:
drivers/gpu/drm/nouveau/dispnv50/headc57d.c:77:1: warning: no previous prototype for 'headc57d_olut_clr' [-Wmissing-prototypes]
77 | headc57d_olut_clr(struct nv50_head *head)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/headc57d.c:89:1: warning: no previous prototype for 'headc57d_olut_set' [-Wmissing-prototypes]
89 | headc57d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/nouveau/dispnv50/headc57d.c:159:1: warning: no previous prototype for 'headc57d_olut' [-Wmissing-prototypes]
159 | headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size)
| ^~~~~~~~~~~~~
vim +106 drivers/gpu/drm/nouveau/dispnv50/crc.h
104
105 static inline void nv50_crc_init(struct drm_device *dev) {}
> 106 static inline int nv50_head_crc_late_register(struct nv50_head *) {}
107 static inline void
> 108 nv50_crc_handle_vblank(struct nv50_head *head) { return 0; }
109
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
ERROR: "max_low_pfn" undefined!
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5714ee50bb4375bd586858ad800b1d9772847452
commit: b35b9a10362d203451d920d01ab8d6cd55cbaf2a mtd: spi-nor: Move m25p80 code in spi-nor.c
date: 11 months ago
config: ia64-randconfig-m031-20200720 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b35b9a10362d203451d920d01ab8d6cd55cbaf2a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 >>):
ERROR: "max_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined!
ERROR: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined!
>> ERROR: "max_low_pfn" [drivers/mtd/spi-nor/spi-nor.ko] undefined!
>> ERROR: "min_low_pfn" [drivers/mtd/spi-nor/spi-nor.ko] undefined!
ERROR: "min_low_pfn" [drivers/mtd/nand/raw/nand.ko] undefined!
ERROR: "max_low_pfn" [drivers/mtd/nand/raw/nand.ko] undefined!
ERROR: "max_low_pfn" [drivers/rapidio/devices/rio_mport_cdev.ko] undefined!
ERROR: "min_low_pfn" [drivers/rapidio/devices/rio_mport_cdev.ko] undefined!
ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu.ko] undefined!
ERROR: "max_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu.ko] undefined!
ERROR: "min_low_pfn" [drivers/crypto/cavium/nitrox/n5pf.ko] undefined!
ERROR: "max_low_pfn" [drivers/crypto/cavium/nitrox/n5pf.ko] undefined!
ERROR: "max_low_pfn" [drivers/md/dm-integrity.ko] undefined!
ERROR: "min_low_pfn" [drivers/md/dm-integrity.ko] undefined!
ERROR: "max_low_pfn" [crypto/tcrypt.ko] undefined!
ERROR: "min_low_pfn" [crypto/tcrypt.ko] undefined!
ERROR: "max_low_pfn" [crypto/ccm.ko] undefined!
ERROR: "min_low_pfn" [crypto/ccm.ko] undefined!
ERROR: "max_low_pfn" [crypto/gcm.ko] undefined!
ERROR: "min_low_pfn" [crypto/gcm.ko] undefined!
ERROR: "min_low_pfn" [security/keys/encrypted-keys/encrypted-keys.ko] undefined!
ERROR: "max_low_pfn" [security/keys/encrypted-keys/encrypted-keys.ko] undefined!
ERROR: "min_low_pfn" [arch/ia64/kernel/mca_recovery.ko] undefined!
ERROR: "max_low_pfn" [arch/ia64/kernel/mca_recovery.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH V3 4/6] Add support in arm64 to store the memory information of the IMA measurement log in the kimage used for kexec.
by kernel test robot
Hi Prakhar,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on powerpc/next integrity/next-integrity v5.8-rc6 next-20200720]
[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/Prakhar-Srivastava/Add-support-t...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm64/kernel/machine_kexec_file.c:49:5: warning: no previous prototype for 'arch_ima_add_kexec_buffer' [-Wmissing-prototypes]
49 | int arch_ima_add_kexec_buffer(struct kimage *image, unsigned long load_addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/arch_ima_add_kexec_buffer +49 arch/arm64/kernel/machine_kexec_file.c
40
41 /**
42 * arch_ima_add_kexec_buffer - do arch-specific steps to add the IMA buffer
43 *
44 * Architectures should use this function to pass on the IMA buffer
45 * information to the next kernel.
46 *
47 * Return: 0 on success, negative errno on error.
48 */
> 49 int arch_ima_add_kexec_buffer(struct kimage *image, unsigned long load_addr,
50 size_t size)
51 {
52 image->arch.ima_buffer_addr = load_addr;
53 image->arch.ima_buffer_size = size;
54 return 0;
55 }
56
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH 3/4] fs: add mount_setattr()
by kernel test robot
Hi Christian,
I love your patch! Yet something to improve:
[auto build test ERROR on dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258]
url: https://github.com/0day-ci/linux/commits/Christian-Brauner/fs-add-mount_s...
base: dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
config: x86_64-randconfig-a015-20200719 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cf1105069648446d58adfb7a6cc590013d6886ba)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from <built-in>:1:
./usr/include/linux/mount.h:124:2: error: unknown type name '__u64'
__u64 attr_set;
^
./usr/include/linux/mount.h:125:2: error: unknown type name '__u64'
__u64 attr_clr;
^
>> ./usr/include/linux/mount.h:126:2: error: unknown type name '__u32'
__u32 propagation;
^
./usr/include/linux/mount.h:127:2: error: unknown type name '__u32'
__u32 atime;
^
4 errors generated.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH v4 08/24] seqlock: lockdep assert non-preemptibility on seqcount_t write
by kernel test robot
Hi "Ahmed,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on a9232dc5607dbada801f2fe83ea307cda762969a]
url: https://github.com/0day-ci/linux/commits/Ahmed-S-Darwish/seqlock-Extend-s...
base: a9232dc5607dbada801f2fe83ea307cda762969a
config: mips-allmodconfig (attached as .config)
compiler: mips-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 >>):
In file included from arch/mips/include/asm/bug.h:42,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:15,
from include/linux/time.h:6,
from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
include/linux/seqlock.h: In function 'write_seqcount_begin_nested':
>> include/asm-generic/percpu.h:31:40: error: implicit declaration of function 'raw_smp_processor_id' [-Werror=implicit-function-declaration]
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
include/linux/compiler.h:380:2: note: in expansion of macro '__compiletime_assert'
380 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:119:10: note: in expansion of macro 'READ_ONCE'
119 | __ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
| ^~~~~~~~~
include/linux/percpu-defs.h:231:2: note: in expansion of macro 'RELOC_HIDE'
231 | RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
| ^~~~~~~~~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:119:21: note: in expansion of macro 'raw_cpu_ptr'
119 | __ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
| ^~~~~~~~~~~
include/asm-generic/percpu.h:138:11: note: in expansion of macro '__this_cpu_generic_read_nopreempt'
138 | __ret = __this_cpu_generic_read_nopreempt(pcp); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:320:31: note: in expansion of macro 'this_cpu_generic_read'
320 | #define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:321:23: note: in expansion of macro 'this_cpu_read_1'
321 | case 1: pscr_ret__ = stem##1(variable); break; \
| ^~~~
include/linux/percpu-defs.h:507:29: note: in expansion of macro '__pcpu_size_call_return'
507 | #define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/lockdep.h:565:9: note: in expansion of macro 'this_cpu_read'
565 | this_cpu_read(hardirqs_enabled))); \
| ^~~~~~~~~~~~~
include/linux/seqlock.h:285:2: note: in expansion of macro 'lockdep_assert_preemption_disabled'
285 | lockdep_assert_preemption_disabled();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/smp.h:82,
from arch/mips/include/asm/cpu-type.h:12,
from arch/mips/include/asm/timex.h:19,
from include/linux/timex.h:65,
from include/linux/time32.h:13,
from include/linux/time.h:74,
from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
arch/mips/include/asm/smp.h: At top level:
>> arch/mips/include/asm/smp.h:28:19: error: static declaration of 'raw_smp_processor_id' follows non-static declaration
28 | static inline int raw_smp_processor_id(void)
| ^~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/include/asm/bug.h:42,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:15,
from include/linux/time.h:6,
from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
include/asm-generic/percpu.h:31:40: note: previous implicit declaration of 'raw_smp_processor_id' was here
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~~~~~~~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
include/linux/compiler.h:380:2: note: in expansion of macro '__compiletime_assert'
380 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:2: note: in expansion of macro 'compiletime_assert'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/linux/compiler.h:405:21: note: in expansion of macro '__native_word'
405 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/linux/compiler.h:291:2: note: in expansion of macro 'compiletime_assert_rwonce_type'
291 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:119:10: note: in expansion of macro 'READ_ONCE'
119 | __ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
| ^~~~~~~~~
include/linux/percpu-defs.h:231:2: note: in expansion of macro 'RELOC_HIDE'
231 | RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
| ^~~~~~~~~~
include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset'
31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
| ^~~~~~~~~~~~~~
include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); \
| ^~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:119:21: note: in expansion of macro 'raw_cpu_ptr'
119 | __ret = READ_ONCE(*raw_cpu_ptr(&(pcp))); \
| ^~~~~~~~~~~
include/asm-generic/percpu.h:138:11: note: in expansion of macro '__this_cpu_generic_read_nopreempt'
138 | __ret = __this_cpu_generic_read_nopreempt(pcp); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/percpu.h:320:31: note: in expansion of macro 'this_cpu_generic_read'
320 | #define this_cpu_read_1(pcp) this_cpu_generic_read(pcp)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:321:23: note: in expansion of macro 'this_cpu_read_1'
321 | case 1: pscr_ret__ = stem##1(variable); break; \
| ^~~~
include/linux/percpu-defs.h:507:29: note: in expansion of macro '__pcpu_size_call_return'
507 | #define this_cpu_read(pcp) __pcpu_size_call_return(this_cpu_read_, pcp)
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/lockdep.h:565:9: note: in expansion of macro 'this_cpu_read'
565 | this_cpu_read(hardirqs_enabled))); \
| ^~~~~~~~~~~~~
include/linux/seqlock.h:285:2: note: in expansion of macro 'lockdep_assert_preemption_disabled'
285 | lockdep_assert_preemption_disabled();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes]
26 | void output_ptreg_defines(void)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes]
78 | void output_task_defines(void)
| ^~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:93:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes]
93 | void output_thread_info_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:110:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes]
110 | void output_thread_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:138:6: warning: no previous prototype for 'output_thread_fpu_defines' [-Wmissing-prototypes]
138 | void output_thread_fpu_defines(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:181:6: warning: no previous prototype for 'output_mm_defines' [-Wmissing-prototypes]
181 | void output_mm_defines(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:220:6: warning: no previous prototype for 'output_sc_defines' [-Wmissing-prototypes]
220 | void output_sc_defines(void)
| ^~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:255:6: warning: no previous prototype for 'output_signal_defined' [-Wmissing-prototypes]
255 | void output_signal_defined(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/asm-offsets.c:322:6: warning: no previous prototype for 'output_pbe_defines' [-Wmissing-prototypes]
322 | void output_pbe_defines(void)
| ^~~~~~~~~~~~~~~~~~
vim +/raw_smp_processor_id +31 include/asm-generic/percpu.h
acdac87202a408 travis(a)sgi.com 2008-01-30 23
acdac87202a408 travis(a)sgi.com 2008-01-30 24 /*
acdac87202a408 travis(a)sgi.com 2008-01-30 25 * Determine the offset for the currently active processor.
acdac87202a408 travis(a)sgi.com 2008-01-30 26 * An arch may define __my_cpu_offset to provide a more effective
acdac87202a408 travis(a)sgi.com 2008-01-30 27 * means of obtaining the offset to the per cpu variables of the
acdac87202a408 travis(a)sgi.com 2008-01-30 28 * current processor.
acdac87202a408 travis(a)sgi.com 2008-01-30 29 */
acdac87202a408 travis(a)sgi.com 2008-01-30 30 #ifndef __my_cpu_offset
acdac87202a408 travis(a)sgi.com 2008-01-30 @31 #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
1e8352784abaed Hugh Dickins 2008-02-23 32 #endif
1e8352784abaed Hugh Dickins 2008-02-23 33 #ifdef CONFIG_DEBUG_PREEMPT
acdac87202a408 travis(a)sgi.com 2008-01-30 34 #define my_cpu_offset per_cpu_offset(smp_processor_id())
acdac87202a408 travis(a)sgi.com 2008-01-30 35 #else
acdac87202a408 travis(a)sgi.com 2008-01-30 36 #define my_cpu_offset __my_cpu_offset
acdac87202a408 travis(a)sgi.com 2008-01-30 37 #endif
acdac87202a408 travis(a)sgi.com 2008-01-30 38
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-sof-driver:pr/2298 1/2] sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: implicit declaration of function 'SDW_SDCA_CTL'; did you mean
by kernel test robot
tree: https://github.com/thesofproject/linux pr/2298
head: cbddce5bcdf201bf4c6a5bcccd3b192f9472f3e3
commit: 099553e4970d633d81658a7270f30332c12521a8 [1/2] ASoc: rt711-sdca: Add RT711 SDCA vendor-specific driver
config: arm64-sof-customedconfig-soundwire-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 099553e4970d633d81658a7270f30332c12521a8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from sound/soc/codecs/rt711-sdca.c:27:
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: implicit declaration of function 'SDW_SDCA_CTL'; did you mean 'SDW_SCP_CTRL'? [-Werror=implicit-function-declaration]
78 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_CS01, CTL_SAMPLE_FREQ_INDEX, 0), 0x09 },
| ^~~~~~~~~~~~
| SDW_SCP_CTRL
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: initializer element is not constant
sound/soc/codecs/rt711-sdca-sdw.h:78:4: note: (near initialization for 'rt711_sdca_reg_defaults[63].reg')
sound/soc/codecs/rt711-sdca-sdw.h:79:4: error: initializer element is not constant
79 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:79:4: note: (near initialization for 'rt711_sdca_reg_defaults[64].reg')
sound/soc/codecs/rt711-sdca-sdw.h:80:4: error: initializer element is not constant
80 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:80:4: note: (near initialization for 'rt711_sdca_reg_defaults[65].reg')
sound/soc/codecs/rt711-sdca-sdw.h:81:4: error: initializer element is not constant
81 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:81:4: note: (near initialization for 'rt711_sdca_reg_defaults[66].reg')
sound/soc/codecs/rt711-sdca-sdw.h:82:4: error: initializer element is not constant
82 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:82:4: note: (near initialization for 'rt711_sdca_reg_defaults[67].reg')
sound/soc/codecs/rt711-sdca-sdw.h:83:4: error: initializer element is not constant
83 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:83:4: note: (near initialization for 'rt711_sdca_reg_defaults[68].reg')
sound/soc/codecs/rt711-sdca-sdw.h:84:4: error: initializer element is not constant
84 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:84:4: note: (near initialization for 'rt711_sdca_reg_defaults[69].reg')
sound/soc/codecs/rt711-sdca-sdw.h:85:4: error: initializer element is not constant
85 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:85:4: note: (near initialization for 'rt711_sdca_reg_defaults[70].reg')
sound/soc/codecs/rt711-sdca-sdw.h:86:4: error: initializer element is not constant
86 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:86:4: note: (near initialization for 'rt711_sdca_reg_defaults[71].reg')
sound/soc/codecs/rt711-sdca-sdw.h:87:4: error: initializer element is not constant
87 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PDE28, CTL_REQ_POWER_STATE, 0), 0x03 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:87:4: note: (near initialization for 'rt711_sdca_reg_defaults[72].reg')
sound/soc/codecs/rt711-sdca-sdw.h:88:4: error: initializer element is not constant
88 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:88:4: note: (near initialization for 'rt711_sdca_reg_defaults[73].reg')
sound/soc/codecs/rt711-sdca-sdw.h:89:4: error: initializer element is not constant
89 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:89:4: note: (near initialization for 'rt711_sdca_reg_defaults[74].reg')
sound/soc/codecs/rt711-sdca-sdw.h:90:4: error: initializer element is not constant
90 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:90:4: note: (near initialization for 'rt711_sdca_reg_defaults[75].reg')
sound/soc/codecs/rt711-sdca-sdw.h:91:4: error: initializer element is not constant
91 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:91:4: note: (near initialization for 'rt711_sdca_reg_defaults[76].reg')
sound/soc/codecs/rt711-sdca-sdw.h:92:4: error: initializer element is not constant
92 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:92:4: note: (near initialization for 'rt711_sdca_reg_defaults[77].reg')
sound/soc/codecs/rt711-sdca-sdw.h:93:4: error: initializer element is not constant
93 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:93:4: note: (near initialization for 'rt711_sdca_reg_defaults[78].reg')
sound/soc/codecs/rt711-sdca-sdw.h:94:4: error: initializer element is not constant
94 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:94:4: note: (near initialization for 'rt711_sdca_reg_defaults[79].reg')
sound/soc/codecs/rt711-sdca-sdw.h:95:4: error: initializer element is not constant
95 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:95:4: note: (near initialization for 'rt711_sdca_reg_defaults[80].reg')
In file included from sound/soc/codecs/rt711-sdca.h:15,
from sound/soc/codecs/rt711-sdca.c:26:
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:570:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
570 | SOC_DOUBLE_R_EXT_TLV("FU05 Playback Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[0]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:570:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
570 | SOC_DOUBLE_R_EXT_TLV("FU05 Playback Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:575:2: note: in expansion of macro 'SOC_DOUBLE_R'
575 | SOC_DOUBLE_R("FU1E Capture Switch",
| ^~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[1]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:575:2: note: in expansion of macro 'SOC_DOUBLE_R'
575 | SOC_DOUBLE_R("FU1E Capture Switch",
| ^~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:579:2: note: in expansion of macro 'SOC_DOUBLE_R'
579 | SOC_DOUBLE_R("FU0F Capture Switch",
| ^~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[2]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:579:2: note: in expansion of macro 'SOC_DOUBLE_R'
579 | SOC_DOUBLE_R("FU0F Capture Switch",
| ^~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:583:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
583 | SOC_DOUBLE_R_EXT_TLV("FU1E Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[3]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:583:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
583 | SOC_DOUBLE_R_EXT_TLV("FU1E Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:588:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
588 | SOC_DOUBLE_R_EXT_TLV("FU0F Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[4]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:588:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
588 | SOC_DOUBLE_R_EXT_TLV("FU0F Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:593:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
593 | SOC_DOUBLE_R_EXT_TLV("FU44 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[5]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:593:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
593 | SOC_DOUBLE_R_EXT_TLV("FU44 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:598:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
598 | SOC_DOUBLE_R_EXT_TLV("FU15 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[6]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:598:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
598 | SOC_DOUBLE_R_EXT_TLV("FU15 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
In file included from sound/soc/codecs/rt711-sdca.c:27:
sound/soc/codecs/rt711-sdca-sdw.h:14:33: warning: 'rt711_sdca_reg_defaults' defined but not used [-Wunused-const-variable=]
14 | static const struct reg_default rt711_sdca_reg_defaults[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from sound/soc/codecs/rt711-sdca-sdw.c:16:
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: implicit declaration of function 'SDW_SDCA_CTL'; did you mean 'SDW_SCP_CTRL'? [-Werror=implicit-function-declaration]
78 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_CS01, CTL_SAMPLE_FREQ_INDEX, 0), 0x09 },
| ^~~~~~~~~~~~
| SDW_SCP_CTRL
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: initializer element is not constant
sound/soc/codecs/rt711-sdca-sdw.h:78:4: note: (near initialization for 'rt711_sdca_reg_defaults[63].reg')
sound/soc/codecs/rt711-sdca-sdw.h:79:4: error: initializer element is not constant
79 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:79:4: note: (near initialization for 'rt711_sdca_reg_defaults[64].reg')
sound/soc/codecs/rt711-sdca-sdw.h:80:4: error: initializer element is not constant
80 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:80:4: note: (near initialization for 'rt711_sdca_reg_defaults[65].reg')
sound/soc/codecs/rt711-sdca-sdw.h:81:4: error: initializer element is not constant
81 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:81:4: note: (near initialization for 'rt711_sdca_reg_defaults[66].reg')
sound/soc/codecs/rt711-sdca-sdw.h:82:4: error: initializer element is not constant
82 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:82:4: note: (near initialization for 'rt711_sdca_reg_defaults[67].reg')
sound/soc/codecs/rt711-sdca-sdw.h:83:4: error: initializer element is not constant
83 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:83:4: note: (near initialization for 'rt711_sdca_reg_defaults[68].reg')
sound/soc/codecs/rt711-sdca-sdw.h:84:4: error: initializer element is not constant
84 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:84:4: note: (near initialization for 'rt711_sdca_reg_defaults[69].reg')
sound/soc/codecs/rt711-sdca-sdw.h:85:4: error: initializer element is not constant
85 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:85:4: note: (near initialization for 'rt711_sdca_reg_defaults[70].reg')
sound/soc/codecs/rt711-sdca-sdw.h:86:4: error: initializer element is not constant
86 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:86:4: note: (near initialization for 'rt711_sdca_reg_defaults[71].reg')
sound/soc/codecs/rt711-sdca-sdw.h:87:4: error: initializer element is not constant
87 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PDE28, CTL_REQ_POWER_STATE, 0), 0x03 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:87:4: note: (near initialization for 'rt711_sdca_reg_defaults[72].reg')
sound/soc/codecs/rt711-sdca-sdw.h:88:4: error: initializer element is not constant
88 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:88:4: note: (near initialization for 'rt711_sdca_reg_defaults[73].reg')
sound/soc/codecs/rt711-sdca-sdw.h:89:4: error: initializer element is not constant
89 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:89:4: note: (near initialization for 'rt711_sdca_reg_defaults[74].reg')
sound/soc/codecs/rt711-sdca-sdw.h:90:4: error: initializer element is not constant
90 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:90:4: note: (near initialization for 'rt711_sdca_reg_defaults[75].reg')
sound/soc/codecs/rt711-sdca-sdw.h:91:4: error: initializer element is not constant
91 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:91:4: note: (near initialization for 'rt711_sdca_reg_defaults[76].reg')
sound/soc/codecs/rt711-sdca-sdw.h:92:4: error: initializer element is not constant
92 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:92:4: note: (near initialization for 'rt711_sdca_reg_defaults[77].reg')
sound/soc/codecs/rt711-sdca-sdw.h:93:4: error: initializer element is not constant
93 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:93:4: note: (near initialization for 'rt711_sdca_reg_defaults[78].reg')
sound/soc/codecs/rt711-sdca-sdw.h:94:4: error: initializer element is not constant
94 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:94:4: note: (near initialization for 'rt711_sdca_reg_defaults[79].reg')
sound/soc/codecs/rt711-sdca-sdw.h:95:4: error: initializer element is not constant
95 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:95:4: note: (near initialization for 'rt711_sdca_reg_defaults[80].reg')
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_sdw_read':
>> sound/soc/codecs/rt711-sdca-sdw.c:107:2: error: case label does not reduce to an integer constant
107 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:108:2: error: case label does not reduce to an integer constant
108 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:109:2: error: case label does not reduce to an integer constant
109 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:110:2: error: case label does not reduce to an integer constant
110 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:111:2: error: case label does not reduce to an integer constant
111 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:112:2: error: case label does not reduce to an integer constant
112 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:113:2: error: case label does not reduce to an integer constant
113 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:114:2: error: case label does not reduce to an integer constant
114 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:115:2: error: case label does not reduce to an integer constant
115 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:116:2: error: case label does not reduce to an integer constant
116 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_sdw_write':
sound/soc/codecs/rt711-sdca-sdw.c:158:2: error: case label does not reduce to an integer constant
158 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:159:2: error: case label does not reduce to an integer constant
159 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:160:2: error: case label does not reduce to an integer constant
160 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:161:2: error: case label does not reduce to an integer constant
161 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:162:2: error: case label does not reduce to an integer constant
162 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:163:2: error: case label does not reduce to an integer constant
163 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:164:2: error: case label does not reduce to an integer constant
164 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:165:2: error: case label does not reduce to an integer constant
165 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:166:2: error: case label does not reduce to an integer constant
166 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:167:2: error: case label does not reduce to an integer constant
167 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_read_prop':
>> sound/soc/codecs/rt711-sdca-sdw.c:249:6: error: 'struct sdw_slave_prop' has no member named 'is_sdca'
249 | prop->is_sdca = true;
| ^~
sound/soc/codecs/rt711-sdca-sdw.c:249:2: warning: statement with no effect [-Wunused-value]
249 | prop->is_sdca = true;
| ^~~~
In file included from include/linux/printk.h:404,
from include/linux/kernel.h:15,
from include/linux/delay.h:22,
from sound/soc/codecs/rt711-sdca-sdw.c:9:
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_interrupt_callback':
>> sound/soc/codecs/rt711-sdca-sdw.c:320:31: error: 'struct sdw_slave_intr_status' has no member named 'sdca_cascade'
320 | status->control_port, status->sdca_cascade);
| ^~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:115:2: note: in expansion of macro 'dynamic_dev_dbg'
115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.c:318:2: note: in expansion of macro 'dev_dbg'
318 | dev_dbg(&slave->dev,
| ^~~~~~~
>> sound/soc/codecs/rt711-sdca-sdw.c:319:3: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'const struct reg_default *' [-Wformat=]
319 | "%s control_port_stat=%x, sdca_cascade=%x", __func__,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:115:2: note: in expansion of macro 'dynamic_dev_dbg'
115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:115:23: note: in expansion of macro 'dev_fmt'
115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
sound/soc/codecs/rt711-sdca-sdw.c:318:2: note: in expansion of macro 'dev_dbg'
318 | dev_dbg(&slave->dev,
| ^~~~~~~
sound/soc/codecs/rt711-sdca-sdw.c:319:43: note: format string is defined here
319 | "%s control_port_stat=%x, sdca_cascade=%x", __func__,
| ~^
| |
| unsigned int
sound/soc/codecs/rt711-sdca-sdw.c:322:42: error: 'struct sdw_slave_intr_status' has no member named 'sdca_cascade'
322 | if (status->control_port & 0x4 || status->sdca_cascade)
| ^~
cc1: some warnings being treated as errors
vim +78 sound/soc/codecs/rt711-sdca-sdw.h
13
14 static const struct reg_default rt711_sdca_reg_defaults[] = {
15 { 0x005c, 0x00 },
16 { 0x005d, 0x00 },
17 { 0x201a, 0x00 },
18 { 0x201e, 0x00 },
19 { 0x201f, 0x00 },
20 { 0x2020, 0x00 },
21 { 0x2021, 0x00 },
22 { 0x2022, 0x00 },
23 { 0x2023, 0x00 },
24 { 0x2024, 0x00 },
25 { 0x2025, 0x01 },
26 { 0x2026, 0x00 },
27 { 0x2027, 0x00 },
28 { 0x2029, 0x00 },
29 { 0x202a, 0x00 },
30 { 0x202d, 0x00 },
31 { 0x202e, 0x00 },
32 { 0x202f, 0x00 },
33 { 0x2030, 0x00 },
34 { 0x2031, 0x00 },
35 { 0x2032, 0x00 },
36 { 0x2033, 0x00 },
37 { 0x2230, 0x00 },
38 { 0x2231, 0x2f },
39 { 0x2232, 0x80 },
40 { 0x2233, 0x00 },
41 { 0x2234, 0x00 },
42 { 0x2235, 0x00 },
43 { 0x2236, 0x00 },
44 { 0x2237, 0x00 },
45 { 0x2238, 0x00 },
46 { 0x2239, 0x00 },
47 { 0x2f01, 0x00 },
48 { 0x2f02, 0x09 },
49 { 0x2f03, 0x00 },
50 { 0x2f04, 0x00 },
51 { 0x2f05, 0x0b },
52 { 0x2f06, 0x01 },
53 { 0x2f08, 0x00 },
54 { 0x2f09, 0x00 },
55 { 0x2f0a, 0x00 },
56 { 0x2f0b, 0x00 },
57 { 0x2f0c, 0x00 },
58 { 0x2f0d, 0x00 },
59 { 0x2f0e, 0x14 },
60 { 0x2f0f, 0x00 },
61 { 0x2f50, 0x03 },
62 { 0x2f5a, 0x00 },
63 { 0x2000009, 0x1029 },
64 { 0x2000011, 0x007a },
65 { 0x200001a, 0x8003 },
66 { 0x2000045, 0x5289 },
67 { 0x2000048, 0x8049 },
68 { 0x200004a, 0xa83b },
69 { 0x200006b, 0x5064 },
70 { 0x200006f, 0x058b },
71 { 0x5800000, 0x0008 },
72 { 0x5800001, 0x0000 },
73 { 0x5f00001, 0x000a },
74 { 0x6100000, 0x6100 },
75 { 0x6100035, 0x0060 },
76 { 0x6100036, 0x0029 },
77 { 0x610003f, 0xff12 },
> 78 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_CS01, CTL_SAMPLE_FREQ_INDEX, 0), 0x09 },
79 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_L), 0x01 },
80 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_R), 0x01 },
81 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L), 0x00 },
82 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R), 0x00 },
83 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L), 0x00 },
84 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R), 0x00 },
85 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_L), 0x01 },
86 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_R), 0x01 },
87 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PDE28, CTL_REQ_POWER_STATE, 0), 0x03 },
88 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L), 0x00 },
89 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R), 0x00 },
90 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L), 0x00 },
91 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R), 0x00 },
92 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L), 0x00 },
93 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R), 0x00 },
94 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_L), 0x01 },
95 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_R), 0x01 },
96 };
97
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH V3 1/2] pm80xx : Support for get phy profile functionality.
by kernel test robot
Hi Deepak,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on v5.8-rc6]
[also build test WARNING on next-20200720]
[cannot apply to mkp-scsi/for-next scsi/for-next]
[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/Deepak-Ukey/pm80xx-Updates-for-t...
base: ba47d845d715a010f7b51f6f89bae32845e6acb7
config: x86_64-randconfig-s022-20200719 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-49-g707c5017-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/scsi/pm8001/pm80xx_hwi.c:81:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:81:39: sparse: expected unsigned int [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:81:39: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:69:6: sparse: sparse: symbol 'pm80xx_pci_mem_copy' was not declared. Should it be static?
drivers/scsi/pm8001/pm80xx_hwi.c:1213:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 @@ got unsigned int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1213:27: sparse: expected restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:1213:27: sparse: got unsigned int
drivers/scsi/pm8001/pm80xx_hwi.c:1215:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1215:27: sparse: expected restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:1215:27: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1255:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] pageCode @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1255:39: sparse: expected restricted __le32 [addressable] [usertype] pageCode
drivers/scsi/pm8001/pm80xx_hwi.c:1255:39: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1256:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] MST_MSI @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1256:39: sparse: expected restricted __le32 [addressable] [usertype] MST_MSI
drivers/scsi/pm8001/pm80xx_hwi.c:1256:39: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1257:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] STP_SSP_MCT_TMO @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1257:39: sparse: expected restricted __le32 [addressable] [usertype] STP_SSP_MCT_TMO
drivers/scsi/pm8001/pm80xx_hwi.c:1257:39: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1258:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] STP_FRM_TMO @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1258:39: sparse: expected restricted __le32 [addressable] [usertype] STP_FRM_TMO
drivers/scsi/pm8001/pm80xx_hwi.c:1258:39: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1260:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] STP_IDLE_TMO @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1260:39: sparse: expected restricted __le32 [addressable] [usertype] STP_IDLE_TMO
drivers/scsi/pm8001/pm80xx_hwi.c:1260:39: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1262:26: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:1263:44: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] STP_IDLE_TMO @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1263:44: sparse: expected restricted __le32 [addressable] [usertype] STP_IDLE_TMO
drivers/scsi/pm8001/pm80xx_hwi.c:1263:44: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1266:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] OPNRJT_RTRY_INTVL @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1266:41: sparse: expected restricted __le32 [addressable] [usertype] OPNRJT_RTRY_INTVL
drivers/scsi/pm8001/pm80xx_hwi.c:1266:41: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1268:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] Data_Cmd_OPNRJT_RTRY_TMO @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1268:48: sparse: expected restricted __le32 [addressable] [usertype] Data_Cmd_OPNRJT_RTRY_TMO
drivers/scsi/pm8001/pm80xx_hwi.c:1268:48: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1270:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] Data_Cmd_OPNRJT_RTRY_THR @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1270:48: sparse: expected restricted __le32 [addressable] [usertype] Data_Cmd_OPNRJT_RTRY_THR
drivers/scsi/pm8001/pm80xx_hwi.c:1270:48: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1272:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [usertype] MAX_AIP @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1272:31: sparse: expected restricted __le32 [addressable] [usertype] MAX_AIP
drivers/scsi/pm8001/pm80xx_hwi.c:1272:31: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1425:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] new_curidx_ksop @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:1425:33: sparse: expected restricted __le32 [addressable] [assigned] [usertype] new_curidx_ksop
drivers/scsi/pm8001/pm80xx_hwi.c:1425:33: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:1869:40: sparse: sparse: invalid assignment: |=
drivers/scsi/pm8001/pm80xx_hwi.c:1869:40: sparse: left side has type restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:1869:40: sparse: right side has type int
drivers/scsi/pm8001/pm80xx_hwi.c:3037:63: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] address @@ got restricted __le64 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:3037:63: sparse: expected unsigned long long [usertype] address
drivers/scsi/pm8001/pm80xx_hwi.c:3037:63: sparse: got restricted __le64 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:3828:35: sparse: sparse: restricted __le32 degrades to integer
>> drivers/scsi/pm8001/pm80xx_hwi.c:3849:46: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3851:41: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3852:43: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3853:43: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3854:47: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3855:44: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3861:25: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3863:25: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3865:25: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:3867:25: sparse: sparse: cast to restricted __le32
drivers/scsi/pm8001/pm80xx_hwi.c:4359:46: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] address @@ got restricted __le64 [assigned] [usertype] tmp_addr @@
drivers/scsi/pm8001/pm80xx_hwi.c:4359:46: sparse: expected unsigned long long [usertype] address
drivers/scsi/pm8001/pm80xx_hwi.c:4359:46: sparse: got restricted __le64 [assigned] [usertype] tmp_addr
drivers/scsi/pm8001/pm80xx_hwi.c:4534:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] start_addr @@ got restricted __le64 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4534:36: sparse: expected unsigned long long [usertype] start_addr
drivers/scsi/pm8001/pm80xx_hwi.c:4534:36: sparse: got restricted __le64 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4535:57: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:4536:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_low @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4536:38: sparse: expected unsigned int [usertype] end_addr_low
drivers/scsi/pm8001/pm80xx_hwi.c:4536:38: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4537:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_high @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4537:39: sparse: expected unsigned int [usertype] end_addr_high
drivers/scsi/pm8001/pm80xx_hwi.c:4537:39: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4538:53: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:4564:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] key_cmode @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:4564:35: sparse: expected restricted __le32 [addressable] [assigned] [usertype] key_cmode
drivers/scsi/pm8001/pm80xx_hwi.c:4564:35: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:4593:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] start_addr @@ got restricted __le64 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4593:36: sparse: expected unsigned long long [usertype] start_addr
drivers/scsi/pm8001/pm80xx_hwi.c:4593:36: sparse: got restricted __le64 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4594:57: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:4595:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_low @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4595:38: sparse: expected unsigned int [usertype] end_addr_low
drivers/scsi/pm8001/pm80xx_hwi.c:4595:38: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4596:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_high @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4596:39: sparse: expected unsigned int [usertype] end_addr_high
drivers/scsi/pm8001/pm80xx_hwi.c:4596:39: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4597:53: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:4701:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_low @@ got unsigned int [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4701:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_low
drivers/scsi/pm8001/pm80xx_hwi.c:4701:47: sparse: got unsigned int [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4702:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_high @@ got unsigned int [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4702:48: sparse: expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_high
drivers/scsi/pm8001/pm80xx_hwi.c:4702:48: sparse: got unsigned int [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4706:47: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_low @@ got unsigned int [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4706:47: sparse: expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_low
drivers/scsi/pm8001/pm80xx_hwi.c:4706:47: sparse: got unsigned int [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4707:48: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_high @@ got unsigned int [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4707:48: sparse: expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_high
drivers/scsi/pm8001/pm80xx_hwi.c:4707:48: sparse: got unsigned int [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4711:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] start_addr @@ got restricted __le64 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4711:36: sparse: expected unsigned long long [usertype] start_addr
drivers/scsi/pm8001/pm80xx_hwi.c:4711:36: sparse: got restricted __le64 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4712:58: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:4713:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_low @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4713:38: sparse: expected unsigned int [usertype] end_addr_low
drivers/scsi/pm8001/pm80xx_hwi.c:4713:38: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4714:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_high @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4714:39: sparse: expected unsigned int [usertype] end_addr_high
drivers/scsi/pm8001/pm80xx_hwi.c:4714:39: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4715:54: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:4728:55: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_low @@ got unsigned int [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4728:55: sparse: expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_low
drivers/scsi/pm8001/pm80xx_hwi.c:4728:55: sparse: got unsigned int [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4730:56: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_high @@ got unsigned int [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4730:56: sparse: expected restricted __le32 [addressable] [assigned] [usertype] enc_addr_high
drivers/scsi/pm8001/pm80xx_hwi.c:4730:56: sparse: got unsigned int [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4742:41: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] key_index_mode @@ got int @@
drivers/scsi/pm8001/pm80xx_hwi.c:4742:41: sparse: expected restricted __le32 [addressable] [assigned] [usertype] key_index_mode
drivers/scsi/pm8001/pm80xx_hwi.c:4742:41: sparse: got int
drivers/scsi/pm8001/pm80xx_hwi.c:4777:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] start_addr @@ got restricted __le64 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4777:36: sparse: expected unsigned long long [usertype] start_addr
drivers/scsi/pm8001/pm80xx_hwi.c:4777:36: sparse: got restricted __le64 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4778:58: sparse: sparse: restricted __le32 degrades to integer
drivers/scsi/pm8001/pm80xx_hwi.c:4779:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_low @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4779:38: sparse: expected unsigned int [usertype] end_addr_low
drivers/scsi/pm8001/pm80xx_hwi.c:4779:38: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:4780:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] end_addr_high @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:4780:39: sparse: expected unsigned int [usertype] end_addr_high
drivers/scsi/pm8001/pm80xx_hwi.c:4780:39: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:5109:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] ppc_phyid @@ got unsigned int @@
drivers/scsi/pm8001/pm80xx_hwi.c:5109:27: sparse: expected restricted __le32 [addressable] [assigned] [usertype] ppc_phyid
drivers/scsi/pm8001/pm80xx_hwi.c:5109:27: sparse: got unsigned int
drivers/scsi/pm8001/pm80xx_hwi.c:5114:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:5114:37: sparse: expected unsigned int
drivers/scsi/pm8001/pm80xx_hwi.c:5114:37: sparse: got restricted __le32 [usertype]
drivers/scsi/pm8001/pm80xx_hwi.c:5094:6: sparse: sparse: symbol 'mpi_set_phy_profile_req' was not declared. Should it be static?
drivers/scsi/pm8001/pm80xx_hwi.c:5154:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le32 [addressable] [assigned] [usertype] ppc_phyid @@ got unsigned int @@
drivers/scsi/pm8001/pm80xx_hwi.c:5154:27: sparse: expected restricted __le32 [addressable] [assigned] [usertype] ppc_phyid
drivers/scsi/pm8001/pm80xx_hwi.c:5154:27: sparse: got unsigned int
drivers/scsi/pm8001/pm80xx_hwi.c:5158:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int @@ got restricted __le32 [usertype] @@
drivers/scsi/pm8001/pm80xx_hwi.c:5158:37: sparse: expected unsigned int
drivers/scsi/pm8001/pm80xx_hwi.c:5158:37: sparse: got restricted __le32 [usertype]
vim +3849 drivers/scsi/pm8001/pm80xx_hwi.c
3811
3812 /**
3813 * mpi_get_phy_profile_resp - SPCv specific
3814 * @pm8001_ha: our hba card information
3815 * @piomb: IO message buffer
3816 */
3817 static int mpi_get_phy_profile_resp(struct pm8001_hba_info *pm8001_ha,
3818 void *piomb)
3819 {
3820 u32 tag, page_code;
3821 struct phy_status *phy_status, *phy_stat;
3822 struct phy_errcnt *phy_err, *phy_err_cnt;
3823 struct pm8001_ccb_info *ccb;
3824 struct get_phy_profile_resp *pPayload =
3825 (struct get_phy_profile_resp *)(piomb + 4);
3826 u32 status = le32_to_cpu(pPayload->status);
3827
3828 page_code = (u8)((pPayload->ppc_phyid & 0xFF00) >> 8);
3829
3830 PM8001_MSG_DBG(pm8001_ha,
3831 pm8001_printk(" pm80xx_addition_functionality\n"));
3832 if (status) {
3833 /* status is FAILED */
3834 PM8001_FAIL_DBG(pm8001_ha, pm8001_printk(
3835 "mpiGetPhyProfileReq failed with status 0x%08x\n",
3836 status));
3837 }
3838
3839 tag = le32_to_cpu(pPayload->tag);
3840 ccb = &pm8001_ha->ccb_info[tag];
3841 if (ccb->completion != NULL) {
3842 if (status) {
3843 /* signal fail status */
3844 memset(&ccb->resp_buf, 0xff, sizeof(ccb->resp_buf));
3845 } else if (page_code == SAS_PHY_GENERAL_STATUS_PAGE) {
3846 phy_status = (struct phy_status *)ccb->resp_buf;
3847 phy_stat =
3848 (struct phy_status *)pPayload->ppc_specific_rsp;
> 3849 phy_status->phy_id = le32_to_cpu(phy_stat->phy_id);
3850 phy_status->phy_state =
3851 le32_to_cpu(phy_stat->phy_state);
3852 phy_status->plr = le32_to_cpu(phy_stat->plr);
3853 phy_status->nlr = le32_to_cpu(phy_stat->nlr);
3854 phy_status->port_id = le32_to_cpu(phy_stat->port_id);
3855 phy_status->prts = le32_to_cpu(phy_stat->prts);
3856 } else if (page_code == SAS_PHY_ERR_COUNTERS_PAGE) {
3857 phy_err = (struct phy_errcnt *)ccb->resp_buf;
3858 phy_err_cnt =
3859 (struct phy_errcnt *)pPayload->ppc_specific_rsp;
3860 phy_err->InvalidDword =
3861 le32_to_cpu(phy_err_cnt->InvalidDword);
3862 phy_err->runningDisparityError =
3863 le32_to_cpu(phy_err_cnt->runningDisparityError);
3864 phy_err->LossOfSyncDW =
3865 le32_to_cpu(phy_err_cnt->LossOfSyncDW);
3866 phy_err->phyResetProblem =
3867 le32_to_cpu(phy_err_cnt->phyResetProblem);
3868 }
3869 complete(ccb->completion);
3870 }
3871 pm8001_tag_free(pm8001_ha, tag);
3872 return 0;
3873 }
3874
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months