All of lore.kernel.org
 help / color / mirror / Atom feed
* [drm-drm-misc:for-linux-next 1/1] drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:35: error: 'struct ingenic_drm' has no member named 'dma_hwdescs'; did you mean
@ 2020-10-07 22:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-07 22:58 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://anongit.freedesktop.org/drm/drm-misc for-linux-next
head:   a3fb64c00d44a3ce869c0ca8210f95f99497aa9e
commit: a3fb64c00d44a3ce869c0ca8210f95f99497aa9e [1/1] Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"
config: mips-randconfig-p001-20201008 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add drm-drm-misc git://anongit.freedesktop.org/drm/drm-misc
        git fetch --no-tags drm-drm-misc for-linux-next
        git checkout a3fb64c00d44a3ce869c0ca8210f95f99497aa9e
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/clk.h:13,
                    from drivers/gpu/drm/ingenic/ingenic-drm-drv.c:10:
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c: In function 'ingenic_drm_update_palette':
>> drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:35: error: 'struct ingenic_drm' has no member named 'dma_hwdescs'; did you mean 'dma_hwdesc_f0'?
     448 |  for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
         |                                   ^~~~~~~~~~~
   include/linux/kernel.h:47:33: note: in definition of macro 'ARRAY_SIZE'
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                 ^~~
>> drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:35: error: 'struct ingenic_drm' has no member named 'dma_hwdescs'; did you mean 'dma_hwdesc_f0'?
     448 |  for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
         |                                   ^~~~~~~~~~~
   include/linux/kernel.h:47:48: note: in definition of macro 'ARRAY_SIZE'
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                ^~~
   In file included from include/linux/bits.h:22,
                    from include/linux/bitops.h:5,
                    from drivers/gpu/drm/ingenic/ingenic-drm.h:10,
                    from drivers/gpu/drm/ingenic/ingenic-drm-drv.c:7:
>> drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:35: error: 'struct ingenic_drm' has no member named 'dma_hwdescs'; did you mean 'dma_hwdesc_f0'?
     448 |  for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
         |                                   ^~~~~~~~~~~
   include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                              ^
   include/linux/compiler.h:224:46: note: in expansion of macro '__same_type'
     224 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                              ^~~~~~~~~~~
   include/linux/kernel.h:47:59: note: in expansion of macro '__must_be_array'
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:18: note: in expansion of macro 'ARRAY_SIZE'
     448 |  for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
         |                  ^~~~~~~~~~
>> drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:35: error: 'struct ingenic_drm' has no member named 'dma_hwdescs'; did you mean 'dma_hwdesc_f0'?
     448 |  for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
         |                                   ^~~~~~~~~~~
   include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                              ^
   include/linux/compiler.h:224:46: note: in expansion of macro '__same_type'
     224 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                                              ^~~~~~~~~~~
   include/linux/kernel.h:47:59: note: in expansion of macro '__must_be_array'
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:18: note: in expansion of macro 'ARRAY_SIZE'
     448 |  for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
         |                  ^~~~~~~~~~
>> include/linux/build_bug.h:16:51: error: bit-field '<anonymous>' width not an integer constant
      16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
         |                                                   ^
   include/linux/compiler.h:224:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
     224 | #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
         |                            ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:47:59: note: in expansion of macro '__must_be_array'
      47 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
         |                                                           ^~~~~~~~~~~~~~~
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:18: note: in expansion of macro 'ARRAY_SIZE'
     448 |  for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
         |                  ^~~~~~~~~~
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c:453:9: error: 'struct ingenic_drm' has no member named 'dma_hwdescs'; did you mean 'dma_hwdesc_f0'?
     453 |   priv->dma_hwdescs->palette[i] = color;
         |         ^~~~~~~~~~~
         |         dma_hwdesc_f0
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c: In function 'ingenic_drm_plane_atomic_update':
>> drivers/gpu/drm/ingenic/ingenic-drm-drv.c:467:3: error: 'crtc_state' undeclared (first use in this function); did you mean 'ctx_state'?
     467 |   crtc_state = state->crtc->state;
         |   ^~~~~~~~~~
         |   ctx_state
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c:467:3: note: each undeclared identifier is reported only once for each function it appears in
   At top level:
   drivers/gpu/drm/ingenic/ingenic-drm-drv.c:443:13: warning: 'ingenic_drm_update_palette' defined but not used [-Wunused-function]
     443 | static void ingenic_drm_update_palette(struct ingenic_drm *priv,
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~

vim +448 drivers/gpu/drm/ingenic/ingenic-drm-drv.c

   442	
   443	static void ingenic_drm_update_palette(struct ingenic_drm *priv,
   444					       const struct drm_color_lut *lut)
   445	{
   446		unsigned int i;
   447	
 > 448		for (i = 0; i < ARRAY_SIZE(priv->dma_hwdescs->palette); i++) {
   449			u16 color = drm_color_lut_extract(lut[i].red, 5) << 11
   450				| drm_color_lut_extract(lut[i].green, 6) << 5
   451				| drm_color_lut_extract(lut[i].blue, 5);
   452	
   453			priv->dma_hwdescs->palette[i] = color;
   454		}
   455	}
   456	
   457	static void ingenic_drm_plane_atomic_update(struct drm_plane *plane,
   458						    struct drm_plane_state *oldstate)
   459	{
   460		struct ingenic_drm *priv = drm_device_get_priv(plane->dev);
   461		struct drm_plane_state *state = plane->state;
   462		struct ingenic_dma_hwdesc *hwdesc;
   463		unsigned int width, height, cpp;
   464		dma_addr_t addr;
   465	
   466		if (state && state->fb) {
 > 467			crtc_state = state->crtc->state;
   468	
   469			addr = drm_fb_cma_get_gem_addr(state->fb, state, 0);
   470			width = state->src_w >> 16;
   471			height = state->src_h >> 16;
   472			cpp = state->fb->format->cpp[0];
   473	
   474			if (priv->soc_info->has_osd && plane->type == DRM_PLANE_TYPE_OVERLAY)
   475				hwdesc = priv->dma_hwdesc_f0;
   476			else
   477				hwdesc = priv->dma_hwdesc_f1;
   478	
   479			hwdesc->addr = addr;
   480			hwdesc->cmd = JZ_LCD_CMD_EOF_IRQ | (width * height * cpp / 4);
   481	
   482			if (drm_atomic_crtc_needs_modeset(state->crtc->state))
   483				ingenic_drm_plane_config(priv->dev, plane,
   484							 state->fb->format->format);
   485		}
   486	}
   487	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2020-10-07 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07 22:58 [drm-drm-misc:for-linux-next 1/1] drivers/gpu/drm/ingenic/ingenic-drm-drv.c:448:35: error: 'struct ingenic_drm' has no member named 'dma_hwdescs'; did you mean kernel 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.