[drm:amdgpu-non-dc-cleanups 3/13] drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:9: error: initialization from incompatible pointer type

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

 



tree:   git://people.freedesktop.org/~airlied/linux.git amdgpu-non-dc-cleanups
head:   1560fe3a3f2d9c13d1f91675468d3b71b2a8e811
commit: 754270c7c56292e97d0eff924a5d5d83f92add07 [3/13] Merge branch 'drm-next-4.15' of git://people.freedesktop.org/~agd5f/linux into drm-next
config: x86_64-randconfig-ws0-09281411 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 754270c7c56292e97d0eff924a5d5d83f92add07
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the drm/amdgpu-non-dc-cleanups HEAD 1560fe3a3f2d9c13d1f91675468d3b71b2a8e811 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   In file included from include/uapi/linux/posix_types.h:4:0,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../powerplay/inc/pp_debug.h:33,
                    from drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:24:
   include/linux/stddef.h:7:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_l2h_irq},
      ^~~~
   include/linux/stddef.h:7:14: note: (near initialization for 'thermal_irq_src[0]')
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_l2h_irq},
      ^~~~
   include/linux/stddef.h:7:14: error: invalid initializer
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_l2h_irq},
      ^~~~
   include/linux/stddef.h:7:14: note: (near initialization for 'thermal_irq_src[0].<anonymous>')
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_l2h_irq},
      ^~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     {NULL, phm_thermal_l2h_irq},
            ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:9: note: (near initialization for 'thermal_irq_src[0]')
>> drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:9: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:9: note: (near initialization for 'thermal_irq_src[0].set')
   In file included from include/uapi/linux/posix_types.h:4:0,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../powerplay/inc/pp_debug.h:33,
                    from drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:24:
   include/linux/stddef.h:7:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_h2l_irq},
      ^~~~
   include/linux/stddef.h:7:14: note: (near initialization for 'thermal_irq_src[1]')
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_h2l_irq},
      ^~~~
   include/linux/stddef.h:7:14: error: invalid initializer
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_h2l_irq},
      ^~~~
   include/linux/stddef.h:7:14: note: (near initialization for 'thermal_irq_src[1].<anonymous>')
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:3: note: in expansion of macro 'NULL'
     {NULL, phm_thermal_h2l_irq},
      ^~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     {NULL, phm_thermal_h2l_irq},
            ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:9: note: (near initialization for 'thermal_irq_src[1]')
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:9: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:128:9: note: (near initialization for 'thermal_irq_src[1].set')
   In file included from include/uapi/linux/posix_types.h:4:0,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from drivers/gpu/drm/amd/amdgpu/../powerplay/inc/pp_debug.h:33,
                    from drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:24:
   include/linux/stddef.h:7:14: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:3: note: in expansion of macro 'NULL'
     {NULL, phm_ctf_irq}
      ^~~~
   include/linux/stddef.h:7:14: note: (near initialization for 'thermal_irq_src[2]')
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:3: note: in expansion of macro 'NULL'
     {NULL, phm_ctf_irq}
      ^~~~
   include/linux/stddef.h:7:14: error: invalid initializer
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:3: note: in expansion of macro 'NULL'
     {NULL, phm_ctf_irq}
      ^~~~
   include/linux/stddef.h:7:14: note: (near initialization for 'thermal_irq_src[2].<anonymous>')
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:3: note: in expansion of macro 'NULL'
     {NULL, phm_ctf_irq}
      ^~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:9: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     {NULL, phm_ctf_irq}
            ^~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:9: note: (near initialization for 'thermal_irq_src[2]')
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:9: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:129:9: note: (near initialization for 'thermal_irq_src[2].set')
   cc1: some warnings being treated as errors

vim +127 drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c

2a5b64c9 Eric Huang 2017-09-15  125  
2a5b64c9 Eric Huang 2017-09-15  126  static const struct cgs_irq_src_funcs thermal_irq_src[3] = {
2a5b64c9 Eric Huang 2017-09-15 @127  	{NULL, phm_thermal_l2h_irq},
2a5b64c9 Eric Huang 2017-09-15  128  	{NULL, phm_thermal_h2l_irq},
2a5b64c9 Eric Huang 2017-09-15  129  	{NULL, phm_ctf_irq}
2a5b64c9 Eric Huang 2017-09-15  130  };
2a5b64c9 Eric Huang 2017-09-15  131  

:::::: The code at line 127 was first introduced by commit
:::::: 2a5b64c9fcd7adf6133e76966250ef3ab139f98b drm/amd/powerplay: add register thermal interrupt in hwmgr_hw_init

:::::: TO: Eric Huang <JinHuiEric.Huang@xxxxxxx>
:::::: CC: Alex Deucher <alexander.deucher@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