[radeon-alex:drm-next-4.9-si 117/127] drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1584:40: error: 'EVERGREEN_GRPH_ENDIAN_8IN16' undeclared

kbuild test robot fengguang.wu at intel.com
Mon Aug 1 23:46:11 UTC 2016


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.9-si
head:   80c6bf7b975077c63b6506d7dd6cb895d72afab2
commit: d1f7ef0f00bbbc985bf5ce8bdecf1944df11681a [117/127] drm/amdgpu: add all the components for si into Makefile/kconfig v3
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.4.0-6) 5.4.0 20160609
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 d1f7ef0f00bbbc985bf5ce8bdecf1944df11681a
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

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:1584: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:1584: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:1615: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 +1584 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c

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

:::::: The code at line 1584 was first introduced by commit
:::::: e594a6309b3b9618282718790aa275c644b3ad2b drm/amdgpu: add display controller implementation for si v8

:::::: 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: 57673 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20160802/5f06f531/attachment-0001.obj>


More information about the dri-devel mailing list