Hi Manikanta,

kernel test robot noticed the following build errors:

[auto build test ERROR on robh/for-next]
[also build test ERROR on linus/master v6.17-rc4 next-20250905]
[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/Manikanta-Guntupalli/dt-bindings-i3c-Add-AMD-I3C-master-controller-support/20250905-193904
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    
https://lore.kernel.org/r/20250905113740.3841181-3-manikanta.guntupalli%40amd.com
patch subject: [PATCH V4 2/2] i3c: master: Add AMD I3C bus controller driver
config: m68k-allmodconfig 
(https://download.01.org/0day-ci/archive/20250907/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20250907/[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 >>):

         |         ^~~~~~~~~~~~~~~~
   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:75:17: note: in expansion of macro 
'__BUILD_BUG_ON_NOT_POWER_OF_2'
      75 |                 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) +              
   \
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:155:17: note: in expansion of macro 
'__BF_FIELD_CHECK'
     155 |                 __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: ");    
   \
         |                 ^~~~~~~~~~~~~~~~
   drivers/i3c/master/amd-i3c-master.c:593:34: note: in expansion of macro 
'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~
   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/i3c/master/amd-i3c-master.c:54:49: note: in expansion of macro 
'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   drivers/i3c/master/amd-i3c-master.c:593:44: note: in expansion of macro 
'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   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:552:23: note: in definition of macro 
'__compiletime_assert'
     552 |                 if (!(condition))                                    
   \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:572:9: note: in expansion of macro 
'_compiletime_assert'
     572 |         _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/build_bug.h:50:9: note: in expansion of macro 
'BUILD_BUG_ON_MSG'
      50 |         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:75:17: note: in expansion of macro 
'__BUILD_BUG_ON_NOT_POWER_OF_2'
      75 |                 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) +              
   \
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:76:56: note: in expansion of macro '__bf_shf'
      76 |                                               (1ULL << 
__bf_shf(_mask))); \
         |                                                        ^~~~~~~~
   include/linux/bitfield.h:155:17: note: in expansion of macro 
'__BF_FIELD_CHECK'
     155 |                 __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: ");    
   \
         |                 ^~~~~~~~~~~~~~~~
   drivers/i3c/master/amd-i3c-master.c:593:34: note: in expansion of macro 
'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~
   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/i3c/master/amd-i3c-master.c:54:49: note: in expansion of macro 
'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   drivers/i3c/master/amd-i3c-master.c:593:44: note: in expansion of macro 
'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   In file included from drivers/i3c/master/amd-i3c-master.c:8:
   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:156:44: note: in definition of macro 'FIELD_GET'
     156 |                 (typeof(_mask))(((_reg) & (_mask)) >> 
__bf_shf(_mask)); \
         |                                            ^~~~~
   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/i3c/master/amd-i3c-master.c:54:49: note: in expansion of macro 
'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   drivers/i3c/master/amd-i3c-master.c:593:44: note: in expansion of macro 
'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   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:45:38: note: in definition of macro '__bf_shf'
      45 | #define __bf_shf(x) (__builtin_ffsll(x) - 1)
         |                                      ^
   drivers/i3c/master/amd-i3c-master.c:593:34: note: in expansion of macro 
'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~
   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/i3c/master/amd-i3c-master.c:54:49: note: in expansion of macro 
'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   drivers/i3c/master/amd-i3c-master.c:593:44: note: in expansion of macro 
'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   drivers/i3c/master/amd-i3c-master.c: In function 'xi3c_master_bus_init':
   drivers/i3c/master/amd-i3c-master.c:926:62: warning: left shift count >= 
width of type [-Wshift-count-overflow]
     926 |         info.pid = ((FIELD_GET(XI3C_PID1_MASK, pid1_bcr_dcr) << 32) |
         |                                                              ^~
   drivers/i3c/master/amd-i3c-master.c: In function 'xi3c_master_do_daa':
>> include/linux/compiler_types.h:572:45: error: call to 
>> '__compiletime_assert_400' declared with attribute error: FIELD_GET: mask is 
>> zero
     572 |         _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:553:25: note: in definition of macro 
'__compiletime_assert'
     553 |                         prefix ## suffix();                          
   \
         |                         ^~~~~~
   include/linux/compiler_types.h:572:9: note: in expansion of macro 
'_compiletime_assert'
     572 |         _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/bitfield.h:67:17: note: in expansion of macro 
'BUILD_BUG_ON_MSG'
      67 |                 BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); 
   \
         |                 ^~~~~~~~~~~~~~~~
   include/linux/bitfield.h:155:17: note: in expansion of macro 
'__BF_FIELD_CHECK'
     155 |                 __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: ");    
   \
         |                 ^~~~~~~~~~~~~~~~
   drivers/i3c/master/amd-i3c-master.c:593:34: note: in expansion of macro 
'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~
--
         |         ^~~~~~~~~~~~~~~~
   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:75:17: note: in expansion of macro 
