[drm-intel:drm-intel-nightly 1258/1268] drivers/gpu/drm/tve200/tve200_display.c:339:9: error: passing argument 6 of 'drm_simple_display_pipe_init' from incompatible pointer type

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

 



tree:   git://anongit.freedesktop.org/drm-intel drm-intel-nightly
head:   3adc9e3cacefe82619fc56ec78a0ca3a67a4b00c
commit: 179c02fe90a4104d32e92a46b9ff4ecc32bf3647 [1258/1268] drm/tve200: Add new driver for TVE200
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 179c02fe90a4104d32e92a46b9ff4ecc32bf3647
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/tve200/tve200_display.c: In function 'tve200_display_init':
>> drivers/gpu/drm/tve200/tve200_display.c:339:9: error: passing argument 6 of 'drm_simple_display_pipe_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
            &priv->connector.connector);
            ^
   In file included from drivers/gpu/drm/tve200/tve200_drm.h:97:0,
                    from drivers/gpu/drm/tve200/tve200_display.c:26:
   include/drm/drm_simple_kms_helper.h:121:5: note: expected 'const uint64_t * {aka const long long unsigned int *}' but argument is of type 'struct drm_connector *'
    int drm_simple_display_pipe_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/tve200/tve200_display.c:336:8: error: too few arguments to function 'drm_simple_display_pipe_init'
     ret = drm_simple_display_pipe_init(drm, &priv->pipe,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/tve200/tve200_drm.h:97:0,
                    from drivers/gpu/drm/tve200/tve200_display.c:26:
   include/drm/drm_simple_kms_helper.h:121:5: note: declared here
    int drm_simple_display_pipe_init(struct drm_device *dev,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/drm_simple_display_pipe_init +339 drivers/gpu/drm/tve200/tve200_display.c

   311	
   312	int tve200_display_init(struct drm_device *drm)
   313	{
   314		struct tve200_drm_dev_private *priv = drm->dev_private;
   315		int ret;
   316		static const u32 formats[] = {
   317			DRM_FORMAT_XRGB8888,
   318			DRM_FORMAT_XBGR8888,
   319			DRM_FORMAT_RGB565,
   320			DRM_FORMAT_BGR565,
   321			DRM_FORMAT_XRGB1555,
   322			DRM_FORMAT_XBGR1555,
   323			/*
   324			 * The controller actually supports any YCbCr ordering,
   325			 * for packed YCbCr. This just lists the orderings that
   326			 * DRM supports.
   327			 */
   328			DRM_FORMAT_YUYV,
   329			DRM_FORMAT_YVYU,
   330			DRM_FORMAT_UYVY,
   331			DRM_FORMAT_VYUY,
   332			/* This uses three planes */
   333			DRM_FORMAT_YUV420,
   334		};
   335	
 > 336		ret = drm_simple_display_pipe_init(drm, &priv->pipe,
   337						   &tve200_display_funcs,
   338						   formats, ARRAY_SIZE(formats),
 > 339						   &priv->connector.connector);

---
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