linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build failure after merge of the scmi tree
@ 2022-07-01  0:36 Stephen Rothwell
  2022-07-01  8:13 ` Sudeep Holla
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2022-07-01  0:36 UTC (permalink / raw)
  To: Sudeep Holla
  Cc: Cristian Marussi, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the scmi tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

In file included from <command-line>:
drivers/firmware/arm_scmi/powercap.c: In function 'scmi_powercap_measurements_threshold_set':
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:65:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   65 |                 BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask),          \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:65:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   65 |                 BUILD_BUG_ON_MSG(!__builtin_constant_p(_mask),          \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   68 |                 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ?           \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   68 |                 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ?           \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   68 |                 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ?           \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:69:47: note: in expansion of macro '__bf_shf'
   69 |                                  ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
      |                                               ^~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   68 |                 BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ?           \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:69:47: note: in expansion of macro '__bf_shf'
   69 |                                  ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \
      |                                               ^~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:71:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   71 |                 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) >     \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:71:34: note: in expansion of macro '__bf_cast_unsigned'
   71 |                 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) >     \
      |                                  ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:71:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
   71 |                 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) >     \
      |                 ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:71:34: note: in expansion of macro '__bf_cast_unsigned'
   71 |                 BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) >     \
      |                                  ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:75:56: note: in expansion of macro '__bf_shf'
   75 |                                               (1ULL << __bf_shf(_mask))); \
      |                                                        ^~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:75:56: note: in expansion of macro '__bf_shf'
   75 |                                               (1ULL << __bf_shf(_mask))); \
      |                                                        ^~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:75:56: note: in expansion of macro '__bf_shf'
   75 |                                               (1ULL << __bf_shf(_mask))); \
      |                                                        ^~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/compiler_types.h:332:23: note: in definition of macro '__compiletime_assert'
  332 |                 if (!(condition))                                       \
      |                       ^~~~~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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: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:75:56: note: in expansion of macro '__bf_shf'
   75 |                                               (1ULL << __bf_shf(_mask))); \
      |                                                        ^~~~~~~~
include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
In file included from drivers/firmware/arm_scmi/powercap.c:10:
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/bitfield.h:45:38: note: in definition of macro '__bf_shf'
   45 | #define __bf_shf(x) (__builtin_ffsll(x) - 1)
      |                                      ^
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 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/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:35:29: warning: left shift count >= width of type [-Wshift-count-overflow]
   35 |         (((~UL(0)) - (UL(1) << (l)) + 1) & \
      |                             ^~
include/linux/bitfield.h:115:63: note: in definition of macro 'FIELD_PREP'
  115 |                 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask);   \
      |                                                               ^~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
include/linux/bits.h:36:18: warning: right shift count is negative [-Wshift-count-negative]
   36 |          (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
      |                  ^~
include/linux/bitfield.h:115:63: note: in definition of macro 'FIELD_PREP'
  115 |                 ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask);   \
      |                                                               ^~~~~
include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK'
   38 |         (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
      |                                      ^~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:29: note: in expansion of macro 'GENMASK'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                             ^~~~~~~
In file included from <command-line>:
include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_210' declared with attribute error: FIELD_PREP: mask is zero
  352 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
      |                                             ^
include/linux/compiler_types.h:333:25: note: in definition of macro '__compiletime_assert'
  333 |                         prefix ## suffix();                             \
      |                         ^~~~~~
include/linux/compiler_types.h:352:9: note: in expansion of macro '_compiletime_assert'
  352 |         _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:114:17: note: in expansion of macro '__BF_FIELD_CHECK'
  114 |                 __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: ");    \
      |                 ^~~~~~~~~~~~~~~~
drivers/firmware/arm_scmi/powercap.c:556:18: note: in expansion of macro 'FIELD_PREP'
  556 |                  FIELD_PREP(GENMASK(63, 32), power_thresh_high));
      |                  ^~~~~~~~~~

Caused by commit

  14e527571502 ("firmware: arm_scmi: Add SCMIv3.1 Powercap protocol basic support")

I have used the scmi tree from next-20220630 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-next: build failure after merge of the scmi tree
  2022-07-01  0:36 linux-next: build failure after merge of the scmi tree Stephen Rothwell
@ 2022-07-01  8:13 ` Sudeep Holla
  0 siblings, 0 replies; 9+ messages in thread
