All of lore.kernel.org
 help / color / mirror / Atom feed
* [frank-w-bpi-r2-4.14:5.15-bpi-r2-pro-drm 97/102] include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_461' declared with attribute error: pointer type mismatch in container_of()
@ 2021-10-26  3:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-26  3:48 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/frank-w/BPI-R2-4.14 5.15-bpi-r2-pro-drm
head:   3e3effff535b3615ae5a40ae1c1b6d08e12bed0e
commit: c8a916abbc8c066a1f7afd66475fa4ac78352f8f [97/102] fix vop_crtc_atomic_check
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 11.2.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
        # https://github.com/frank-w/BPI-R2-4.14/commit/c8a916abbc8c066a1f7afd66475fa4ac78352f8f
        git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
        git fetch --no-tags frank-w-bpi-r2-4.14 5.15-bpi-r2-pro-drm
        git checkout c8a916abbc8c066a1f7afd66475fa4ac78352f8f
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash

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

Note: the frank-w-bpi-r2-4.14/5.15-bpi-r2-pro-drm HEAD 3e3effff535b3615ae5a40ae1c1b6d08e12bed0e builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:3436:25: error: initialization of 'void (*)(struct drm_crtc *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_crtc *, struct drm_crtc_state *)' [-Werror=incompatible-pointer-types]
    3436 |         .atomic_flush = vop_crtc_atomic_flush,
         |                         ^~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:3436:25: note: (near initialization for 'vop_crtc_helper_funcs.atomic_flush')
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:3437:26: error: initialization of 'void (*)(struct drm_crtc *, struct drm_atomic_state *)' from incompatible pointer type 'void (*)(struct drm_crtc *, struct drm_crtc_state *)' [-Werror=incompatible-pointer-types]
    3437 |         .atomic_enable = vop_crtc_atomic_enable,
         |                          ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:3437:26: note: (near initialization for 'vop_crtc_helper_funcs.atomic_enable')
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:306:46: error: 'drm_bus_format_enum_list' defined but not used [-Werror=unused-const-variable=]
     306 | static const struct drm_bus_format_enum_list drm_bus_format_enum_list[] = {
         |                                              ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from <command-line>:
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c: In function 'vop_plane_atomic_check':
>> include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_461' declared with attribute error: pointer type mismatch in container_of()
     322 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert'
     303 |                         prefix ## suffix();                             \
         |                         ^~~~~~
   include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
     322 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:495:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     495 |         BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) &&   \
         |         ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:160:31: note: in expansion of macro 'container_of'
     160 | #define to_vop_plane_state(x) container_of(x, struct vop_plane_state, base)
         |                               ^~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1590:51: note: in expansion of macro 'to_vop_plane_state'
    1590 |         struct vop_plane_state *vop_plane_state = to_vop_plane_state(state);
         |                                                   ^~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c: In function 'vop_plane_atomic_update':
   include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_470' declared with attribute error: pointer type mismatch in container_of()
     322 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:303:25: note: in definition of macro '__compiletime_assert'
     303 |                         prefix ## suffix();                             \
         |                         ^~~~~~
   include/linux/compiler_types.h:322:9: note: in expansion of macro '_compiletime_assert'
     322 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:495:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
     495 |         BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) &&   \
         |         ^~~~~~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:160:31: note: in expansion of macro 'container_of'
     160 | #define to_vop_plane_state(x) container_of(x, struct vop_plane_state, base)
         |                               ^~~~~~~~~~~~
   drivers/gpu/drm/rockchip/rockchip_drm_vop.c:1766:51: note: in expansion of macro 'to_vop_plane_state'
    1766 |         struct vop_plane_state *vop_plane_state = to_vop_plane_state(state);
         |                                                   ^~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +/__compiletime_assert_461 +322 include/linux/compiler_types.h

eb5c2d4b45e3d2 Will Deacon 2020-07-21  308  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  309  #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21  310  	__compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  311  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  312  /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21  313   * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  314   * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21  315   * @msg:       a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  316   *
eb5c2d4b45e3d2 Will Deacon 2020-07-21  317   * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  318   * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  319   * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21  320   */
eb5c2d4b45e3d2 Will Deacon 2020-07-21  321  #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @322  	_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  323  

:::::: The code at line 322 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h

:::::: TO: Will Deacon <will@kernel.org>
:::::: CC: Will Deacon <will@kernel.org>

---
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: 68948 bytes --]

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

only message in thread, other threads:[~2021-10-26  3:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26  3:48 [frank-w-bpi-r2-4.14:5.15-bpi-r2-pro-drm 97/102] include/linux/compiler_types.h:322:45: error: call to '__compiletime_assert_461' declared with attribute error: pointer type mismatch in container_of() 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.