* Re: [PATCH] perf/cxlpmu: Support Channel/Rank/Bank filter
2026-06-11 1:04 [PATCH] perf/cxlpmu: Support Channel/Rank/Bank filter Davidlohr Bueso
2026-06-11 1:14 ` sashiko-bot
@ 2026-06-11 10:07 ` kernel test robot
2026-06-11 10:19 ` kernel test robot
2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2026-06-11 10:07 UTC (permalink / raw)
To: Davidlohr Bueso, jic23, will, mark.rutland
Cc: llvm, oe-kbuild-all, linux-cxl, linux-perf-users, Harshal Thakkar,
Davidlohr Bueso
Hi Davidlohr,
kernel test robot noticed the following build warnings:
[auto build test WARNING on arm-perf/for-next/perf]
[also build test WARNING on cxl/next linus/master v7.1-rc7 next-20260610]
[cannot apply to cxl/pending]
[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/Davidlohr-Bueso/perf-cxlpmu-Support-Channel-Rank-Bank-filter/20260611-090512
base: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-next/perf
patch link: https://lore.kernel.org/r/20260611010409.2776635-1-dave%40stgolabs.net
patch subject: [PATCH] perf/cxlpmu: Support Channel/Rank/Bank filter
config: i386-buildonly-randconfig-001-20260611 (https://download.01.org/0day-ci/archive/20260611/202606111843.aJlNG96K-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/202606111843.aJlNG96K-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/202606111843.aJlNG96K-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/perf/cxl_pmu.c:344:19: warning: shift count >= width of type [-Wshift-count-overflow]
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:258:39: note: expanded from macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^
include/linux/bits.h:48:20: note: expanded from macro 'GENMASK_TYPE'
48 | (type_max(t) << (l) & \
| ^
note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
>> drivers/perf/cxl_pmu.c:344:19: warning: shift count >= width of type [-Wshift-count-overflow]
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:258:39: note: expanded from macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^
include/linux/bits.h:49:20: note: expanded from macro 'GENMASK_TYPE'
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ^
note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
>> drivers/perf/cxl_pmu.c:344:19: warning: shift count >= width of type [-Wshift-count-overflow]
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:258:39: note: expanded from macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^
include/linux/bits.h:48:20: note: expanded from macro 'GENMASK_TYPE'
48 | (type_max(t) << (l) & \
| ^
note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
>> drivers/perf/cxl_pmu.c:344:19: warning: shift count >= width of type [-Wshift-count-overflow]
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:258:39: note: expanded from macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^
include/linux/bits.h:49:20: note: expanded from macro 'GENMASK_TYPE'
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ^
note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
>> drivers/perf/cxl_pmu.c:344:19: warning: shift count >= width of type [-Wshift-count-overflow]
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:258:39: note: expanded from macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^
include/linux/bits.h:48:20: note: expanded from macro 'GENMASK_TYPE'
48 | (type_max(t) << (l) & \
| ^
note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
>> drivers/perf/cxl_pmu.c:344:19: warning: shift count >= width of type [-Wshift-count-overflow]
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:258:39: note: expanded from macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^
include/linux/bits.h:51:24: note: expanded from macro 'GENMASK'
51 | #define GENMASK(h, l) GENMASK_TYPE(unsigned long, h, l)
| ^
include/linux/bits.h:49:20: note: expanded from macro 'GENMASK_TYPE'
49 | type_max(t) >> (BITS_PER_TYPE(t) - 1 - (h)))))
| ^
note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
6 warnings generated.
vim +344 drivers/perf/cxl_pmu.c
341
342 static u16 cxl_pmu_config2_get_crb(struct perf_event *event)
343 {
> 344 return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
345 }
346
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] perf/cxlpmu: Support Channel/Rank/Bank filter
2026-06-11 1:04 [PATCH] perf/cxlpmu: Support Channel/Rank/Bank filter Davidlohr Bueso
2026-06-11 1:14 ` sashiko-bot
2026-06-11 10:07 ` kernel test robot
@ 2026-06-11 10:19 ` kernel test robot
2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2026-06-11 10:19 UTC (permalink / raw)
To: Davidlohr Bueso, jic23, will, mark.rutland
Cc: oe-kbuild-all, linux-cxl, linux-perf-users, Harshal Thakkar,
Davidlohr Bueso
Hi Davidlohr,
kernel test robot noticed the following build errors:
[auto build test ERROR on arm-perf/for-next/perf]
[also build test ERROR on cxl/next linus/master v7.1-rc7 next-20260610]
[cannot apply to cxl/pending]
[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/Davidlohr-Bueso/perf-cxlpmu-Support-Channel-Rank-Bank-filter/20260611-090512
base: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-next/perf
patch link: https://lore.kernel.org/r/20260611010409.2776635-1-dave%40stgolabs.net
patch subject: [PATCH] perf/cxlpmu: Support Channel/Rank/Bank filter
config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20260611/202606111835.kj0nhZ5e-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260611/202606111835.kj0nhZ5e-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/202606111835.kj0nhZ5e-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from <command-line>:
drivers/perf/cxl_pmu.c: In function 'cxl_pmu_config2_get_crb':
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:79:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
79 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:79:26: note: in expansion of macro '__bf_cast_unsigned'
79 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:177:17: note: in expansion of macro '__BF_FIELD_CHECK_REG'
177 | __BF_FIELD_CHECK_REG(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:79:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
79 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:79:26: note: in expansion of macro '__bf_cast_unsigned'
79 | BUILD_BUG_ON_MSG(__bf_cast_unsigned(mask, mask) > \
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:177:17: note: in expansion of macro '__BF_FIELD_CHECK_REG'
177 | __BF_FIELD_CHECK_REG(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:69:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
69 | BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:69:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
69 | BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:70:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
70 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:70:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
70 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:70:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
70 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:71:47: note: in expansion of macro '__bf_shf'
71 | ~((_mask) >> __bf_shf(_mask)) & \
| ^~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:70:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
70 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:71:47: note: in expansion of macro '__bf_shf'
71 | ~((_mask) >> __bf_shf(_mask)) & \
| ^~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:75:56: note: in expansion of macro '__bf_shf'
75 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:75:56: note: in expansion of macro '__bf_shf'
75 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/bits.h:48:27: warning: left shift count >= width of type [-Wshift-count-overflow]
48 | (type_max(t) << (l) & \
| ^~
include/linux/compiler_types.h:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:75:56: note: in expansion of macro '__bf_shf'
75 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:679:23: note: in definition of macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:75:56: note: in expansion of macro '__bf_shf'
75 | (1ULL << __bf_shf(_mask))); \
| ^~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/perf/../cxl/cxl.h:8,
from drivers/perf/../cxl/cxlpci.h:6,
from drivers/perf/cxl_pmu.c:23:
>> 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:98:42: note: in definition of macro '__FIELD_GET'
98 | (typeof(mask))(((reg) & (mask)) >> __bf_shf(mask)); \
| ^~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 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:98:42: note: in definition of macro '__FIELD_GET'
98 | (typeof(mask))(((reg) & (mask)) >> __bf_shf(mask)); \
| ^~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:47:38: note: in definition of macro '__bf_shf'
47 | #define __bf_shf(x) (__builtin_ffsll(x) - 1)
| ^
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:47:38: note: in definition of macro '__bf_shf'
47 | #define __bf_shf(x) (__builtin_ffsll(x) - 1)
| ^
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
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/perf/cxl_pmu.c:258:49: note: in expansion of macro 'GENMASK'
258 | #define CXL_PMU_ATTR_CONFIG2_CRB_MSK GENMASK(63, 32)
| ^~~~~~~
drivers/perf/cxl_pmu.c:344:26: note: in expansion of macro 'CXL_PMU_ATTR_CONFIG2_CRB_MSK'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'cxl_pmu_config2_get_crb',
inlined from 'cxl_pmu_event_start' at drivers/perf/cxl_pmu.c:676:10:
include/linux/compiler_types.h:699:45: error: call to '__compiletime_assert_649' declared with attribute error: FIELD_GET: mask is zero
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:680:25: note: in definition of macro '__compiletime_assert'
680 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:699:9: note: in expansion of macro '_compiletime_assert'
699 | _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:69:17: note: in expansion of macro 'BUILD_BUG_ON_MSG'
69 | BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero"); \
| ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:97:17: note: in expansion of macro '__BF_FIELD_CHECK_MASK'
97 | __BF_FIELD_CHECK_MASK(mask, 0U, pfx); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:178:17: note: in expansion of macro '__FIELD_GET'
178 | __FIELD_GET(_mask, _reg, "FIELD_GET: "); \
| ^~~~~~~~~~~
drivers/perf/cxl_pmu.c:344:16: note: in expansion of macro 'FIELD_GET'
344 | return FIELD_GET(CXL_PMU_ATTR_CONFIG2_CRB_MSK, event->attr.config2);
| ^~~~~~~~~
..
vim +/__compiletime_assert_649 +699 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 685
eb5c2d4b45e3d2 Will Deacon 2020-07-21 686 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 687 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 688
eb5c2d4b45e3d2 Will Deacon 2020-07-21 689 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 690 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 691 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 692 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 693 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 694 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 695 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 696 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 697 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 698 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @699 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 700
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread