Hi RafaƂ, I love your patch! Perhaps something to improve: [auto build test WARNING on linux-next/master] [cannot apply to soc/for-next linus/master v6.2-rc3] [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/Rafa-Mi-ecki/nvmem-core-fix-nvmem_layout_get_match_data/20230110-184843 patch link: https://lore.kernel.org/r/20230110104645.11705-1-zajec5%40gmail.com patch subject: [PATCH] nvmem: core: fix nvmem_layout_get_match_data() config: alpha-defconfig compiler: alpha-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/cfe1a8f0e01284c430ab2395b321a460862aed4f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Rafa-Mi-ecki/nvmem-core-fix-nvmem_layout_get_match_data/20230110-184843 git checkout cfe1a8f0e01284c430ab2395b321a460862aed4f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/nvmem/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/nvmem/core.c: In function 'nvmem_layout_get_match_data': >> drivers/nvmem/core.c:828:29: warning: variable 'layout_np' set but not used [-Wunused-but-set-variable] 828 | struct device_node *layout_np; | ^~~~~~~~~ vim +/layout_np +828 drivers/nvmem/core.c 823 824 const void *nvmem_layout_get_match_data(struct nvmem_device *nvmem, 825 struct nvmem_layout *layout) 826 { 827 const struct of_device_id *match; > 828 struct device_node *layout_np; 829 830 layout_np = of_nvmem_layout_get_container(nvmem); 831 match = of_match_node(layout->of_match_table, layout_np); 832 833 return match ? match->data : NULL; 834 } 835 EXPORT_SYMBOL_GPL(nvmem_layout_get_match_data); 836 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests