[radeon-alex:amd-staging-drm-next 638/1021] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1031:18: error: 'drm_atomic_helper_crtc_set_property' undeclared here (not in a function)

kbuild test robot fengguang.wu at intel.com
Wed Sep 13 21:07:02 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   43dd6fde5df450938568885249b836eb376e2ad6
commit: 13caa908431faa8016f21d3bca700adf0b8382c5 [638/1021] drm/amd/display: fix drm_edid.h inclusion
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 13caa908431faa8016f21d3bca700adf0b8382c5
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

Note: the radeon-alex/amd-staging-drm-next HEAD 43dd6fde5df450938568885249b836eb376e2ad6 builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/kernel.h:10:0,
                    from include/linux/list.h:8,
                    from include/linux/agp_backend.h:33,
                    from include/drm/drmP.h:35,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c: In function 'fill_rects_from_plane_state':
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:279:11: error: 'DRM_ROTATE_0' undeclared (first use in this function)
     case BIT(DRM_ROTATE_0):
              ^
   include/linux/bitops.h:6:28: note: in definition of macro 'BIT'
    #define BIT(nr)   (1UL << (nr))
                               ^~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:279:11: note: each undeclared identifier is reported only once for each function it appears in
     case BIT(DRM_ROTATE_0):
              ^
   include/linux/bitops.h:6:28: note: in definition of macro 'BIT'
    #define BIT(nr)   (1UL << (nr))
                               ^~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:282:11: error: 'DRM_ROTATE_90' undeclared (first use in this function)
     case BIT(DRM_ROTATE_90):
              ^
   include/linux/bitops.h:6:28: note: in definition of macro 'BIT'
    #define BIT(nr)   (1UL << (nr))
                               ^~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:285:11: error: 'DRM_ROTATE_180' undeclared (first use in this function)
     case BIT(DRM_ROTATE_180):
              ^
   include/linux/bitops.h:6:28: note: in definition of macro 'BIT'
    #define BIT(nr)   (1UL << (nr))
                               ^~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:288:11: error: 'DRM_ROTATE_270' undeclared (first use in this function)
     case BIT(DRM_ROTATE_270):
              ^
   include/linux/bitops.h:6:28: note: in definition of macro 'BIT'
    #define BIT(nr)   (1UL << (nr))
                               ^~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1031:18: error: 'drm_atomic_helper_crtc_set_property' undeclared here (not in a function)
     .set_property = drm_atomic_helper_crtc_set_property,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1304:10: error: 'drm_atomic_helper_connector_dpms' undeclared here (not in a function)
     .dpms = drm_atomic_helper_connector_dpms,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1308:18: error: 'drm_atomic_helper_connector_set_property' undeclared here (not in a function)
     .set_property = drm_atomic_helper_connector_set_property,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1558:18: error: 'drm_atomic_helper_plane_set_property' undeclared here (not in a function)
     .set_property = drm_atomic_helper_plane_set_property,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c: In function 'amdgpu_dm_plane_init':
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1721:5: error: incompatible type for argument 7 of 'drm_universal_plane_init'
        aplane->base.type, NULL);
        ^~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: expected 'const uint64_t * {aka const long long unsigned int *}' but argument is of type 'enum drm_plane_type'
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   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/../display/amdgpu_dm/amdgpu_dm_types.c:26:
   include/linux/stddef.h:7:14: error: incompatible type for argument 8 of 'drm_universal_plane_init'
    #define NULL ((void *)0)
                 ^
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1721:24: note: in expansion of macro 'NULL'
        aplane->base.type, NULL);
                           ^~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: expected 'enum drm_plane_type' but argument is of type 'void *'
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1714:9: error: too few arguments to function 'drm_universal_plane_init'
      res = drm_universal_plane_init(
            ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: declared here
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1731:5: error: incompatible type for argument 7 of 'drm_universal_plane_init'
        aplane->base.type, NULL);
        ^~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: expected 'const uint64_t * {aka const long long unsigned int *}' but argument is of type 'enum drm_plane_type'
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   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/../display/amdgpu_dm/amdgpu_dm_types.c:26:
   include/linux/stddef.h:7:14: error: incompatible type for argument 8 of 'drm_universal_plane_init'
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1731:24: note: in expansion of macro 'NULL'
        aplane->base.type, NULL);
                           ^~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: expected 'enum drm_plane_type' but argument is of type 'void *'
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1724:9: error: too few arguments to function 'drm_universal_plane_init'
      res = drm_universal_plane_init(
            ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: declared here
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1741:5: error: incompatible type for argument 7 of 'drm_universal_plane_init'
        aplane->base.type, NULL);
        ^~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: expected 'const uint64_t * {aka const long long unsigned int *}' but argument is of type 'enum drm_plane_type'
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   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/../display/amdgpu_dm/amdgpu_dm_types.c:26:
   include/linux/stddef.h:7:14: error: incompatible type for argument 8 of 'drm_universal_plane_init'
    #define NULL ((void *)0)
                 ^
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1741:24: note: in expansion of macro 'NULL'
        aplane->base.type, NULL);
                           ^~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: expected 'enum drm_plane_type' but argument is of type 'void *'
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1734:9: error: too few arguments to function 'drm_universal_plane_init'
      res = drm_universal_plane_init(
            ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/drm/drm_crtc.h:45:0,
                    from include/drm/drmP.h:69,
                    from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:29:
   include/drm/drm_plane.h:548:5: note: declared here
    int drm_universal_plane_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~

vim +/drm_atomic_helper_crtc_set_property +1031 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c

80be23c5 Harry Wentland 2017-09-12  1024  
80be23c5 Harry Wentland 2017-09-12  1025  /* Implemented only the options currently availible for the driver */
80be23c5 Harry Wentland 2017-09-12  1026  static const struct drm_crtc_funcs amdgpu_dm_crtc_funcs = {
80be23c5 Harry Wentland 2017-09-12  1027  	.reset = drm_atomic_helper_crtc_reset,
80be23c5 Harry Wentland 2017-09-12  1028  	.destroy = amdgpu_dm_crtc_destroy,
efc93186 Harry Wentland 2017-01-14  1029  	.gamma_set = drm_atomic_helper_legacy_gamma_set,
80be23c5 Harry Wentland 2017-09-12  1030  	.set_config = drm_atomic_helper_set_config,
efc93186 Harry Wentland 2017-01-14 @1031  	.set_property = drm_atomic_helper_crtc_set_property,
80be23c5 Harry Wentland 2017-09-12  1032  	.page_flip = amdgpu_atomic_helper_page_flip,
80be23c5 Harry Wentland 2017-09-12  1033  	.atomic_duplicate_state = drm_atomic_helper_crtc_duplicate_state,
80be23c5 Harry Wentland 2017-09-12  1034  	.atomic_destroy_state = drm_atomic_helper_crtc_destroy_state,
80be23c5 Harry Wentland 2017-09-12  1035  };
80be23c5 Harry Wentland 2017-09-12  1036  

:::::: The code at line 1031 was first introduced by commit
:::::: efc9318604422c771b1c14f7db2e748278b3ccc3 drm/amd/display: Use atomic helpers for gamma

:::::: TO: Harry Wentland <harry.wentland at amd.com>
:::::: CC: Alex Deucher <alexander.deucher at amd.com>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 48438 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170914/b840cc62/attachment-0001.gz>


More information about the dri-devel mailing list