From: Sudeep Holla @ 2022-07-01  8:13 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Cristian Marussi, Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Jul 01, 2022 at 10:36:34AM +1000, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the scmi tree, today's linux-next build (arm
> multi_v7_defconfig) failed like this:

Sorry for that I will fix it before the -next integration happens.

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-next: build failure after merge of the scmi tree
  2023-11-30 21:59 Stephen Rothwell
@ 2023-11-30 22:01 ` Sudeep Holla
  0 siblings, 0 replies; 9+ messages in thread
From: Sudeep Holla @ 2023-11-30 22:01 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Linux Kernel Mailing List, Sudeep Holla, Linux Next Mailing List

On Fri, Dec 01, 2023 at 08:59:14AM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the scmi tree, today's linux-next build (arm
> multi_v7_defconfig) failed like this:
> 
> arm-linux-gnueabi-ld: drivers/firmware/arm_scmi/perf.o: in function `scmi_dvfs_freq_set':
> perf.c:(.text+0xc8c): undefined reference to `__aeabi_uldivmod'
> 
> Caused by commit
> 
>   eb55fbef8913 ("firmware: arm_scmi: Fix possible frequency truncation when using level indexing mode")
> 
> I have used the scmi tree from next-20231130 for today.

Thanks for the report, I will fix it ASAP.


-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 9+ messages in thread

* linux-next: build failure after merge of the scmi tree
@ 2023-11-30 21:59 Stephen Rothwell
  2023-11-30 22:01 ` Sudeep Holla
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2023-11-30 21:59 UTC (permalink / raw)
  To: Sudeep Holla; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the scmi tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

arm-linux-gnueabi-ld: drivers/firmware/arm_scmi/perf.o: in function `scmi_dvfs_freq_set':
perf.c:(.text+0xc8c): undefined reference to `__aeabi_uldivmod'

Caused by commit

  eb55fbef8913 ("firmware: arm_scmi: Fix possible frequency truncation when using level indexing mode")

I have used the scmi tree from next-20231130 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-next: build failure after merge of the scmi tree
  2023-10-05 23:39 Stephen Rothwell
@ 2023-10-06  6:50 ` Sudeep Holla
  0 siblings, 0 replies; 9+ messages in thread
From: Sudeep Holla @ 2023-10-06  6:50 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

On Fri, Oct 06, 2023 at 10:39:29AM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the scmi tree, today's linux-next build (arm
> multi_v7_defconfig) failed like this:
> 
> In file included from drivers/tee/optee/ffa_abi.c:8:
> include/linux/arm_ffa.h: In function 'ffa_mem_desc_offset':
> include/linux/arm_ffa.h:105:10: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
>   105 |         (FIELD_PREP(FFA_MAJOR_VERSION_MASK, (major)) |          \
>       |          ^~~~~~~~~~
> include/linux/arm_ffa.h:107:33: note: in expansion of macro 'FFA_PACK_VERSION_INFO'
>   107 | #define FFA_VERSION_1_0         FFA_PACK_VERSION_INFO(1, 0)
>       |                                 ^~~~~~~~~~~~~~~~~~~~~
> include/linux/arm_ffa.h:368:28: note: in expansion of macro 'FFA_VERSION_1_0'
>   368 |         if (ffa_version <= FFA_VERSION_1_0)
>       |                            ^~~~~~~~~~~~~~~
> 
> Exposed by commit
> 
>   0624de756f75 ("firmware: arm_ffa: Update memory descriptor to support v1.1 format")
> 
> This has been possible for a while, and arm_ffa.h needs to include
> linus/bitfoeld.h ...
>

Indeed.

> I have used the scmi tree from next-20231005 for today.
>

Thanks for the report, will fix it up.

> -- 
> Cheers,
> Stephen Rothwell



-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 9+ messages in thread

* linux-next: build failure after merge of the scmi tree
@ 2023-10-05 23:39 Stephen Rothwell
  2023-10-06  6:50 ` Sudeep Holla
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2023-10-05 23:39 UTC (permalink / raw)
  To: Sudeep Holla; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the scmi tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:

