[radeon-alex:amd-staging-drm-next 4/7] drivers/staging//vboxvideo/vbox_ttm.c:228:2: warning: initialization from incompatible pointer type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   4a3734b36305f90b13299d49ebc827a4d7e3b24f
commit: eb86c985cf747ce7fb59a521f7e94fc4a51852ba [4/7] drm/ttm: use an operation ctx for ttm_tt_populate in ttm_bo_driver
config: i386-randconfig-a0-201752 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout eb86c985cf747ce7fb59a521f7e94fc4a51852ba
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/staging//vboxvideo/vbox_ttm.c: In function 'vbox_ttm_tt_populate':
   drivers/staging//vboxvideo/vbox_ttm.c:218:9: error: too few arguments to function 'ttm_pool_populate'
     return ttm_pool_populate(ttm);
            ^
   In file included from drivers/staging//vboxvideo/vbox_ttm.c:31:0:
   include/drm/ttm/ttm_page_alloc.h:50:5: note: declared here
    int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx);
        ^
   drivers/staging//vboxvideo/vbox_ttm.c: At top level:
>> drivers/staging//vboxvideo/vbox_ttm.c:228:2: warning: initialization from incompatible pointer type
     .ttm_tt_populate = vbox_ttm_tt_populate,
     ^
   drivers/staging//vboxvideo/vbox_ttm.c:228:2: warning: (near initialization for 'vbox_bo_driver.ttm_tt_populate')
   In file included from include/linux/kernel.h:10:0,
                    from include/linux/list.h:9,
                    from include/linux/lockdep.h:27,
                    from include/linux/spinlock_types.h:18,
                    from include/linux/genalloc.h:34,
                    from drivers/staging//vboxvideo/vbox_drv.h:33,
                    from drivers/staging//vboxvideo/vbox_ttm.c:30:
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'strcpy' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:422:2: note: in expansion of macro 'if'
     if (p_size == (size_t)-1 && q_size == (size_t)-1)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:412:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:410:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:401:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:399:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:390:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:388:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:380:2: note: in expansion of macro 'if'
     if (p_size < size || q_size < size)
     ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:377:3: note: in expansion of macro 'if'
      if (q_size < size)
      ^
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^
   include/linux/string.h:375:3: note: in expansion of macro 'if'
      if (p_size < size)
      ^

vim +228 drivers/staging//vboxvideo/vbox_ttm.c

dd55d44f4 Hans de Goede  2017-07-06  215  
dd55d44f4 Hans de Goede  2017-07-06  216  static int vbox_ttm_tt_populate(struct ttm_tt *ttm)
dd55d44f4 Hans de Goede  2017-07-06  217  {
dd55d44f4 Hans de Goede  2017-07-06 @218  	return ttm_pool_populate(ttm);
dd55d44f4 Hans de Goede  2017-07-06  219  }
dd55d44f4 Hans de Goede  2017-07-06  220  
dd55d44f4 Hans de Goede  2017-07-06  221  static void vbox_ttm_tt_unpopulate(struct ttm_tt *ttm)
dd55d44f4 Hans de Goede  2017-07-06  222  {
dd55d44f4 Hans de Goede  2017-07-06  223  	ttm_pool_unpopulate(ttm);
dd55d44f4 Hans de Goede  2017-07-06  224  }
dd55d44f4 Hans de Goede  2017-07-06  225  
cb67fa13c Colin Ian King 2017-07-19  226  static struct ttm_bo_driver vbox_bo_driver = {
dd55d44f4 Hans de Goede  2017-07-06  227  	.ttm_tt_create = vbox_ttm_tt_create,
dd55d44f4 Hans de Goede  2017-07-06 @228  	.ttm_tt_populate = vbox_ttm_tt_populate,
dd55d44f4 Hans de Goede  2017-07-06  229  	.ttm_tt_unpopulate = vbox_ttm_tt_unpopulate,
dd55d44f4 Hans de Goede  2017-07-06  230  	.init_mem_type = vbox_bo_init_mem_type,
dd55d44f4 Hans de Goede  2017-07-06  231  	.eviction_valuable = ttm_bo_eviction_valuable,
dd55d44f4 Hans de Goede  2017-07-06  232  	.evict_flags = vbox_bo_evict_flags,
dd55d44f4 Hans de Goede  2017-07-06  233  	.verify_access = vbox_bo_verify_access,
dd55d44f4 Hans de Goede  2017-07-06  234  	.io_mem_reserve = &vbox_ttm_io_mem_reserve,
dd55d44f4 Hans de Goede  2017-07-06  235  	.io_mem_free = &vbox_ttm_io_mem_free,
dd55d44f4 Hans de Goede  2017-07-06  236  	.io_mem_pfn = ttm_bo_default_io_mem_pfn,
dd55d44f4 Hans de Goede  2017-07-06  237  };
dd55d44f4 Hans de Goede  2017-07-06  238  

:::::: The code at line 228 was first introduced by commit
:::::: dd55d44f408419278c00887bfcb2261d0caae350 staging: vboxvideo: Add vboxvideo to drivers/staging

:::::: TO: Hans de Goede <hdegoede@xxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux