From: kernel test robot <lkp@intel.com>
To: Flora Cui <flora.cui@amd.com>
Cc: Yang Xiong <Yang.Xiong@amd.com>,
kbuild-all@lists.01.org, dri-devel@lists.freedesktop.org
Subject: [radeon-alex:amd-20.45 2016/2427] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: sparse: incorrect type in argument 1 (different modifiers)
Date: Tue, 15 Dec 2020 12:25:18 +0800 [thread overview]
Message-ID: <202012151214.abGd3LNw-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6183 bytes --]
tree: git://people.freedesktop.org/~agd5f/linux.git amd-20.45
head: a3950d94b046fb206e58fd3ec717f071c0203ba3
commit: e1357d7a01b8b3bf23e71415eb7ca101902ee6b4 [2016/2427] drm/amdkcl: fake drm_gem_fb_get_obj & kcl_drm_gem_fb_set_obj
config: arc-randconfig-s031-20201214 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git
git fetch --no-tags radeon-alex amd-20.45
git checkout e1357d7a01b8b3bf23e71415eb7ca101902ee6b4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:797:25: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:801:23: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:802:23: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:805:30: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:808:28: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1192:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1192:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1192:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1192:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1192:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1192:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1197:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1197:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1197:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1199:36: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1276:25: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1276:25: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1276:25: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1282:37: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1308:41: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1310:39: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1314:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1315:17: sparse: sparse: cast to restricted __le32
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1318:17: sparse: sparse: cast to restricted __le32
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct drm_framebuffer *fb @@ got struct drm_framebuffer const * @@
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: expected struct drm_framebuffer *fb
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: got struct drm_framebuffer const *
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct drm_framebuffer *fb @@ got struct drm_framebuffer const * @@
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: expected struct drm_framebuffer *fb
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: got struct drm_framebuffer const *
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct drm_framebuffer *fb @@ got struct drm_framebuffer const * @@
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: expected struct drm_framebuffer *fb
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3987:33: sparse: got struct drm_framebuffer const *
vim +3987 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
3983
3984 static int get_fb_info(const struct amdgpu_framebuffer *amdgpu_fb,
3985 uint64_t *tiling_flags, bool *tmz_surface)
3986 {
> 3987 struct amdgpu_bo *rbo = gem_to_amdgpu_bo(drm_gem_fb_get_obj(&amdgpu_fb->base, 0));
3988 int r = amdgpu_bo_reserve(rbo, false);
3989
3990 if (unlikely(r)) {
3991 /* Don't show error message when returning -ERESTARTSYS */
3992 if (r != -ERESTARTSYS)
3993 DRM_ERROR("Unable to reserve buffer: %d\n", r);
3994 return r;
3995 }
3996
3997 if (tiling_flags)
3998 amdgpu_bo_get_tiling_flags(rbo, tiling_flags);
3999
4000 if (tmz_surface)
4001 *tmz_surface = amdgpu_bo_encrypted(rbo);
4002
4003 amdgpu_bo_unreserve(rbo);
4004
4005 return r;
4006 }
4007
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24168 bytes --]
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
reply other threads:[~2020-12-15 4:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202012151214.abGd3LNw-lkp@intel.com \
--to=lkp@intel.com \
--cc=Yang.Xiong@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=flora.cui@amd.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox