Re: [PATCH v2 21/21] drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
by kernel test robot
Hi Thomas,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20200915]
[cannot apply to drm-intel/for-linux-next arm/drm-armada-devel linus/master arm/drm-armada-fixes anholt/for-next v5.9-rc5 v5.9-rc4 v5.9-rc3 v5.9-rc5]
[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/Thomas-Zimmermann/Convert-all-re...
base: 6b02addb1d1748d21dd1261e46029b264be4e5a0
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 error/warnings (new ones prefixed by >>):
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:31:3: error: 'struct drm_driver' has no member named 'gem_free_object_unlocked'
31 | .gem_free_object_unlocked = drm_gem_cma_free_object,
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:31:30: error: initialization of 'const struct drm_ioctl_desc *' from incompatible pointer type 'void (*)(struct drm_gem_object *)' [-Werror=incompatible-pointer-types]
31 | .gem_free_object_unlocked = drm_gem_cma_free_object,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:31:30: note: (near initialization for 'dcss_kms_driver.ioctls')
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:32:3: error: 'struct drm_driver' has no member named 'gem_vm_ops'
32 | .gem_vm_ops = &drm_gem_cma_vm_ops,
| ^~~~~~~~~~
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:32:17: warning: initialization of 'int' from 'const struct vm_operations_struct *' makes integer from pointer without a cast [-Wint-conversion]
32 | .gem_vm_ops = &drm_gem_cma_vm_ops,
| ^
drivers/gpu/drm/imx/dcss/dcss-kms.c:32:17: note: (near initialization for 'dcss_kms_driver.num_ioctls')
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:32:17: error: initializer element is not computable at load time
drivers/gpu/drm/imx/dcss/dcss-kms.c:32:17: note: (near initialization for 'dcss_kms_driver.num_ioctls')
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:38:3: error: 'struct drm_driver' has no member named 'gem_prime_export'; did you mean 'gem_prime_import'?
38 | .gem_prime_export = drm_gem_prime_export,
| ^~~~~~~~~~~~~~~~
| gem_prime_import
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:38:22: error: initialization of 'struct drm_gem_object * (*)(struct drm_device *, struct dma_buf_attachment *, struct sg_table *)' from incompatible pointer type 'struct dma_buf * (*)(struct drm_gem_object *, int)' [-Werror=incompatible-pointer-types]
38 | .gem_prime_export = drm_gem_prime_export,
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:38:22: note: (near initialization for 'dcss_kms_driver.gem_prime_import_sg_table')
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:39:3: error: 'struct drm_driver' has no member named 'gem_prime_get_sg_table'; did you mean 'gem_prime_import_sg_table'?
39 | .gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
| ^~~~~~~~~~~~~~~~~~~~~~
| gem_prime_import_sg_table
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:39:28: error: initialization of 'int (*)(struct drm_gem_object *, struct vm_area_struct *)' from incompatible pointer type 'struct sg_table * (*)(struct drm_gem_object *)' [-Werror=incompatible-pointer-types]
39 | .gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:39:28: note: (near initialization for 'dcss_kms_driver.gem_prime_mmap')
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:40:31: warning: initialized field overwritten [-Woverride-init]
40 | .gem_prime_import_sg_table = drm_gem_cma_prime_import_sg_table,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:40:31: note: (near initialization for 'dcss_kms_driver.gem_prime_import_sg_table')
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:41:3: error: 'struct drm_driver' has no member named 'gem_prime_vmap'; did you mean 'gem_prime_mmap'?
41 | .gem_prime_vmap = drm_gem_cma_prime_vmap,
| ^~~~~~~~~~~~~~
| gem_prime_mmap
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:41:21: error: initialization of 'int (*)(struct drm_gem_object *, struct vm_area_struct *)' from incompatible pointer type 'void * (*)(struct drm_gem_object *)' [-Werror=incompatible-pointer-types]
41 | .gem_prime_vmap = drm_gem_cma_prime_vmap,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:41:21: note: (near initialization for 'dcss_kms_driver.gem_prime_mmap')
drivers/gpu/drm/imx/dcss/dcss-kms.c:41:21: warning: initialized field overwritten [-Woverride-init]
drivers/gpu/drm/imx/dcss/dcss-kms.c:41:21: note: (near initialization for 'dcss_kms_driver.gem_prime_mmap')
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:42:3: error: 'struct drm_driver' has no member named 'gem_prime_vunmap'; did you mean 'gem_prime_mmap'?
42 | .gem_prime_vunmap = drm_gem_cma_prime_vunmap,
| ^~~~~~~~~~~~~~~~
| gem_prime_mmap
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:42:22: error: initialization of 'int (*)(struct drm_file *, struct drm_device *, struct drm_mode_create_dumb *)' from incompatible pointer type 'void (*)(struct drm_gem_object *, void *)' [-Werror=incompatible-pointer-types]
42 | .gem_prime_vunmap = drm_gem_cma_prime_vunmap,
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:42:22: note: (near initialization for 'dcss_kms_driver.dumb_create')
drivers/gpu/drm/imx/dcss/dcss-kms.c:42:22: warning: initialized field overwritten [-Woverride-init]
drivers/gpu/drm/imx/dcss/dcss-kms.c:42:22: note: (near initialization for 'dcss_kms_driver.dumb_create')
drivers/gpu/drm/imx/dcss/dcss-kms.c:43:21: warning: initialized field overwritten [-Woverride-init]
43 | .gem_prime_mmap = drm_gem_cma_prime_mmap,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:43:21: note: (near initialization for 'dcss_kms_driver.gem_prime_mmap')
cc1: some warnings being treated as errors
# https://github.com/0day-ci/linux/commit/84300c9d089d60d5dc528a7bd6e287009...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Thomas-Zimmermann/Convert-all-remaining-drivers-to-GEM-object-functions/20200915-230157
git checkout 84300c9d089d60d5dc528a7bd6e2870090201f0e
vim +31 drivers/gpu/drm/imx/dcss/dcss-kms.c
9021c317b77024f Laurentiu Palcu 2020-07-31 28
9021c317b77024f Laurentiu Palcu 2020-07-31 29 static struct drm_driver dcss_kms_driver = {
9021c317b77024f Laurentiu Palcu 2020-07-31 30 .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_ATOMIC,
9021c317b77024f Laurentiu Palcu 2020-07-31 @31 .gem_free_object_unlocked = drm_gem_cma_free_object,
9021c317b77024f Laurentiu Palcu 2020-07-31 @32 .gem_vm_ops = &drm_gem_cma_vm_ops,
9021c317b77024f Laurentiu Palcu 2020-07-31 33 .dumb_create = drm_gem_cma_dumb_create,
9021c317b77024f Laurentiu Palcu 2020-07-31 34
9021c317b77024f Laurentiu Palcu 2020-07-31 35 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
9021c317b77024f Laurentiu Palcu 2020-07-31 36 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
9021c317b77024f Laurentiu Palcu 2020-07-31 37 .gem_prime_import = drm_gem_prime_import,
9021c317b77024f Laurentiu Palcu 2020-07-31 @38 .gem_prime_export = drm_gem_prime_export,
9021c317b77024f Laurentiu Palcu 2020-07-31 @39 .gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
9021c317b77024f Laurentiu Palcu 2020-07-31 @40 .gem_prime_import_sg_table = drm_gem_cma_prime_import_sg_table,
9021c317b77024f Laurentiu Palcu 2020-07-31 @41 .gem_prime_vmap = drm_gem_cma_prime_vmap,
9021c317b77024f Laurentiu Palcu 2020-07-31 @42 .gem_prime_vunmap = drm_gem_cma_prime_vunmap,
9021c317b77024f Laurentiu Palcu 2020-07-31 43 .gem_prime_mmap = drm_gem_cma_prime_mmap,
9021c317b77024f Laurentiu Palcu 2020-07-31 44 .fops = &dcss_cma_fops,
9021c317b77024f Laurentiu Palcu 2020-07-31 45 .name = "imx-dcss",
9021c317b77024f Laurentiu Palcu 2020-07-31 46 .desc = "i.MX8MQ Display Subsystem",
9021c317b77024f Laurentiu Palcu 2020-07-31 47 .date = "20190917",
9021c317b77024f Laurentiu Palcu 2020-07-31 48 .major = 1,
9021c317b77024f Laurentiu Palcu 2020-07-31 49 .minor = 0,
9021c317b77024f Laurentiu Palcu 2020-07-31 50 .patchlevel = 0,
9021c317b77024f Laurentiu Palcu 2020-07-31 51 };
9021c317b77024f Laurentiu Palcu 2020-07-31 52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[arm-platforms:kvm/protected-memory 15/16] arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2184:7: error: assignment to 'void from 'int' makes pointer from integer without a cast
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm/protected-memory
head: d9455e6eabef4b9be5f33c418a8046e0389edade
commit: 7e178d6590c1e43e5df2d65490a273d030798d3b [15/16] KVM: Handle protected memory in __kvm_map_gfn()/__kvm_unmap_gfn()
config: powerpc-powernv_defconfig (attached as .config)
compiler: powerpc64le-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 7e178d6590c1e43e5df2d65490a273d030798d3b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'hva_to_pfn_slow':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1864:26: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
1864 | down_read(¤t->mm->mmap_sem);
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1867:25: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
1867 | up_read(¤t->mm->mmap_sem);
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:1872:24: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
1872 | up_read(¤t->mm->mmap_sem);
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function '__kvm_map_gfn':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2184:9: error: implicit declaration of function 'ioremap_cache_force'; did you mean 'ioremap_cache'? [-Werror=implicit-function-declaration]
2184 | hva = ioremap_cache_force(pfn_to_hpa(pfn), PAGE_SIZE);
| ^~~~~~~~~~~~~~~~~~~
| ioremap_cache
>> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2184:7: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
2184 | hva = ioremap_cache_force(pfn_to_hpa(pfn), PAGE_SIZE);
| ^
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'map_page_atomic':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2360:2: error: implicit declaration of function 'set_pte'; did you mean 'set_tb'? [-Werror=implicit-function-declaration]
2360 | set_pte(pte, mk_pte(page, PAGE_KERNEL));
| ^~~~~~~
| set_tb
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'unmap_page_atomic':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2368:2: error: implicit declaration of function '__flush_tlb_one_kernel'; did you mean '__flush_tlb_pending'? [-Werror=implicit-function-declaration]
2368 | __flush_tlb_one_kernel((unsigned long)vaddr);
| ^~~~~~~~~~~~~~~~~~~~~~
| __flush_tlb_pending
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function 'protect_memory':
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2801:31: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2801 | if (down_write_killable(&mm->mmap_sem))
| ^~~~~~~~
| mmap_base
arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:2855:16: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
2855 | up_write(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base
cc1: all warnings being treated as errors
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/com...
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm/protected-memory
git checkout 7e178d6590c1e43e5df2d65490a273d030798d3b
vim +2184 arch/powerpc/kvm/../../../virt/kvm/kvm_main.c
2149
2150 static int __kvm_map_gfn(struct kvm_memslots *slots, gfn_t gfn,
2151 struct kvm_host_map *map,
2152 struct gfn_to_pfn_cache *cache,
2153 bool atomic)
2154 {
2155 kvm_pfn_t pfn;
2156 void *hva = NULL;
2157 struct page *page = KVM_UNMAPPED_PAGE;
2158 struct kvm_memory_slot *slot = __gfn_to_memslot(slots, gfn);
2159 bool protected = false;
2160 u64 gen = slots->generation;
2161
2162 if (!map)
2163 return -EINVAL;
2164
2165 if (cache) {
2166 if (!cache->pfn || cache->gfn != gfn ||
2167 cache->generation != gen) {
2168 if (atomic)
2169 return -EAGAIN;
2170 kvm_cache_gfn_to_pfn(slot, gfn, cache, gen);
2171 }
2172 pfn = cache->pfn;
2173 } else {
2174 if (atomic)
2175 return -EAGAIN;
2176 pfn = gfn_to_pfn_memslot_protected(slot, gfn, &protected);
2177 }
2178 if (is_error_noslot_pfn(pfn))
2179 return -EINVAL;
2180
2181 if (protected) {
2182 if (atomic)
2183 return -EAGAIN;
> 2184 hva = ioremap_cache_force(pfn_to_hpa(pfn), PAGE_SIZE);
2185 } else if (pfn_valid(pfn)) {
2186 page = pfn_to_page(pfn);
2187 if (atomic)
2188 hva = kmap_atomic(page);
2189 else
2190 hva = kmap(page);
2191 #ifdef CONFIG_HAS_IOMEM
2192 } else if (!atomic) {
2193 hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB);
2194 } else {
2195 return -EINVAL;
2196 #endif
2197 }
2198
2199 if (!hva)
2200 return -EFAULT;
2201
2202 map->page = page;
2203 map->hva = hva;
2204 map->pfn = pfn;
2205 map->gfn = gfn;
2206 map->protected = protected;
2207
2208 return 0;
2209 }
2210
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH v2 17/19] btrfs: implement subpage metadata read and its endio function
by kernel test robot
Hi Qu,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.9-rc5]
[also build test ERROR on next-20200915]
[cannot apply to kdave/for-next btrfs/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/Qu-Wenruo/btrfs-add-read-only-su...
base: 856deb866d16e29bd65952e0289066f6078af773
config: nds32-randconfig-r003-20200916 (attached as .config)
compiler: nds32le-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=nds32
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 >>):
nds32le-linux-ld: fs/btrfs/disk-io.o: in function `btree_readpage_end_io_hook':
>> disk-io.c:(.text+0x2412): undefined reference to `__udivdi3'
>> nds32le-linux-ld: disk-io.c:(.text+0x2416): undefined reference to `__udivdi3'
nds32le-linux-ld: nds32le-linux-ld: DWARF error: found dwarf version '36812', this reader only handles version 2, 3, 4 and 5 information
fs/btrfs/extent_io.o: in function `release_extent_buffer':
extent_io.c:(.text+0x6b08): undefined reference to `__udivdi3'
nds32le-linux-ld: extent_io.c:(.text+0x6b0c): undefined reference to `__udivdi3'
nds32le-linux-ld: fs/btrfs/extent_io.o: in function `find_extent_buffer':
extent_io.c:(.text+0x6d1a): undefined reference to `__udivdi3'
nds32le-linux-ld: fs/btrfs/extent_io.o:extent_io.c:(.text+0x6d1e): more undefined references to `__udivdi3' follow
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[stffrdhrn:or1k-5.10-litex-net 6/7] ERROR: modpost: "litex_set_reg" undefined!
by kernel test robot
tree: https://github.com/stffrdhrn/linux.git or1k-5.10-litex-net
head: c21cc618f8c443cdde3cc6eb21e4bc52f0700c60
commit: 0223cdd5b77a4f05b2824c1bf6493c04ee0ad76e [6/7] Litex: LiteETH: Fixups for compat with BE, also properly detect unset MAC
config: microblaze-randconfig-r011-20200916 (attached as .config)
compiler: microblaze-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 0223cdd5b77a4f05b2824c1bf6493c04ee0ad76e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: "litex_set_reg" [drivers/net/ethernet/litex/litex_liteeth.ko] undefined!
>> ERROR: modpost: "litex_get_reg" [drivers/net/ethernet/litex/litex_liteeth.ko] undefined!
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH v2 21/21] drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver
by kernel test robot
Hi Thomas,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20200915]
[cannot apply to drm-intel/for-linux-next arm/drm-armada-devel linus/master arm/drm-armada-fixes anholt/for-next v5.9-rc5 v5.9-rc4 v5.9-rc3 v5.9-rc5]
[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/Thomas-Zimmermann/Convert-all-re...
base: 6b02addb1d1748d21dd1261e46029b264be4e5a0
config: arm64-randconfig-r015-20200916 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e3842d60351f986d77dfe0a94f76e4fd895f188)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:31:3: error: field designator 'gem_free_object_unlocked' does not refer to any field in type 'struct drm_driver'
.gem_free_object_unlocked = drm_gem_cma_free_object,
^
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:32:3: error: field designator 'gem_vm_ops' does not refer to any field in type 'struct drm_driver'
.gem_vm_ops = &drm_gem_cma_vm_ops,
^
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:38:3: error: field designator 'gem_prime_export' does not refer to any field in type 'struct drm_driver'; did you mean 'gem_prime_import'?
.gem_prime_export = drm_gem_prime_export,
^~~~~~~~~~~~~~~~
gem_prime_import
include/drm/drm_drv.h:370:28: note: 'gem_prime_import' declared here
struct drm_gem_object * (*gem_prime_import)(struct drm_device *dev,
^
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:38:22: error: incompatible function pointer types initializing 'struct drm_gem_object *(*)(struct drm_device *, struct dma_buf *)' with an expression of type 'struct dma_buf *(struct drm_gem_object *, int)' [-Werror,-Wincompatible-function-pointer-types]
.gem_prime_export = drm_gem_prime_export,
^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:38:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.gem_prime_export = drm_gem_prime_export,
^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:37:22: note: previous initialization is here
.gem_prime_import = drm_gem_prime_import,
^~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:39:3: error: field designator 'gem_prime_get_sg_table' does not refer to any field in type 'struct drm_driver'; did you mean 'gem_prime_import_sg_table'?
.gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
^~~~~~~~~~~~~~~~~~~~~~
gem_prime_import_sg_table
include/drm/drm_drv.h:378:27: note: 'gem_prime_import_sg_table' declared here
struct drm_gem_object *(*gem_prime_import_sg_table)(
^
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:39:28: error: incompatible function pointer types initializing 'struct drm_gem_object *(*)(struct drm_device *, struct dma_buf_attachment *, struct sg_table *)' with an expression of type 'struct sg_table *(struct drm_gem_object *)' [-Werror,-Wincompatible-function-pointer-types]
.gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:40:31: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.gem_prime_import_sg_table = drm_gem_cma_prime_import_sg_table,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:39:28: note: previous initialization is here
.gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:41:3: error: field designator 'gem_prime_vmap' does not refer to any field in type 'struct drm_driver'; did you mean 'gem_prime_mmap'?
.gem_prime_vmap = drm_gem_cma_prime_vmap,
^~~~~~~~~~~~~~
gem_prime_mmap
include/drm/drm_drv.h:391:8: note: 'gem_prime_mmap' declared here
int (*gem_prime_mmap)(struct drm_gem_object *obj,
^
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:41:21: error: incompatible function pointer types initializing 'int (*)(struct drm_gem_object *, struct vm_area_struct *)' with an expression of type 'void *(struct drm_gem_object *)' [-Werror,-Wincompatible-function-pointer-types]
.gem_prime_vmap = drm_gem_cma_prime_vmap,
^~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/imx/dcss/dcss-kms.c:42:3: error: field designator 'gem_prime_vunmap' does not refer to any field in type 'struct drm_driver'; did you mean 'gem_prime_mmap'?
.gem_prime_vunmap = drm_gem_cma_prime_vunmap,
^~~~~~~~~~~~~~~~
gem_prime_mmap
include/drm/drm_drv.h:391:8: note: 'gem_prime_mmap' declared here
int (*gem_prime_mmap)(struct drm_gem_object *obj,
^
drivers/gpu/drm/imx/dcss/dcss-kms.c:42:22: error: incompatible function pointer types initializing 'int (*)(struct drm_gem_object *, struct vm_area_struct *)' with an expression of type 'void (struct drm_gem_object *, void *)' [-Werror,-Wincompatible-function-pointer-types]
.gem_prime_vunmap = drm_gem_cma_prime_vunmap,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:42:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.gem_prime_vunmap = drm_gem_cma_prime_vunmap,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:41:21: note: previous initialization is here
.gem_prime_vmap = drm_gem_cma_prime_vmap,
^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:43:21: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.gem_prime_mmap = drm_gem_cma_prime_mmap,
^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/imx/dcss/dcss-kms.c:42:22: note: previous initialization is here
.gem_prime_vunmap = drm_gem_cma_prime_vunmap,
^~~~~~~~~~~~~~~~~~~~~~~~
4 warnings and 10 errors generated.
# https://github.com/0day-ci/linux/commit/84300c9d089d60d5dc528a7bd6e287009...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Thomas-Zimmermann/Convert-all-remaining-drivers-to-GEM-object-functions/20200915-230157
git checkout 84300c9d089d60d5dc528a7bd6e2870090201f0e
vim +31 drivers/gpu/drm/imx/dcss/dcss-kms.c
9021c317b77024f Laurentiu Palcu 2020-07-31 28
9021c317b77024f Laurentiu Palcu 2020-07-31 29 static struct drm_driver dcss_kms_driver = {
9021c317b77024f Laurentiu Palcu 2020-07-31 30 .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_ATOMIC,
9021c317b77024f Laurentiu Palcu 2020-07-31 @31 .gem_free_object_unlocked = drm_gem_cma_free_object,
9021c317b77024f Laurentiu Palcu 2020-07-31 @32 .gem_vm_ops = &drm_gem_cma_vm_ops,
9021c317b77024f Laurentiu Palcu 2020-07-31 33 .dumb_create = drm_gem_cma_dumb_create,
9021c317b77024f Laurentiu Palcu 2020-07-31 34
9021c317b77024f Laurentiu Palcu 2020-07-31 35 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
9021c317b77024f Laurentiu Palcu 2020-07-31 36 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
9021c317b77024f Laurentiu Palcu 2020-07-31 37 .gem_prime_import = drm_gem_prime_import,
9021c317b77024f Laurentiu Palcu 2020-07-31 @38 .gem_prime_export = drm_gem_prime_export,
9021c317b77024f Laurentiu Palcu 2020-07-31 @39 .gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
9021c317b77024f Laurentiu Palcu 2020-07-31 40 .gem_prime_import_sg_table = drm_gem_cma_prime_import_sg_table,
9021c317b77024f Laurentiu Palcu 2020-07-31 @41 .gem_prime_vmap = drm_gem_cma_prime_vmap,
9021c317b77024f Laurentiu Palcu 2020-07-31 @42 .gem_prime_vunmap = drm_gem_cma_prime_vunmap,
9021c317b77024f Laurentiu Palcu 2020-07-31 43 .gem_prime_mmap = drm_gem_cma_prime_mmap,
9021c317b77024f Laurentiu Palcu 2020-07-31 44 .fops = &dcss_cma_fops,
9021c317b77024f Laurentiu Palcu 2020-07-31 45 .name = "imx-dcss",
9021c317b77024f Laurentiu Palcu 2020-07-31 46 .desc = "i.MX8MQ Display Subsystem",
9021c317b77024f Laurentiu Palcu 2020-07-31 47 .date = "20190917",
9021c317b77024f Laurentiu Palcu 2020-07-31 48 .major = 1,
9021c317b77024f Laurentiu Palcu 2020-07-31 49 .minor = 0,
9021c317b77024f Laurentiu Palcu 2020-07-31 50 .patchlevel = 0,
9021c317b77024f Laurentiu Palcu 2020-07-31 51 };
9021c317b77024f Laurentiu Palcu 2020-07-31 52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
Re: [PATCH 3/9] lib: zstd: Upgrade to latest upstream zstd version 1.4.6
by kernel test robot
Hi Nick,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on kdave/for-next]
[also build test WARNING on f2fs/dev-test linus/master v5.9-rc5 next-20200915]
[cannot apply to cryptodev/master crypto/master squashfs/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Nick-Terrell/Update-to-zstd-1-4-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: h8300-randconfig-r024-20200916 (attached as .config)
compiler: h8300-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=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from lib/zstd/compress/zstd_compress_internal.h:21,
from lib/zstd/compress/zstd_compress.c:22:
lib/zstd/compress/../common/zstd_internal.h:193:18: warning: 'ML_bits' defined but not used [-Wunused-const-variable=]
193 | static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0,
| ^~~~~~~
lib/zstd/compress/../common/zstd_internal.h:180:18: warning: 'LL_bits' defined but not used [-Wunused-const-variable=]
180 | static const U32 LL_bits[MaxLL+1] = { 0, 0, 0, 0, 0, 0, 0, 0,
| ^~~~~~~
In file included from lib/zstd/compress/zstd_compress_internal.h:21,
from lib/zstd/compress/zstd_compress.c:22:
lib/zstd/compress/../common/zstd_internal.h:148:21: warning: 'ZSTD_did_fieldSize' defined but not used [-Wunused-const-variable=]
148 | static const size_t ZSTD_did_fieldSize[4] = { 0, 1, 2, 4 };
| ^~~~~~~~~~~~~~~~~~
lib/zstd/compress/../common/zstd_internal.h:147:21: warning: 'ZSTD_fcs_fieldSize' defined but not used [-Wunused-const-variable=]
147 | static const size_t ZSTD_fcs_fieldSize[4] = { 0, 2, 4, 8 };
| ^~~~~~~~~~~~~~~~~~
lib/zstd/compress/zstd_compress.c: In function 'ZSTD_compress':
>> lib/zstd/compress/zstd_compress.c:3252:1: warning: the frame size of 1084 bytes is larger than 1024 bytes [-Wframe-larger-than=]
3252 | }
| ^
--
In file included from lib/zstd/compress/zstd_compress_superblock.c:16:
lib/zstd/compress/../common/zstd_internal.h:148:21: warning: 'ZSTD_did_fieldSize' defined but not used [-Wunused-const-variable=]
148 | static const size_t ZSTD_did_fieldSize[4] = { 0, 1, 2, 4 };
| ^~~~~~~~~~~~~~~~~~
lib/zstd/compress/../common/zstd_internal.h:147:21: warning: 'ZSTD_fcs_fieldSize' defined but not used [-Wunused-const-variable=]
147 | static const size_t ZSTD_fcs_fieldSize[4] = { 0, 2, 4, 8 };
| ^~~~~~~~~~~~~~~~~~
lib/zstd/compress/../common/zstd_internal.h:133:18: warning: 'repStartValue' defined but not used [-Wunused-const-variable=]
133 | static const U32 repStartValue[ZSTD_REP_NUM] = { 1, 4, 8 };
| ^~~~~~~~~~~~~
In file included from lib/zstd/compress/zstd_compress_superblock.h:18,
from lib/zstd/compress/zstd_compress_superblock.c:14:
include/linux/zstd.h:1377:29: warning: 'ZSTD_defaultCMem' defined but not used [-Wunused-const-variable=]
1377 | static ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; /**< this constant defers to stdlib's functions */
| ^~~~~~~~~~~~~~~~
lib/zstd/compress/zstd_compress_superblock.c: In function 'ZSTD_compressSuperBlock':
>> lib/zstd/compress/zstd_compress_superblock.c:849:1: warning: the frame size of 1068 bytes is larger than 1024 bytes [-Wframe-larger-than=]
849 | }
| ^
# https://github.com/0day-ci/linux/commit/55f5799ba0242ead6cde3f9cd4d04b2a1...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Nick-Terrell/Update-to-zstd-1-4-6/20200916-114901
git checkout 55f5799ba0242ead6cde3f9cd4d04b2a19384d37
vim +3252 lib/zstd/compress/zstd_compress.c
3241
3242 size_t ZSTD_compress(void* dst, size_t dstCapacity,
3243 const void* src, size_t srcSize,
3244 int compressionLevel)
3245 {
3246 size_t result;
3247 ZSTD_CCtx ctxBody;
3248 ZSTD_initCCtx(&ctxBody, ZSTD_defaultCMem);
3249 result = ZSTD_compressCCtx(&ctxBody, dst, dstCapacity, src, srcSize, compressionLevel);
3250 ZSTD_freeCCtxContent(&ctxBody); /* can't free ctxBody itself, as it's on stack; free only heap content */
3251 return result;
> 3252 }
3253
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[linux-next:master 5574/7920] drivers/video/fbdev/aty/atyfb_base.c:2002:7: error: implicit declaration of function 'aty_ld_lcd'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6b02addb1d1748d21dd1261e46029b264be4e5a0
commit: 348b2956d5e6d9876b567226184de598d00c9bd1 [5574/7920] fbdev: aty: use generic power management
config: powerpc-randconfig-r011-20200916 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e3842d60351f986d77dfe0a94f76e4fd895f188)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout 348b2956d5e6d9876b567226184de598d00c9bd1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/video/fbdev/aty/atyfb_base.c:2002:7: error: implicit declaration of function 'aty_ld_lcd' [-Werror,-Wimplicit-function-declaration]
pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^
>> drivers/video/fbdev/aty/atyfb_base.c:2004:2: error: implicit declaration of function 'aty_st_lcd' [-Werror,-Wimplicit-function-declaration]
aty_st_lcd(POWER_MANAGEMENT, pm, par);
^
drivers/video/fbdev/aty/atyfb_base.c:2004:2: note: did you mean 'aty_ld_lcd'?
drivers/video/fbdev/aty/atyfb_base.c:2002:7: note: 'aty_ld_lcd' declared here
pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^
2 errors generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 348b2956d5e6d9876b567226184de598d00c9bd1
vim +/aty_ld_lcd +2002 drivers/video/fbdev/aty/atyfb_base.c
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1993
efc08a75d3a2d4 drivers/video/aty/atyfb_base.c Ville Syrjala 2006-12-08 1994 #ifdef CONFIG_PPC_PMAC
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1995 /* Power management routines. Those are used for PowerBook sleep.
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1996 */
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1997 static int aty_power_mgmt(int sleep, struct atyfb_par *par)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1998 {
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 1999 u32 pm;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2000 int timeout;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2001
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 @2002 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2003 pm = (pm & ~PWR_MGT_MODE_MASK) | PWR_MGT_MODE_REG;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 @2004 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2005 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2006
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2007 timeout = 2000;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2008 if (sleep) {
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2009 /* Sleep */
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2010 pm &= ~PWR_MGT_ON;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2011 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2012 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2013 udelay(10);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2014 pm &= ~(PWR_BLON | AUTO_PWR_UP);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2015 pm |= SUSPEND_NOW;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2016 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2017 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2018 udelay(10);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2019 pm |= PWR_MGT_ON;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2020 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2021 do {
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2022 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2023 mdelay(1);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2024 if ((--timeout) == 0)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2025 break;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2026 } while ((pm & PWR_MGT_STATUS_MASK) != PWR_MGT_STATUS_SUSPEND);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2027 } else {
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2028 /* Wakeup */
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2029 pm &= ~PWR_MGT_ON;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2030 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2031 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2032 udelay(10);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2033 pm &= ~SUSPEND_NOW;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2034 pm |= (PWR_BLON | AUTO_PWR_UP);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2035 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2036 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2037 udelay(10);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2038 pm |= PWR_MGT_ON;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2039 aty_st_lcd(POWER_MANAGEMENT, pm, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2040 do {
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2041 pm = aty_ld_lcd(POWER_MANAGEMENT, par);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2042 mdelay(1);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2043 if ((--timeout) == 0)
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2044 break;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2045 } while ((pm & PWR_MGT_STATUS_MASK) != 0);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2046 }
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2047 mdelay(500);
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2048
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2049 return timeout ? 0 : -EIO;
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2050 }
b7468168631e03 drivers/video/aty/atyfb_base.c Benjamin Herrenschmidt 2009-02-05 2051 #endif /* CONFIG_PPC_PMAC */
^1da177e4c3f41 drivers/video/aty/atyfb_base.c Linus Torvalds 2005-04-16 2052
:::::: The code at line 2002 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years
[intel-linux-intel-lts:5.4/yocto 1363/10971] drivers/usb/typec/ucsi/ucsi_acpi.c:54:9: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: d3e34fac5e7582733593530aea91df73bfbcdef2
commit: 29e00c15f4cc490b222c2d03b2ee800ecf2d925f [1363/10971] usb: typec: ucsi: acpi: Move to the new API
config: x86_64-randconfig-s021-20200916 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-201-g24bdaac6-dirty
git checkout 29e00c15f4cc490b222c2d03b2ee800ecf2d925f
# 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/usb/typec/ucsi/ucsi_acpi.c:54:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void [noderef] <asn:2> * @@
>> drivers/usb/typec/ucsi/ucsi_acpi.c:54:9: sparse: expected void const *from
drivers/usb/typec/ucsi/ucsi_acpi.c:54:9: sparse: got void [noderef] <asn:2> *
>> drivers/usb/typec/ucsi/ucsi_acpi.c:64:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *to @@ got void [noderef] <asn:2> * @@
>> drivers/usb/typec/ucsi/ucsi_acpi.c:64:9: sparse: expected void *to
drivers/usb/typec/ucsi/ucsi_acpi.c:64:9: sparse: got void [noderef] <asn:2> *
# https://github.com/intel/linux-intel-lts/commit/29e00c15f4cc490b222c2d03b...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 29e00c15f4cc490b222c2d03b2ee800ecf2d925f
vim +54 drivers/usb/typec/ucsi/ucsi_acpi.c
43
44 static int ucsi_acpi_read(struct ucsi *ucsi, unsigned int offset,
45 void *val, size_t val_len)
46 {
47 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi);
48 int ret;
49
50 ret = ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_READ);
51 if (ret)
52 return ret;
53
> 54 memcpy(val, ua->base + offset, val_len);
55
56 return 0;
57 }
58
59 static int ucsi_acpi_async_write(struct ucsi *ucsi, unsigned int offset,
60 const void *val, size_t val_len)
61 {
62 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi);
63
> 64 memcpy(ua->base + offset, val, val_len);
65
66 return ucsi_acpi_dsm(ua, UCSI_DSM_FUNC_WRITE);
67 }
68
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years