mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Matt Coster <matt.coster@imgtec.com>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Frank Binns <frank.binns@imgtec.com>,
	Brajesh Gupta <brajesh.gupta@imgtec.com>,
	Alessio Belle <alessio.belle@imgtec.com>,
	Alexandru Dadu <alexandru.dadu@imgtec.com>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	Matt Coster <matt.coster@imgtec.com>
Subject: Re: [PATCH 1/2] drm/imagination: Define packed BVNCs in the uapi
Date: Sat, 7 Feb 2026 05:58:31 +0800	[thread overview]
Message-ID: <202602070500.zo0DrH6U-lkp@intel.com> (raw)
In-Reply-To: <20260206-bvnc-cleanup-v1-1-f3c818541fbe@imgtec.com>

Hi Matt,

kernel test robot noticed the following build errors:

[auto build test ERROR on 55473b60178060a4fdb4631bd0c91879cc7d18d8]

url:    https://github.com/intel-lab-lkp/linux/commits/Matt-Coster/drm-imagination-Define-packed-BVNCs-in-the-uapi/20260206-175844
base:   55473b60178060a4fdb4631bd0c91879cc7d18d8
patch link:    https://lore.kernel.org/r/20260206-bvnc-cleanup-v1-1-f3c818541fbe%40imgtec.com
patch subject: [PATCH 1/2] drm/imagination: Define packed BVNCs in the uapi
config: riscv-randconfig-001-20260206 (https://download.01.org/0day-ci/archive/20260207/202602070500.zo0DrH6U-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260207/202602070500.zo0DrH6U-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602070500.zo0DrH6U-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/imagination/pvr_device.c:550:7: error: expression is not an integer constant expression
     550 |         case PVR_PACKED_BVNC(33, 15, 11, 3):
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_device.h:490:2: note: expanded from macro 'PVR_PACKED_BVNC'
     490 |         (FIELD_PREP(DRM_PVR_BVNC_B, b) | \
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     491 |          FIELD_PREP(DRM_PVR_BVNC_V, v) | \
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     492 |          FIELD_PREP(DRM_PVR_BVNC_N, n) | \
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     493 |          FIELD_PREP(DRM_PVR_BVNC_C, c))
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_device.c:550:7: note: this use of statement expressions is not supported in a constant expression
   drivers/gpu/drm/imagination/pvr_device.h:490:3: note: expanded from macro 'PVR_PACKED_BVNC'
     490 |         (FIELD_PREP(DRM_PVR_BVNC_B, b) | \
         |          ^
   include/linux/bitfield.h:137:3: note: expanded from macro 'FIELD_PREP'
     137 |                 __FIELD_PREP(_mask, _val, "FIELD_PREP: ");              \
         |                 ^
   include/linux/bitfield.h:90:3: note: expanded from macro '__FIELD_PREP'
      90 |                 __BF_FIELD_CHECK_MASK(mask, val, pfx);                  \
         |                 ^
   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:631:2: note: expanded from macro 'compiletime_assert'
     631 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:619:2: note: expanded from macro '_compiletime_assert'
     619 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:603:2: note: expanded from macro '__compiletime_assert'
     603 |         do {                                                            \
         |         ^
   drivers/gpu/drm/imagination/pvr_device.c:551:7: error: expression is not an integer constant expression
     551 |         case PVR_PACKED_BVNC(36, 53, 104, 796):
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_device.h:490:2: note: expanded from macro 'PVR_PACKED_BVNC'
     490 |         (FIELD_PREP(DRM_PVR_BVNC_B, b) | \
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     491 |          FIELD_PREP(DRM_PVR_BVNC_V, v) | \
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     492 |          FIELD_PREP(DRM_PVR_BVNC_N, n) | \
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     493 |          FIELD_PREP(DRM_PVR_BVNC_C, c))
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_device.c:551:7: note: this use of statement expressions is not supported in a constant expression
   drivers/gpu/drm/imagination/pvr_device.h:490:3: note: expanded from macro 'PVR_PACKED_BVNC'
     490 |         (FIELD_PREP(DRM_PVR_BVNC_B, b) | \
         |          ^
   include/linux/bitfield.h:137:3: note: expanded from macro 'FIELD_PREP'
     137 |                 __FIELD_PREP(_mask, _val, "FIELD_PREP: ");              \
         |                 ^
   include/linux/bitfield.h:90:3: note: expanded from macro '__FIELD_PREP'
      90 |                 __BF_FIELD_CHECK_MASK(mask, val, pfx);                  \
         |                 ^
   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:631:2: note: expanded from macro 'compiletime_assert'
     631 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:619:2: note: expanded from macro '_compiletime_assert'
     619 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:603:2: note: expanded from macro '__compiletime_assert'
     603 |         do {                                                            \
         |         ^
   drivers/gpu/drm/imagination/pvr_device.c:554:7: error: expression is not an integer constant expression
     554 |         case PVR_PACKED_BVNC(36, 52, 104, 182):
         |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_device.h:490:2: note: expanded from macro 'PVR_PACKED_BVNC'
     490 |         (FIELD_PREP(DRM_PVR_BVNC_B, b) | \
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     491 |          FIELD_PREP(DRM_PVR_BVNC_V, v) | \
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     492 |          FIELD_PREP(DRM_PVR_BVNC_N, n) | \
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     493 |          FIELD_PREP(DRM_PVR_BVNC_C, c))
         |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/imagination/pvr_device.c:554:7: note: this use of statement expressions is not supported in a constant expression
   drivers/gpu/drm/imagination/pvr_device.h:490:3: note: expanded from macro 'PVR_PACKED_BVNC'
     490 |         (FIELD_PREP(DRM_PVR_BVNC_B, b) | \
         |          ^
   include/linux/bitfield.h:137:3: note: expanded from macro 'FIELD_PREP'
     137 |                 __FIELD_PREP(_mask, _val, "FIELD_PREP: ");              \
         |                 ^
   include/linux/bitfield.h:90:3: note: expanded from macro '__FIELD_PREP'
      90 |                 __BF_FIELD_CHECK_MASK(mask, val, pfx);                  \
         |                 ^
   note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_types.h:631:2: note: expanded from macro 'compiletime_assert'
     631 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^
   include/linux/compiler_types.h:619:2: note: expanded from macro '_compiletime_assert'
     619 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ^
   include/linux/compiler_types.h:603:2: note: expanded from macro '__compiletime_assert'
     603 |         do {                                                            \
         |         ^
   3 errors generated.


vim +550 drivers/gpu/drm/imagination/pvr_device.c

1c21f240fbc1e47 Matt Coster 2026-01-13  545  
1c21f240fbc1e47 Matt Coster 2026-01-13  546  static enum pvr_gpu_support_level
1c21f240fbc1e47 Matt Coster 2026-01-13  547  pvr_gpu_support_level(const struct pvr_gpu_id *gpu_id)
1c21f240fbc1e47 Matt Coster 2026-01-13  548  {
1c21f240fbc1e47 Matt Coster 2026-01-13  549  	switch (pvr_gpu_id_to_packed_bvnc(gpu_id)) {
1c21f240fbc1e47 Matt Coster 2026-01-13 @550  	case PVR_PACKED_BVNC(33, 15, 11, 3):
1c21f240fbc1e47 Matt Coster 2026-01-13  551  	case PVR_PACKED_BVNC(36, 53, 104, 796):
1c21f240fbc1e47 Matt Coster 2026-01-13  552  		return PVR_GPU_SUPPORTED;
1c21f240fbc1e47 Matt Coster 2026-01-13  553  
1c21f240fbc1e47 Matt Coster 2026-01-13  554  	case PVR_PACKED_BVNC(36, 52, 104, 182):
1c21f240fbc1e47 Matt Coster 2026-01-13  555  		return PVR_GPU_EXPERIMENTAL;
1c21f240fbc1e47 Matt Coster 2026-01-13  556  
1c21f240fbc1e47 Matt Coster 2026-01-13  557  	default:
1c21f240fbc1e47 Matt Coster 2026-01-13  558  		return PVR_GPU_UNKNOWN;
1c21f240fbc1e47 Matt Coster 2026-01-13  559  	}
1c21f240fbc1e47 Matt Coster 2026-01-13  560  }
1c21f240fbc1e47 Matt Coster 2026-01-13  561  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2026-02-06 21:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-06  9:56 [PATCH 0/2] drm/imagination: GPU_ID-related cleanups Matt Coster
2026-02-06  9:56 ` [PATCH 1/2] drm/imagination: Define packed BVNCs in the uapi Matt Coster
2026-02-06 18:57   ` kernel test robot
2026-02-06 21:58   ` kernel test robot [this message]
2026-02-06  9:56 ` [PATCH 2/2] drm/imagination: Add PVR_GPU_ID_FMT to format pvr_gpu_id Matt Coster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202602070500.zo0DrH6U-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@gmail.com \
    --cc=alessio.belle@imgtec.com \
    --cc=alexandru.dadu@imgtec.com \
    --cc=brajesh.gupta@imgtec.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=frank.binns@imgtec.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=matt.coster@imgtec.com \
    --cc=mripard@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®