Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bitfield: Use argument type for size comparison on Bitfield access ma…
…cros Fix the size comparison code that implicitly assumes that the mask argument of bitfield access macros is an unsigned long long type. If unsigned int type is used for mask, the first argument of Bitfield access macros, and clang is used to compile, this [1] option causes a build error.[2] [1] [-Werror,-Wtautological-constant-out-of-range-compare] [2] https://lore.kernel.org/intel-gfx/c1c548f8-71a8-0d4d-d591-58a0cd5dac20@intel.com Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: llvm@lists.linux.dev Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Cc: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
- Loading branch information