[drm-intel:drm-intel-nightly 357/550] drivers/gpu/drm/radeon/cik_sdma.c:293:6: sparse: symbol 'cik_sdma_ctx_switch_enable' was not declared. Should it be static?

From: kbuild test robot
Date: Wed Jan 21 2015 - 07:33:22 EST


tree: git://anongit.freedesktop.org/drm-intel drm-intel-nightly
head: 0e3c37cedf582819b6dbdd0bf0b14a15d3c2e47d
commit: d7a60d8ea5cd4560e0496d2683643d2e4930e609 [357/550] drm/radeon: Enable sdma preemption
reproduce:
# apt-get install sparse
git checkout d7a60d8ea5cd4560e0496d2683643d2e4930e609
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/radeon/cik_sdma.c:293:6: sparse: symbol 'cik_sdma_ctx_switch_enable' was not declared. Should it be static?
drivers/gpu/drm/radeon/cik_sdma.c:471:48: sparse: cast to restricted __le32
drivers/gpu/drm/radeon/cik_sdma.c:472:27: sparse: cast to restricted __le32
drivers/gpu/drm/radeon/cik_sdma.c:480:48: sparse: cast to restricted __le32
drivers/gpu/drm/radeon/cik_sdma.c:481:27: sparse: cast to restricted __le32
drivers/gpu/drm/radeon/cik_sdma.c:651:30: sparse: incorrect type in assignment (different base types)
drivers/gpu/drm/radeon/cik_sdma.c:651:30: expected unsigned int volatile [unsigned] [usertype] <noident>
drivers/gpu/drm/radeon/cik_sdma.c:651:30: got restricted __le32 [usertype] <noident>
drivers/gpu/drm/radeon/cik_sdma.c:666:23: sparse: cast to restricted __le32
drivers/gpu/drm/radeon/cik_sdma.c:708:30: sparse: incorrect type in assignment (different base types)
drivers/gpu/drm/radeon/cik_sdma.c:708:30: expected unsigned int volatile [unsigned] [usertype] <noident>
drivers/gpu/drm/radeon/cik_sdma.c:708:30: got restricted __le32 [usertype] <noident>
drivers/gpu/drm/radeon/cik_sdma.c:735:23: sparse: cast to restricted __le32

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/