Re: [PATCH v2 1/2] drm/imagination: Define packed BVNCs in the uapi
From: kernel test robot
Date: Sun Mar 22 2026 - 10:47:22 EST
Hi Matt,
kernel test robot noticed the following build errors:
[auto build test ERROR on fbef867cf6614178bc6afd15ee15f85cddf19eab]
url: https://github.com/intel-lab-lkp/linux/commits/Matt-Coster/drm-imagination-Define-packed-BVNCs-in-the-uapi/20260322-112647
base: fbef867cf6614178bc6afd15ee15f85cddf19eab
patch link: https://lore.kernel.org/r/20260320-bvnc-cleanup-v2-1-49c3c1453289%40imgtec.com
patch subject: [PATCH v2 1/2] drm/imagination: Define packed BVNCs in the uapi
config: arm64-randconfig-002-20260322 (https://download.01.org/0day-ci/archive/20260322/202603222211.A2XiR1YU-lkp@xxxxxxxxx/config)
compiler: aarch64-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603222211.A2XiR1YU-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603222211.A2XiR1YU-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:30,
from drivers/gpu/drm/imagination/pvr_rogue_fwif.h:7,
from drivers/gpu/drm/imagination/pvr_ccb.h:7,
from drivers/gpu/drm/imagination/pvr_device.h:7,
from drivers/gpu/drm/imagination/pvr_device.c:4:
drivers/gpu/drm/imagination/pvr_device.c: In function 'pvr_gpu_support_level':
>> include/linux/compiler.h:203:82: error: expression in static assertion is not constant
203 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^~~~
include/linux/build_bug.h:17:9: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
17 | __BUILD_BUG_ON_ZERO_MSG(e, ##__VA_ARGS__, #e " is true")
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:160:17: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
160 | BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.h:474:10: note: in expansion of macro 'FIELD_PREP_CONST'
474 | (prep(DRM_PVR_BVNC_B, b) | \
| ^~~~
drivers/gpu/drm/imagination/pvr_device.h:496:43: note: in expansion of macro '__PVR_PACKED_BVNC'
496 | #define PVR_PACKED_BVNC_CONST(b, v, n, c) __PVR_PACKED_BVNC(FIELD_PREP_CONST, b, v, n, c)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.c:550:14: note: in expansion of macro 'PVR_PACKED_BVNC_CONST'
550 | case PVR_PACKED_BVNC_CONST(33, 15, 11, 3):
| ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler.h:203:82: error: expression in static assertion is not constant
203 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^~~~
include/linux/build_bug.h:17:9: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
17 | __BUILD_BUG_ON_ZERO_MSG(e, ##__VA_ARGS__, #e " is true")
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:141:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
141 | #define __BF_CHECK_POW2(n) BUILD_BUG_ON_ZERO(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~~~~~~
include/linux/bitfield.h:162:17: note: in expansion of macro '__BF_CHECK_POW2'
162 | __BF_CHECK_POW2((_mask) + (1ULL << __bf_shf(_mask))) + \
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.h:474:10: note: in expansion of macro 'FIELD_PREP_CONST'
474 | (prep(DRM_PVR_BVNC_B, b) | \
| ^~~~
drivers/gpu/drm/imagination/pvr_device.h:496:43: note: in expansion of macro '__PVR_PACKED_BVNC'
496 | #define PVR_PACKED_BVNC_CONST(b, v, n, c) __PVR_PACKED_BVNC(FIELD_PREP_CONST, b, v, n, c)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.c:550:14: note: in expansion of macro 'PVR_PACKED_BVNC_CONST'
550 | case PVR_PACKED_BVNC_CONST(33, 15, 11, 3):
| ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler.h:203:82: error: expression in static assertion is not constant
203 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^~~~
include/linux/build_bug.h:17:9: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
17 | __BUILD_BUG_ON_ZERO_MSG(e, ##__VA_ARGS__, #e " is true")
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:160:17: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
160 | BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.h:474:10: note: in expansion of macro 'FIELD_PREP_CONST'
474 | (prep(DRM_PVR_BVNC_B, b) | \
| ^~~~
drivers/gpu/drm/imagination/pvr_device.h:496:43: note: in expansion of macro '__PVR_PACKED_BVNC'
496 | #define PVR_PACKED_BVNC_CONST(b, v, n, c) __PVR_PACKED_BVNC(FIELD_PREP_CONST, b, v, n, c)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.c:551:14: note: in expansion of macro 'PVR_PACKED_BVNC_CONST'
551 | case PVR_PACKED_BVNC_CONST(36, 53, 104, 796):
| ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler.h:203:82: error: expression in static assertion is not constant
203 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^~~~
include/linux/build_bug.h:17:9: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
17 | __BUILD_BUG_ON_ZERO_MSG(e, ##__VA_ARGS__, #e " is true")
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:141:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
141 | #define __BF_CHECK_POW2(n) BUILD_BUG_ON_ZERO(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~~~~~~
include/linux/bitfield.h:162:17: note: in expansion of macro '__BF_CHECK_POW2'
162 | __BF_CHECK_POW2((_mask) + (1ULL << __bf_shf(_mask))) + \
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.h:474:10: note: in expansion of macro 'FIELD_PREP_CONST'
474 | (prep(DRM_PVR_BVNC_B, b) | \
| ^~~~
drivers/gpu/drm/imagination/pvr_device.h:496:43: note: in expansion of macro '__PVR_PACKED_BVNC'
496 | #define PVR_PACKED_BVNC_CONST(b, v, n, c) __PVR_PACKED_BVNC(FIELD_PREP_CONST, b, v, n, c)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.c:551:14: note: in expansion of macro 'PVR_PACKED_BVNC_CONST'
551 | case PVR_PACKED_BVNC_CONST(36, 53, 104, 796):
| ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler.h:203:82: error: expression in static assertion is not constant
203 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^~~~
include/linux/build_bug.h:17:9: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
17 | __BUILD_BUG_ON_ZERO_MSG(e, ##__VA_ARGS__, #e " is true")
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:160:17: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
160 | BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.h:474:10: note: in expansion of macro 'FIELD_PREP_CONST'
474 | (prep(DRM_PVR_BVNC_B, b) | \
| ^~~~
drivers/gpu/drm/imagination/pvr_device.h:496:43: note: in expansion of macro '__PVR_PACKED_BVNC'
496 | #define PVR_PACKED_BVNC_CONST(b, v, n, c) __PVR_PACKED_BVNC(FIELD_PREP_CONST, b, v, n, c)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.c:554:14: note: in expansion of macro 'PVR_PACKED_BVNC_CONST'
554 | case PVR_PACKED_BVNC_CONST(36, 52, 104, 182):
| ^~~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler.h:203:82: error: expression in static assertion is not constant
203 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
| ^~~~
include/linux/build_bug.h:17:9: note: in expansion of macro '__BUILD_BUG_ON_ZERO_MSG'
17 | __BUILD_BUG_ON_ZERO_MSG(e, ##__VA_ARGS__, #e " is true")
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:141:33: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
141 | #define __BF_CHECK_POW2(n) BUILD_BUG_ON_ZERO(((n) & ((n) - 1)) != 0)
| ^~~~~~~~~~~~~~~~~
include/linux/bitfield.h:162:17: note: in expansion of macro '__BF_CHECK_POW2'
162 | __BF_CHECK_POW2((_mask) + (1ULL << __bf_shf(_mask))) + \
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.h:474:10: note: in expansion of macro 'FIELD_PREP_CONST'
474 | (prep(DRM_PVR_BVNC_B, b) | \
| ^~~~
drivers/gpu/drm/imagination/pvr_device.h:496:43: note: in expansion of macro '__PVR_PACKED_BVNC'
496 | #define PVR_PACKED_BVNC_CONST(b, v, n, c) __PVR_PACKED_BVNC(FIELD_PREP_CONST, b, v, n, c)
| ^~~~~~~~~~~~~~~~~
drivers/gpu/drm/imagination/pvr_device.c:554:14: note: in expansion of macro 'PVR_PACKED_BVNC_CONST'
554 | case PVR_PACKED_BVNC_CONST(36, 52, 104, 182):
| ^~~~~~~~~~~~~~~~~~~~~
vim +203 include/linux/compiler.h
230fa253df6352 Christian Borntraeger 2014-11-25 199
cb7380de9e4cbc Kees Cook 2025-02-05 200 #ifdef __CHECKER__
243c90e917f5cf Vincent Mailhol 2025-03-29 201 #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) (0)
cb7380de9e4cbc Kees Cook 2025-02-05 202 #else /* __CHECKER__ */
243c90e917f5cf Vincent Mailhol 2025-03-29 @203 #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
cb7380de9e4cbc Kees Cook 2025-02-05 204 #endif /* __CHECKER__ */
cb7380de9e4cbc Kees Cook 2025-02-05 205
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki