[radeon-alex:amd-18.50 1052/1415] 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-18.50
head:   88a0039cb034176ee3416dd0c3a49feea2f446ab
commit: 6bd58b7143eee9bc0567f78b5ef67b4164b02d62 [1052/1415] 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 6bd58b7143eee9bc0567f78b5ef67b4164b02d62
        # 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
    };
    ^
   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:2013: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:2013: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:2013: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:2013: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:2013: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:2013: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;
6bd58b714 Qiang Yu     2018-09-26  847  #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)
6bd58b714 Qiang Yu     2018-09-26  848  	struct dev_pagemap	pgmap
6bd58b714 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