[radeon-alex:drm-next-4.8-wip-si 99/115] drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1587:40: error: 'EVERGREEN_GRPH_ENDIAN_8IN16' undeclared

kbuild test robot fengguang.wu at intel.com
Tue Jun 7 03:00:23 UTC 2016


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.8-wip-si
head:   b0210a41d3d538ac90fff4d1a2d84af847bdaa16
commit: 2cefc46ba00e55d97236711c05f4c97c6c8e5413 [99/115] drm/amdgpu: add all the components for si into Makefile/kconfig v3
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 2cefc46ba00e55d97236711c05f4c97c6c8e5413
        # save the attached .config to linux build tree
        make.cross ARCH=arm64 

All errors (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:34:0:
   drivers/gpu/drm/amd/amdgpu/dce_v6_0.c: In function 'dce_v6_0_crtc_do_set_base':
>> drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1587:40: error: 'EVERGREEN_GRPH_ENDIAN_8IN16' undeclared (first use in this function)
      fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
                                           ^
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/si/sid.h:2154:53: note: in definition of macro 'EVERGREEN_GRPH_ENDIAN_SWAP'
    #define EVERGREEN_GRPH_ENDIAN_SWAP(x)            (((x) & 0x3) << 0)
                                                        ^
   drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1587:40: note: each undeclared identifier is reported only once for each function it appears in
      fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
                                           ^
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/si/sid.h:2154:53: note: in definition of macro 'EVERGREEN_GRPH_ENDIAN_SWAP'
    #define EVERGREEN_GRPH_ENDIAN_SWAP(x)            (((x) & 0x3) << 0)
                                                        ^
>> drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1618:40: error: 'EVERGREEN_GRPH_ENDIAN_8IN32' undeclared (first use in this function)
      fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN32);
                                           ^
   drivers/gpu/drm/amd/amdgpu/../include/asic_reg/si/sid.h:2154:53: note: in definition of macro 'EVERGREEN_GRPH_ENDIAN_SWAP'
    #define EVERGREEN_GRPH_ENDIAN_SWAP(x)            (((x) & 0x3) << 0)
                                                        ^

vim +/EVERGREEN_GRPH_ENDIAN_8IN16 +1587 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c

22e6c8d8 Ken Wang 2016-01-19  1581  		break;
22e6c8d8 Ken Wang 2016-01-19  1582  	case DRM_FORMAT_XRGB4444:
22e6c8d8 Ken Wang 2016-01-19  1583  	case DRM_FORMAT_ARGB4444:
22e6c8d8 Ken Wang 2016-01-19  1584  		fb_format = (EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
22e6c8d8 Ken Wang 2016-01-19  1585  			     EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB4444));
22e6c8d8 Ken Wang 2016-01-19  1586  #ifdef __BIG_ENDIAN
22e6c8d8 Ken Wang 2016-01-19 @1587  		fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
22e6c8d8 Ken Wang 2016-01-19  1588  #endif
22e6c8d8 Ken Wang 2016-01-19  1589  		break;
22e6c8d8 Ken Wang 2016-01-19  1590  	case DRM_FORMAT_XRGB1555:
22e6c8d8 Ken Wang 2016-01-19  1591  	case DRM_FORMAT_ARGB1555:
22e6c8d8 Ken Wang 2016-01-19  1592  		fb_format = (EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
22e6c8d8 Ken Wang 2016-01-19  1593  			     EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB1555));
22e6c8d8 Ken Wang 2016-01-19  1594  #ifdef __BIG_ENDIAN
22e6c8d8 Ken Wang 2016-01-19  1595  		fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
22e6c8d8 Ken Wang 2016-01-19  1596  #endif
22e6c8d8 Ken Wang 2016-01-19  1597  		break;
22e6c8d8 Ken Wang 2016-01-19  1598  	case DRM_FORMAT_BGRX5551:
22e6c8d8 Ken Wang 2016-01-19  1599  	case DRM_FORMAT_BGRA5551:
22e6c8d8 Ken Wang 2016-01-19  1600  		fb_format = (EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
22e6c8d8 Ken Wang 2016-01-19  1601  			     EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_BGRA5551));
22e6c8d8 Ken Wang 2016-01-19  1602  #ifdef __BIG_ENDIAN
22e6c8d8 Ken Wang 2016-01-19  1603  		fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
22e6c8d8 Ken Wang 2016-01-19  1604  #endif
22e6c8d8 Ken Wang 2016-01-19  1605  		break;
22e6c8d8 Ken Wang 2016-01-19  1606  	case DRM_FORMAT_RGB565:
22e6c8d8 Ken Wang 2016-01-19  1607  		fb_format = (EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_16BPP) |
22e6c8d8 Ken Wang 2016-01-19  1608  			     EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB565));
22e6c8d8 Ken Wang 2016-01-19  1609  #ifdef __BIG_ENDIAN
22e6c8d8 Ken Wang 2016-01-19  1610  		fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN16);
22e6c8d8 Ken Wang 2016-01-19  1611  #endif
22e6c8d8 Ken Wang 2016-01-19  1612  		break;
22e6c8d8 Ken Wang 2016-01-19  1613  	case DRM_FORMAT_XRGB8888:
22e6c8d8 Ken Wang 2016-01-19  1614  	case DRM_FORMAT_ARGB8888:
22e6c8d8 Ken Wang 2016-01-19  1615  		fb_format = (EVERGREEN_GRPH_DEPTH(EVERGREEN_GRPH_DEPTH_32BPP) |
22e6c8d8 Ken Wang 2016-01-19  1616  			     EVERGREEN_GRPH_FORMAT(EVERGREEN_GRPH_FORMAT_ARGB8888));
22e6c8d8 Ken Wang 2016-01-19  1617  #ifdef __BIG_ENDIAN
22e6c8d8 Ken Wang 2016-01-19 @1618  		fb_swap = EVERGREEN_GRPH_ENDIAN_SWAP(EVERGREEN_GRPH_ENDIAN_8IN32);
22e6c8d8 Ken Wang 2016-01-19  1619  #endif
22e6c8d8 Ken Wang 2016-01-19  1620  		break;
22e6c8d8 Ken Wang 2016-01-19  1621  	case DRM_FORMAT_XRGB2101010:

:::::: The code at line 1587 was first introduced by commit
:::::: 22e6c8d8e8d759e190eb33a389d2a5884a767d9c drm/amdgpu: add display controller implementation for si v7

:::::: TO: Ken Wang <Qingqing.Wang at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 49570 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160607/a1246ba1/attachment-0001.obj>


More information about the dri-devel mailing list