[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202212161842.XF6NyvAP-lkp@intel.com>
Date: Fri, 16 Dec 2022 18:38:58 +0800
From: kernel test robot <lkp@...el.com>
To: Thomas Zimmermann <tzimmermann@...e.de>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Jocelyn Falempe <jfalempe@...hat.com>
Subject: drivers/gpu/drm/ast/ast_mode.c:639:32: sparse: sparse: incorrect
type in initializer (different address spaces)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 84e57d292203a45c96dbcb2e6be9dd80961d981a
commit: f2fa5a99ca81ce1056539e83c705f3d6bec62e31 drm/ast: Convert ast to SHMEM
date: 9 weeks ago
config: i386-randconfig-s002
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f2fa5a99ca81ce1056539e83c705f3d6bec62e31
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout f2fa5a99ca81ce1056539e83c705f3d6bec62e31
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/ast/ drivers/gpu/drm/i915/ drivers/misc/habanalabs/common/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/ast/ast_mode.c:639:32: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void *vaddr @@ got void [noderef] __iomem *vaddr @@
drivers/gpu/drm/ast/ast_mode.c:639:32: sparse: expected void *vaddr
drivers/gpu/drm/ast/ast_mode.c:639:32: sparse: got void [noderef] __iomem *vaddr
drivers/gpu/drm/ast/ast_mode.c:752:19: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/ast/ast_mode.c:752:16: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [noderef] [usertype] __iomem *dstxor @@ got unsigned char [usertype] * @@
drivers/gpu/drm/ast/ast_mode.c:752:16: sparse: expected unsigned char [noderef] [usertype] __iomem *dstxor
drivers/gpu/drm/ast/ast_mode.c:752:16: sparse: got unsigned char [usertype] *
vim +639 drivers/gpu/drm/ast/ast_mode.c
634
635 static void ast_handle_damage(struct ast_plane *ast_plane, struct iosys_map *src,
636 struct drm_framebuffer *fb,
637 const struct drm_rect *clip)
638 {
> 639 struct iosys_map dst = IOSYS_MAP_INIT_VADDR(ast_plane->vaddr);
640
641 iosys_map_incr(&dst, drm_fb_clip_offset(fb->pitches[0], fb->format, clip));
642 drm_fb_memcpy(&dst, fb->pitches, src, fb, clip);
643 }
644
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (132278 bytes)
Powered by blists - more mailing lists