Hi Rob,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-tip/drm-tip next-20261022]
[cannot apply to 
linux-review/Rob-Clark/drm-msm-Import-adreno_snapshot-h/20261020-134615 
drm-misc/drm-misc-next daeinki-drm-exynos/exynos-drm-next 
drm-i915/for-linux-next drm-i915/for-linux-next-fixes linus/master v7.3]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Rob-Clark/drm-msm-Import-adreno_snapshot-h/20261021-134126
base:   https://gitlab.freedesktop.org/drm/kernel.git drm-next
patch link:    
https://lore.kernel.org/r/20261021204244.67160-12-robin.clark%40oss.qualcomm.com
patch subject: [PATCH v2 11/14] drm/msm/a8xx: devcoredump state capture support
config: arm-allyesconfig 
(https://download.01.org/0day-ci/archive/20261024/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20261024/[email protected]/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 <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:33: note: in expansion of 
macro 'GENMASK'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                                 ^~~~~~~
   include/linux/bits.h:49:27: warning: right shift count >= width of type 
[-Wshift-count-overflow]
      49 |               type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
         |                           ^~
   include/linux/compiler_types.h:682:23: note: in definition of macro 
'__compiletime_assert'
     682 |                 if (!(condition))                                    
   \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:702:9: note: in expansion of macro 
'_compiletime_assert'
     702 |         _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:40:37: note: in expansion of macro 
'compiletime_assert'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:51:9: note: in expansion of macro 
'BUILD_BUG_ON_MSG'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " 
#condition)
         |         ^~~~~~~~~~~~~~~~
   include/linux/build_bug.h:21:9: note: in expansion of macro 'BUILD_BUG_ON'
      21 |         BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
         |         ^~~~~~~~~~~~
   include/linux/bitfield.h:74:17: note: in expansion of macro 
'__BUILD_BUG_ON_NOT_POWER_OF_2'
      74 |                 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) +              
   \
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:91:17: note: in expansion of macro 
'__BF_FIELD_CHECK_MASK'
      91 |                 __BF_FIELD_CHECK_MASK(mask, val, pfx);               
   \
         |                 ^~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:138:17: note: in expansion of macro '__FIELD_PREP'
     138 |                 __FIELD_PREP(_mask, _val, "FIELD_PREP: ");           
   \
         |                 ^~~~~~~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:22: note: in expansion of 
macro 'FIELD_PREP'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                      ^~~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:33: note: in expansion of 
macro 'GENMASK'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                                 ^~~~~~~
   include/linux/bits.h:48:27: warning: left shift count >= width of type 
[-Wshift-count-overflow]
      48 |              (type_max(t) << (l) &                              \
         |                           ^~
   include/linux/bitfield.h:92:50: note: in definition of macro '__FIELD_PREP'
      92 |                 ((typeof(mask))(val) << __bf_shf(mask)) & (mask);    
   \
         |                                                  ^~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:22: note: in expansion of 
macro 'FIELD_PREP'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                      ^~~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:33: note: in expansion of 
macro 'GENMASK'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                                 ^~~~~~~
   include/linux/bits.h:49:27: warning: right shift count >= width of type 
[-Wshift-count-overflow]
      49 |               type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
         |                           ^~
   include/linux/bitfield.h:92:50: note: in definition of macro '__FIELD_PREP'
      92 |                 ((typeof(mask))(val) << __bf_shf(mask)) & (mask);    
   \
         |                                                  ^~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:22: note: in expansion of 
macro 'FIELD_PREP'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                      ^~~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:33: note: in expansion of 
macro 'GENMASK'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                                 ^~~~~~~
   include/linux/bits.h:48:27: warning: left shift count >= width of type 
[-Wshift-count-overflow]
      48 |              (type_max(t) << (l) &                              \
         |                           ^~
   include/linux/bitfield.h:92:60: note: in definition of macro '__FIELD_PREP'
      92 |                 ((typeof(mask))(val) << __bf_shf(mask)) & (mask);    
   \
         |                                                            ^~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:22: note: in expansion of 
macro 'FIELD_PREP'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                      ^~~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:33: note: in expansion of 
macro 'GENMASK'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                                 ^~~~~~~
   include/linux/bits.h:49:27: warning: right shift count >= width of type 
[-Wshift-count-overflow]
      49 |               type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
         |                           ^~
   include/linux/bitfield.h:92:60: note: in definition of macro '__FIELD_PREP'
      92 |                 ((typeof(mask))(val) << __bf_shf(mask)) & (mask);    
   \
         |                                                            ^~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:22: note: in expansion of 
macro 'FIELD_PREP'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                      ^~~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:510:33: note: in expansion of 
macro 'GENMASK'
     510 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | dwords;
         |                                 ^~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h: In function 'CD_WRITE':
>> include/linux/compiler_types.h:702:45: error: call to 
>> '__compiletime_assert_635' declared with attribute error: FIELD_PREP: mask 
>> is not constant
     702 |         _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:683:25: note: in definition of macro 
'__compiletime_assert'
     683 |                         prefix ## suffix();                          
   \
         |                         ^~~~~~
   include/linux/compiler_types.h:702:9: note: in expansion of macro 
'_compiletime_assert'
     702 |         _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:40:37: note: in expansion of macro 
'compiletime_assert'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:67:17: note: in expansion of macro 
'BUILD_BUG_ON_MSG'
      67 |                 BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask),       
   \
         |                 ^~~~~~~~~~~~~~~~
   include/linux/bitfield.h:91:17: note: in expansion of macro 
'__BF_FIELD_CHECK_MASK'
      91 |                 __BF_FIELD_CHECK_MASK(mask, val, pfx);               
   \
         |                 ^~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:138:17: note: in expansion of macro '__FIELD_PREP'
     138 |                 __FIELD_PREP(_mask, _val, "FIELD_PREP: ");           
   \
         |                 ^~~~~~~~~~~~
   drivers/gpu/drm/msm/adreno/adreno_snapshot.h:503:22: note: in expansion of 
macro 'FIELD_PREP'
     503 |         *(p->in++) = FIELD_PREP(GENMASK(63, 44), reg) | BIT(21) | 
BIT(0);
         |                      ^~~~~~~~~~


vim +/__compiletime_assert_635 +702 include/linux/compiler_types.h

eb5c2d4b45e3d2 Will Deacon 2020-07-21  688  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  689  #define 
_compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21  690      __compiletime_assert(condition, 
msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  691  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  692  /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21  693   * compiletime_assert - break build 
and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  694   * @condition: a compile-time 
constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21  695   * @msg:       a message to emit if 
condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  696   *
eb5c2d4b45e3d2 Will Deacon 2020-07-21  697   * In tradition of POSIX assert, 
this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  698   * supplied condition is *false*, 
emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  699   * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21  700   */
eb5c2d4b45e3d2 Will Deacon 2020-07-21  701  #define 
compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @702      _compiletime_assert(condition, 
msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  703  

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

Reply via email to