[radeon-alex:drm-next-4.12-wip 198/266] drivers/gpu/drm/amd/amdgpu/amdgpu.h:981:28: error: 'NGG_BUF_MAX' undeclared here (not in a function)

kbuild test robot fengguang.wu at intel.com
Tue Mar 28 00:22:44 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.12-wip
head:   ba92d1fc68425bbff454195c1a7bf07ec9b650d0
commit: 0e14c5d6baef9140a24d83f5cf53bb59a1952e87 [198/266] drm/amdgpu: add NGG parameters
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 0e14c5d6baef9140a24d83f5cf53bb59a1952e87
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All error/warnings (new ones prefixed by >>):

   In file included from arch/alpha/include/asm/pgtable.h:18:0,
                    from include/linux/mm.h:68,
                    from include/linux/scatterlist.h:7,
                    from include/linux/dma-mapping.h:10,
                    from include/drm/drmP.h:37,
                    from drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:32:
>> arch/alpha/include/uapi/asm/setup.h:27:18: error: expected identifier before '(' token
    #define ZERO_PGE (PAGE_OFFSET+KERNEL_START_PHYS+0x0A000)
                     ^
>> arch/alpha/include/uapi/asm/setup.h:37:17: note: in expansion of macro 'ZERO_PGE'
    #define PARAM   ZERO_PGE
                    ^~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:976:2: note: in expansion of macro 'PARAM'
     PARAM,
     ^~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:44:0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:981:28: error: 'NGG_BUF_MAX' undeclared here (not in a function)
     struct amdgpu_ngg_buf buf[NGG_BUF_MAX];
                               ^~~~~~~~~~~

vim +/NGG_BUF_MAX +981 drivers/gpu/drm/amd/amdgpu/amdgpu.h

   970	};
   971	
   972	enum {
   973		PRIM = 0,
   974		POS,
   975		CNTL,
 > 976		PARAM,
   977		NGG_BUF_MAX
   978	};
   979	
   980	struct amdgpu_ngg {
 > 981		struct amdgpu_ngg_buf	buf[NGG_BUF_MAX];
   982		uint32_t		gds_reserve_addr;
   983		uint32_t		gds_reserve_size;
   984		bool			init;

---
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/gzip
Size: 49629 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170328/4d08376b/attachment-0001.gz>


More information about the dri-devel mailing list