All of lore.kernel.org
 help / color / mirror / Atom feed
* [drm:amdgpu-non-dc-cleanups 3/13] drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:9: error: initialization from incompatible pointer type
@ 2017-09-28 12:27 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-09-28 12:27 UTC (permalink / raw)
  To: Alex Deucher; +Cc: Dave Airlie, kbuild-all, dri-devel

[-- Attachment #1: Type: text/plain, Size: 8039 bytes --]

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@amd.com>
:::::: CC: Alex Deucher <alexander.deucher@amd.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30176 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-28 12:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-28 12:27 [drm:amdgpu-non-dc-cleanups 3/13] drivers/gpu/drm/amd/amdgpu/../powerplay/hwmgr/hwmgr.c:127:9: error: initialization from incompatible pointer type kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.