'__BUILD_BUG_ON_NOT_POWER_OF_2'
      75 |                 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) +              
   \
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:155:17: note: in expansion of macro 
'__BF_FIELD_CHECK'
     155 |                 __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: ");    
   \
         |                 ^~~~~~~~~~~~~~~~
   amd-i3c-master.c:593:34: note: in expansion of macro 'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   amd-i3c-master.c:54:49: note: in expansion of macro 'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   amd-i3c-master.c:593:44: note: in expansion of macro 'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   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:552:23: note: in definition of macro 
'__compiletime_assert'
     552 |                 if (!(condition))                                    
   \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:572:9: note: in expansion of macro 
'_compiletime_assert'
     572 |         _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/build_bug.h:50:9: note: in expansion of macro 
'BUILD_BUG_ON_MSG'
      50 |         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:75:17: note: in expansion of macro 
'__BUILD_BUG_ON_NOT_POWER_OF_2'
      75 |                 __BUILD_BUG_ON_NOT_POWER_OF_2((_mask) +              
   \
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/bitfield.h:76:56: note: in expansion of macro '__bf_shf'
      76 |                                               (1ULL << 
__bf_shf(_mask))); \
         |                                                        ^~~~~~~~
   include/linux/bitfield.h:155:17: note: in expansion of macro 
'__BF_FIELD_CHECK'
     155 |                 __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: ");    
   \
         |                 ^~~~~~~~~~~~~~~~
   amd-i3c-master.c:593:34: note: in expansion of macro 'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   amd-i3c-master.c:54:49: note: in expansion of macro 'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   amd-i3c-master.c:593:44: note: in expansion of macro 'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   In file included from amd-i3c-master.c:8:
   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:156:44: note: in definition of macro 'FIELD_GET'
     156 |                 (typeof(_mask))(((_reg) & (_mask)) >> 
__bf_shf(_mask)); \
         |                                            ^~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   amd-i3c-master.c:54:49: note: in expansion of macro 'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   amd-i3c-master.c:593:44: note: in expansion of macro 'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   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:45:38: note: in definition of macro '__bf_shf'
      45 | #define __bf_shf(x) (__builtin_ffsll(x) - 1)
         |                                      ^
   amd-i3c-master.c:593:34: note: in expansion of macro 'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~
   include/linux/bits.h:51:33: note: in expansion of macro 'GENMASK_TYPE'
      51 | #define GENMASK(h, l)           GENMASK_TYPE(unsigned long, h, l)
         |                                 ^~~~~~~~~~~~
   amd-i3c-master.c:54:49: note: in expansion of macro 'GENMASK'
      54 | #define XI3C_PID_MASK                           GENMASK(63, 16)
         |                                                 ^~~~~~~
   amd-i3c-master.c:593:44: note: in expansion of macro 'XI3C_PID_MASK'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                            ^~~~~~~~~~~~~
   amd-i3c-master.c: In function 'xi3c_master_bus_init':
   amd-i3c-master.c:926:62: warning: left shift count >= width of type 
[-Wshift-count-overflow]
     926 |         info.pid = ((FIELD_GET(XI3C_PID1_MASK, pid1_bcr_dcr) << 32) |
         |                                                              ^~
   amd-i3c-master.c: In function 'xi3c_master_do_daa':
>> include/linux/compiler_types.h:572:45: error: call to 
>> '__compiletime_assert_400' declared with attribute error: FIELD_GET: mask is 
>> zero
     572 |         _compiletime_assert(condition, msg, __compiletime_assert_, 
__COUNTER__)
         |                                             ^
   include/linux/compiler_types.h:553:25: note: in definition of macro 
'__compiletime_assert'
     553 |                         prefix ## suffix();                          
   \
         |                         ^~~~~~
   include/linux/compiler_types.h:572:9: note: in expansion of macro 
'_compiletime_assert'
     572 |         _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/bitfield.h:67:17: note: in expansion of macro 
'BUILD_BUG_ON_MSG'
      67 |                 BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); 
   \
         |                 ^~~~~~~~~~~~~~~~
   include/linux/bitfield.h:155:17: note: in expansion of macro 
'__BF_FIELD_CHECK'
     155 |                 __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: ");    
   \
         |                 ^~~~~~~~~~~~~~~~
   amd-i3c-master.c:593:34: note: in expansion of macro 'FIELD_GET'
     593 |                 pid_bcr_dcr[i] = FIELD_GET(XI3C_PID_MASK,
         |                                  ^~~~~~~~~


vim +/__compiletime_assert_400 +572 include/linux/compiler_types.h

eb5c2d4b45e3d2 Will Deacon 2020-07-21  558  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  559  #define 
_compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21  560      __compiletime_assert(condition, 
msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  561  
eb5c2d4b45e3d2 Will Deacon 2020-07-21  562  /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21  563   * compiletime_assert - break build 
and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  564   * @condition: a compile-time 
constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21  565   * @msg:       a message to emit if 
condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21  566   *
eb5c2d4b45e3d2 Will Deacon 2020-07-21  567   * In tradition of POSIX assert, 
this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  568   * supplied condition is *false*, 
emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21  569   * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21  570   */
eb5c2d4b45e3d2 Will Deacon 2020-07-21  571  #define 
compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @572      _compiletime_assert(condition, 
msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21  573  

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

Reply via email to