Hi Loïc, kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.17-rc7 next-20250923] [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/Lo-c-Molinari/drm-shmem-helper-Add-huge-page-fault-handler/20250923-175753 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20250923095634.50051-1-loic.molinari%40collabora.com patch subject: [PATCH] drm/shmem-helper: Add huge page fault handler config: i386-buildonly-randconfig-002-20250924 (https://download.01.org/0day-ci/archive/20250924/202509241315.8jjcyl7u-...@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250924/202509241315.8jjcyl7u-...@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 <l...@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202509241315.8jjcyl7u-...@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/drm_gem_shmem_helper.c:595:2: warning: label at end of >> compound statement is a C23 extension [-Wc23-extensions] 595 | } | ^ drivers/gpu/drm/drm_gem_shmem_helper.c:548:21: warning: unused variable 'paddr' [-Wunused-variable] 548 | unsigned long pfn, paddr; | ^~~~~ >> drivers/gpu/drm/drm_gem_shmem_helper.c:594:2: warning: variable 'ret' is >> used uninitialized whenever switch default is taken >> [-Wsometimes-uninitialized] 594 | default: | ^~~~~~~ drivers/gpu/drm/drm_gem_shmem_helper.c:600:9: note: uninitialized use occurs here 600 | return ret; | ^~~ drivers/gpu/drm/drm_gem_shmem_helper.c:545:16: note: initialize the variable 'ret' to silence this warning 545 | vm_fault_t ret; | ^ | = 0 3 warnings generated. vim +595 drivers/gpu/drm/drm_gem_shmem_helper.c 2194a63a818db71 Noralf Trønnes 2019-03-12 593 16bf6748ef6aaf1 Loïc Molinari 2025-09-23 @594 default: d611b4a0907cece Neil Roberts 2021-02-23 @595 } d611b4a0907cece Neil Roberts 2021-02-23 596 16bf6748ef6aaf1 Loïc Molinari 2025-09-23 597 out: 21aa27ddc582693 Dmitry Osipenko 2023-05-30 598 dma_resv_unlock(shmem->base.resv); d611b4a0907cece Neil Roberts 2021-02-23 599 d611b4a0907cece Neil Roberts 2021-02-23 600 return ret; 2194a63a818db71 Noralf Trønnes 2019-03-12 601 } 2194a63a818db71 Noralf Trønnes 2019-03-12 602 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki