[radeon-alex:amd-mainline-dkms-5.4 1206/2653] include/drm/amd_rdma.h:34:2: error: unknown type name 'uint64_t'

kbuild test robot lkp at intel.com
Thu Mar 12 20:03:48 UTC 2020


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.4
head:   fa14e19bd78eecca201da26d22c7b95ee06769c6
commit: a386a08bdacc09d446ac36fd15cfe63ccc0775cc [1206/2653] drm/amdkfd: Copy in KFD-related files
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout a386a08bdacc09d446ac36fd15cfe63ccc0775cc
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=c6x 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>

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

   In file included from <command-line>:
>> include/drm/amd_rdma.h:34:2: error: unknown type name 'uint64_t'
      34 |  uint64_t va;  /**< Specify user virt. address
         |  ^~~~~~~~
   include/drm/amd_rdma.h:38:2: error: unknown type name 'uint64_t'
      38 |  uint64_t size;  /**< Specify total size of
         |  ^~~~~~~~
   include/drm/amd_rdma.h:55:19: error: unknown type name 'uint64_t'
      55 |  int (*get_pages)(uint64_t address, uint64_t length, struct pid *pid,
         |                   ^~~~~~~~
   include/drm/amd_rdma.h:55:37: error: unknown type name 'uint64_t'
      55 |  int (*get_pages)(uint64_t address, uint64_t length, struct pid *pid,
         |                                     ^~~~~~~~
   include/drm/amd_rdma.h:60:24: error: unknown type name 'uint64_t'
      60 |  int (*is_gpu_address)(uint64_t address, struct pid *pid);
         |                        ^~~~~~~~
   include/drm/amd_rdma.h:61:23: error: unknown type name 'uint64_t'
      61 |  int (*get_page_size)(uint64_t address, uint64_t length, struct pid *pid,
         |                       ^~~~~~~~
   include/drm/amd_rdma.h:61:41: error: unknown type name 'uint64_t'
      61 |  int (*get_page_size)(uint64_t address, uint64_t length, struct pid *pid,
         |                                         ^~~~~~~~
>> include/drm/amd_rdma.h:63:1: warning: no semicolon at end of struct or union
      63 | };
         | ^

vim +/uint64_t +34 include/drm/amd_rdma.h

    27	
    28	
    29	/**
    30	 * Structure describing information needed to P2P access from another device
    31	 * to specific location of GPU memory
    32	 */
    33	struct amd_p2p_info {
  > 34		uint64_t	va;		/**< Specify user virt. address
    35						  * which this page table
    36						  * described
    37						  */
    38		uint64_t	size;		/**< Specify total size of
    39						  * allocation
    40						  */
    41		struct pid	*pid;		/**< Specify process pid to which
    42						  * virtual address belongs
    43						  */
    44		struct sg_table *pages;		/**< Specify DMA/Bus addresses */
    45		void		*priv;		/**< Pointer set by AMD kernel
    46						  * driver
    47						  */
    48	};
    49	
    50	/**
    51	 * Structure providing function pointers to support rdma/p2p requirements.
    52	 * to specific location of GPU memory
    53	 */
    54	struct amd_rdma_interface {
    55		int (*get_pages)(uint64_t address, uint64_t length, struct pid *pid,
    56					struct amd_p2p_info  **amd_p2p_data,
    57					void  (*free_callback)(void *client_priv),
    58					void  *client_priv);
    59		int (*put_pages)(struct amd_p2p_info **amd_p2p_data);
    60		int (*is_gpu_address)(uint64_t address, struct pid *pid);
    61		int (*get_page_size)(uint64_t address, uint64_t length, struct pid *pid,
    62					unsigned long *page_size);
  > 63	};
    64	
    65	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 50150 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200313/1f5c41ea/attachment-0001.gz>


More information about the dri-devel mailing list