[linux-next:master 2278/9292] drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:1995:6: sparse: symbol 'gfx_v9_0_enable_gfx_static_mg_power_gating' was not declared. Should it be static?

kbuild test robot fengguang.wu at intel.com
Thu Jun 22 20:28:47 UTC 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   09c17284731e42dbe4c6d334603e9c05ba1219ae
commit: 18924c719e1d2b194f93ef757584b814421f22a5 [2278/9292] drm/amdgpu/gfx9: allow updating gfx mgpg state
reproduce:
        # apt-get install sparse
        git checkout 18924c719e1d2b194f93ef757584b814421f22a5
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:400:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:402:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:404:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:406:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:408:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:410:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:420:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:422:57: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:427:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:429:53: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:439:36: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:440:41: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:452:17: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:454:17: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:466:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:466:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:466:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:473:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:473:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:473:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:480:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:480:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:480:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:487:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:487:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:487:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:495:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:495:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:495:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:495:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:495:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:495:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:501:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:501:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:501:25: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:510:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:510:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:510:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:510:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:510:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:510:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:515:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:515:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:515:33: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:581:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:581:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:581:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:582:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:582:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:582:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:584:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:584:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:584:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:585:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:585:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:585:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:586:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:586:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:586:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:591:49: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:591:49:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:591:49:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:593:49: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:593:49:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:593:49:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:596:57: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:596:57:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:596:57:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:603:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:603:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:603:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:604:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:604:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:604:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:606:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:606:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:606:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:607:25: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:607:25:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:607:25:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:626:34: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:627:40: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:628:38: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:634:34: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:635:40: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:636:38: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:642:34: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:643:40: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:644:38: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:650:34: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:651:40: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:652:38: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:658:34: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:659:40: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:660:38: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:664:48: sparse: incorrect type in assignment (different base types)
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:664:48:    expected unsigned int volatile [unsigned] [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:664:48:    got restricted __le32 [usertype] <noident>
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:830:18: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:831:19: sparse: cast to restricted __le32
>> drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:1995:6: sparse: symbol 'gfx_v9_0_enable_gfx_static_mg_power_gating' was not declared. Should it be static?
>> drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2009:6: sparse: symbol 'gfx_v9_0_enable_gfx_dynamic_mg_power_gating' was not declared. Should it be static?
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2056:6: sparse: symbol 'gfx_v9_0_rlc_stop' was not declared. Should it be static?
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2120:28: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2121:19: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2206:18: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2207:19: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2216:18: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2217:19: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2226:18: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2227:19: sparse: cast to restricted __le32
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2402:18: sparse: cast to restricted __le32
>> drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:4227:27: sparse: too many warnings

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the amd-gfx mailing list