In file included from drivers/tee/optee/ffa_abi.c:8:
include/linux/arm_ffa.h: In function 'ffa_mem_desc_offset':
include/linux/arm_ffa.h:105:10: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
  105 |         (FIELD_PREP(FFA_MAJOR_VERSION_MASK, (major)) |          \
      |          ^~~~~~~~~~
include/linux/arm_ffa.h:107:33: note: in expansion of macro 'FFA_PACK_VERSION_INFO'
  107 | #define FFA_VERSION_1_0         FFA_PACK_VERSION_INFO(1, 0)
      |                                 ^~~~~~~~~~~~~~~~~~~~~
include/linux/arm_ffa.h:368:28: note: in expansion of macro 'FFA_VERSION_1_0'
  368 |         if (ffa_version <= FFA_VERSION_1_0)
      |                            ^~~~~~~~~~~~~~~

Exposed by commit

  0624de756f75 ("firmware: arm_ffa: Update memory descriptor to support v1.1 format")

This has been possible for a while, and arm_ffa.h needs to include
linus/bitfoeld.h ...

I have used the scmi tree from next-20231005 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: linux-next: build failure after merge of the scmi tree
  2022-11-08 22:29 Stephen Rothwell
@ 2022-11-09  8:58 ` Sudeep Holla
  0 siblings, 0 replies; 9+ messages in thread
From: Sudeep Holla @ 2022-11-09  8:58 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Cristian Marussi, Sudeep Holla, Linux Kernel Mailing List,
	Linux Next Mailing List

Hi Stephen,

On Wed, Nov 09, 2022 at 09:29:01AM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the scmi tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
> 
> ERROR: modpost: "debugfs_create_str" [drivers/firmware/arm_scmi/scmi-module.ko] undefined!
> 
> Caused by commit
> 
>   4ccdc880f1bb ("firmware: arm_scmi: Add core Raw transmission support")
> 
> I have used the scmi tree from next-20221108 for today.
> 

Sorry for that, and thanks for identifying and dropping it in -next.
I will drop the changes until we have fixed it.

-- 
Regards,
Sudeep

^ permalink raw reply	[flat|nested] 9+ messages in thread

* linux-next: build failure after merge of the scmi tree
@ 2022-11-08 22:29 Stephen Rothwell
  2022-11-09  8:58 ` Sudeep Holla
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Rothwell @ 2022-11-08 22:29 UTC (permalink / raw)
  To: Sudeep Holla
  Cc: Cristian Marussi, Linux Kernel Mailing List, Linux Next Mailing List

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

Hi all,

After merging the scmi tree, today's linux-next build (x86_64
allmodconfig) failed like this:

ERROR: modpost: "debugfs_create_str" [drivers/firmware/arm_scmi/scmi-module.ko] undefined!

Caused by commit

  4ccdc880f1bb ("firmware: arm_scmi: Add core Raw transmission support")

I have used the scmi tree from next-20221108 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* linux-next: build failure after merge of the scmi tree
@ 2020-07-08 23:58 Stephen Rothwell
  0 siblings, 0 replies; 9+ messages in thread
From: Stephen Rothwell @ 2020-07-08 23:58 UTC (permalink / raw)
  To: Sudeep Holla; +Cc: Linux Next Mailing List, Linux Kernel Mailing List

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

Hi all,

After merging the scmi tree, today's linux-next build (x86_64
allmodconfig) failed like this:

drivers/clk/clk-scmi.c: In function 'scmi_clk_ops_init':
drivers/clk/clk-scmi.c:126:39: error: expected ';' before 'max_rate'
  126 |   min_rate = sclk->info->list.rates[0]
      |                                       ^
      |                                       ;
  127 |   max_rate = sclk->info->list.rates[num_rates - 1];
      |   ~~~~~~~~                             

Caused by commit

  2a3dd29cd558 ("clk: scmi: Fix min and max rate when registering clocks with discrete rates")

I have used the scmi tree from next-20200708 for today.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-11-30 22:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01  0:36 linux-next: build failure after merge of the scmi tree Stephen Rothwell
2022-07-01  8:13 ` Sudeep Holla
  -- strict thread matches above, loose matches on Subject: below --
2023-11-30 21:59 Stephen Rothwell
2023-11-30 22:01 ` Sudeep Holla
2023-10-05 23:39 Stephen Rothwell
2023-10-06  6:50 ` Sudeep Holla
2022-11-08 22:29 Stephen Rothwell
2022-11-09  8:58 ` Sudeep Holla
2020-07-08 23:58 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).