[radeon-alex:amd-staging-dkms-4.18 962/1379] drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of struct or union

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

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-dkms-4.18
head:   937a0a9df97d4c1c7cecf6faa2f501d175bc3c2a
commit: e7961cb5bfa3cd355113714450841fe6d40c749d [962/1379] drm/amdkcl: [4.16] fix for devm_memremap_pages change
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout e7961cb5bfa3cd355113714450841fe6d40c749d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
                    from <command-line>:0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of struct or union
    };
    ^
--
   In file included from drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
                    from <command-line>:0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of struct or union
    };
    ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c:363:12: warning: 'get_vm_pd_gpu_offset' defined but not used [-Wunused-function]
    static u64 get_vm_pd_gpu_offset(struct amdgpu_vm *vm)
               ^~~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
                    from <command-line>:0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of struct or union
    };
    ^
   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c:497:13: warning: 'amdgpu_vm_bo_param' defined but not used [-Wunused-function]
    static void amdgpu_vm_bo_param(struct amdgpu_device *adev, struct amdgpu_vm *vm,
                ^~~~~~~~~~~~~~~~~~
--
   In file included from drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5:0,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
                    from <command-line>:0:
>> drivers/gpu/drm/amd/amdgpu/amdgpu.h:851:1: warning: no semicolon at end of struct or union
    };
    ^
   In file included from include/linux/list.h:9:0,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'get_fb_info':
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2016:66: warning: passing argument 1 of 'kcl_drm_fb_get_gem_obj' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     struct amdgpu_bo *rbo = gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
                                                                     ^
   include/linux/kernel.h:963:26: note: in definition of macro 'container_of'
     void *__mptr = (void *)(ptr);     \
                             ^~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2016:26: note: in expansion of macro 'gem_to_amdgpu_bo'
     struct amdgpu_bo *rbo = gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
                             ^
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:56:0,
                    from drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
                    from <command-line>:0:
   drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:322:1: note: expected 'struct drm_framebuffer *' but argument is of type 'const struct drm_framebuffer *'
    kcl_drm_fb_get_gem_obj(struct drm_framebuffer * fb,int index)
    ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:10:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2016:66: warning: passing argument 1 of 'kcl_drm_fb_get_gem_obj' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     struct amdgpu_bo *rbo = gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
                                                                     ^
   include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert'
      bool __cond = !(condition);    \
                      ^~~~~~~~~
   include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:964:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:964:20: note: in expansion of macro '__same_type'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
                       ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h:34:32: note: in expansion of macro 'container_of'
    #define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, gem_base)
                                   ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2016:26: note: in expansion of macro 'gem_to_amdgpu_bo'
     struct amdgpu_bo *rbo = gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
                             ^
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:56:0,
                    from drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,
                    from <command-line>:0:
   drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h:322:1: note: expected 'struct drm_framebuffer *' but argument is of type 'const struct drm_framebuffer *'
    kcl_drm_fb_get_gem_obj(struct drm_framebuffer * fb,int index)
    ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/kernel.h:10:0,
                    from include/linux/list.h:9,
                    from include/linux/preempt.h:11,
                    from include/linux/spinlock.h:51,
                    from include/linux/kref.h:18,
                    from include/kcl/kcl_kref.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:7,
                    from <command-line>:0:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2016:66: warning: passing argument 1 of 'kcl_drm_fb_get_gem_obj' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     struct amdgpu_bo *rbo = gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
                                                                     ^
   include/linux/compiler.h:316:19: note: in definition of macro '__compiletime_assert'
      bool __cond = !(condition);    \
                      ^~~~~~~~~
   include/linux/compiler.h:339:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:45:37: note: in expansion of macro 'compiletime_assert'
    #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                        ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:964:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
     ^~~~~~~~~~~~~~~~
   include/linux/kernel.h:965:6: note: in expansion of macro '__same_type'
        !__same_type(*(ptr), void),   \
         ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h:34:32: note: in expansion of macro 'container_of'
    #define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, gem_base)
                                   ^~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:2016:26: note: in expansion of macro 'gem_to_amdgpu_bo'
     struct amdgpu_bo *rbo = gem_to_amdgpu_bo(kcl_drm_fb_get_gem_obj(&amdgpu_fb->base, 0));
                             ^
   In file included from drivers/gpu/drm/amd/amdgpu/amdgpu.h:56:0,
                    from drivers/gpu/drm/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../backport/backport.h:12,

vim +851 drivers/gpu/drm/amd/amdgpu/amdgpu.h

126886d34 Junwei Zhang 2018-08-22  841  
126886d34 Junwei Zhang 2018-08-22  842  struct amdgpu_ssg {
126886d34 Junwei Zhang 2018-08-22  843  	bool			enabled;
126886d34 Junwei Zhang 2018-08-22  844  #ifdef CONFIG_ENABLE_SSG
126886d34 Junwei Zhang 2018-08-22  845  	struct percpu_ref	ref;
126886d34 Junwei Zhang 2018-08-22  846  	struct completion	cmp;
e7961cb5b Qiang Yu     2018-09-26  847  #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)
e7961cb5b Qiang Yu     2018-09-26  848  	struct dev_pagemap	pgmap
e7961cb5b Qiang Yu     2018-09-26  849  #endif
126886d34 Junwei Zhang 2018-08-22  850  #endif
126886d34 Junwei Zhang 2018-08-22 @851  };
126886d34 Junwei Zhang 2018-08-22  852  

:::::: The code at line 851 was first introduced by commit
:::::: 126886d3439de4ee754d6e809545d99fb1e78959 drm/amdgpu: [hybrid] add SSG support

:::::: TO: Junwei Zhang <Jerry.Zhang@xxxxxxx>
:::::: CC: Kevin Wang <Kevin1.Wang@xxxxxxx>

---
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