Hi Lucas, Thank you for the patch! Yet something to improve: [auto build test ERROR on bb4f6b2281b11b009210f62eecd291f7b75c1e85] url: https://github.com/intel-lab-lkp/linux/commits/Lucas-De-Marchi/drm-i915-Improvements-to-stolen-memory-setup/20220916-044155 base: bb4f6b2281b11b009210f62eecd291f7b75c1e85 config: i386-defconfig compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/b0c14c92efecabadc483675b606c1ce109cfa415 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Lucas-De-Marchi/drm-i915-Improvements-to-stolen-memory-setup/20220916-044155 git checkout b0c14c92efecabadc483675b606c1ce109cfa415 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/bitops.h:6, from include/linux/kernel.h:22, from arch/x86/include/asm/percpu.h:27, from arch/x86/include/asm/current.h:6, from include/linux/mutex.h:14, from drivers/gpu/drm/i915/gem/i915_gem_stolen.c:8: drivers/gpu/drm/i915/gem/i915_gem_stolen.c: In function 'i915_gem_stolen_lmem_setup': >> include/linux/bits.h:36:18: error: right shift count is negative [-Werror=shift-count-negative] 36 | (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/bits.h:38:38: note: in expansion of macro '__GENMASK' 38 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/gpu/drm/i915/i915_reg.h:7956:41: note: in expansion of macro 'GENMASK' 7956 | #define GEN12_BDSM_MASK GENMASK(63, 20) | ^~~~~~~ drivers/gpu/drm/i915/gem/i915_gem_stolen.c:817:65: note: in expansion of macro 'GEN12_BDSM_MASK' 817 | dsm_base = intel_uncore_read64(uncore, GEN12_DSMBASE) & GEN12_BDSM_MASK; | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +36 include/linux/bits.h 295bcca84916cb5 Rikard Falkeborn 2020-04-06 33 295bcca84916cb5 Rikard Falkeborn 2020-04-06 34 #define __GENMASK(h, l) \ 95b980d62d52c4c Masahiro Yamada 2019-07-16 35 (((~UL(0)) - (UL(1) << (l)) + 1) & \ 95b980d62d52c4c Masahiro Yamada 2019-07-16 @36 (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) 295bcca84916cb5 Rikard Falkeborn 2020-04-06 37 #define GENMASK(h, l) \ 295bcca84916cb5 Rikard Falkeborn 2020-04-06 38 (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) 8bd9cb51daac893 Will Deacon 2018-06-19 39 -- 0-DAY CI Kernel Test Service https://01.org/lkp