[radeon-alex:amd-staging-drm-next 63/158] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:954:20: note: in expansion of macro 'list_first_entry_or_null'

kbuild test robot fengguang.wu at intel.com
Wed Jan 4 02:30:43 UTC 2017


tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   5d8e75c019bf76889bd606a67afabf7d0b32d3fa
commit: 5a0a709652ceaca0a36ef2d0954b8d9d3f690560 [63/158] drm/amd/dc: Add dc display driver
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5a0a709652ceaca0a36ef2d0954b8d9d3f690560
        # save the attached .config to linux build tree
        make.cross ARCH=alpha 

All warnings (new ones prefixed by >>):

   In file included from include/linux/agp_backend.h:33:0,
                    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 'create_target_for_sink':
   include/linux/list.h:385:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     struct list_head *head__ = (ptr); \
                                ^
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:954:20: note: in expansion of macro 'list_first_entry_or_null'
      preferred_mode = list_first_entry_or_null(
                       ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c: In function 'amdgpu_atomic_helper_page_flip':
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1102:2: error: implicit declaration of function 'drm_atomic_state_free' [-Werror=implicit-function-declaration]
     drm_atomic_state_free(state);
     ^~~~~~~~~~~~~~~~~~~~~
   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:1125:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .gamma_set = amdgpu_dm_atomic_crtc_gamma_set,
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1125:15: note: (near initialization for 'amdgpu_dm_crtc_funcs.gamma_set')
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1775:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .prepare_fb = dm_plane_helper_prepare_fb,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1775:16: note: (near initialization for 'dm_plane_helper_funcs.prepare_fb')
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1776:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .cleanup_fb = dm_plane_helper_cleanup_fb,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:1776:16: note: (near initialization for 'dm_plane_helper_funcs.cleanup_fb')
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c: In function 'amdgpu_dm_atomic_commit':
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:2492:31: error: passing argument 1 of 'drm_atomic_helper_swap_state' from incompatible pointer type [-Werror=incompatible-pointer-types]
     drm_atomic_helper_swap_state(dev, state);
                                  ^~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:30:0:
   include/drm/drm_atomic_helper.h:83:6: note: expected 'struct drm_atomic_state *' but argument is of type 'struct drm_device *'
    void drm_atomic_helper_swap_state(struct drm_atomic_state *state,
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c:2750:10: error: implicit declaration of function 'amdgpu_crtc_page_flip' [-Werror=implicit-function-declaration]
       ret = amdgpu_crtc_page_flip(crtc,
             ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/list_first_entry_or_null +954 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_types.c

   938		drm_connector = &aconnector->base;
   939		stream = dc_create_stream_for_sink(aconnector->dc_sink);
   940	
   941		if (NULL == stream) {
   942			DRM_ERROR("Failed to create stream for sink!\n");
   943			goto stream_create_fail;
   944		}
   945	
   946		list_for_each_entry(preferred_mode, &aconnector->base.modes, head) {
   947			/* Search for preferred mode */
   948			if (preferred_mode->type & DRM_MODE_TYPE_PREFERRED) {
   949				native_mode_found = true;
   950				break;
   951			}
   952		}
   953		if (!native_mode_found)
 > 954			preferred_mode = list_first_entry_or_null(
   955					&aconnector->base.modes,
   956					struct drm_display_mode,
   957					head);
   958	
   959		if (NULL == preferred_mode) {
   960			/* This may not be an error, the use case is when we we have no
   961			 * usermode calls to reset and set mode upon hotplug. In this
   962			 * case, we call set mode ourselves to restore the previous mode

---
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: 47963 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170104/3feb0f4c/attachment-0001.gz>


More information about the dri-devel mailing list