Hi Neeraj, kernel test robot noticed the following build errors:
[auto build test ERROR on f11a5f89910a7ae970fbce4fdc02d86a8ba8570f] url: https://github.com/intel-lab-lkp/linux/commits/Neeraj-Kumar/nvdimm-label-Introduce-NDD_CXL_LABEL-flag-to-set-cxl-label-format/20250730-202209 base: f11a5f89910a7ae970fbce4fdc02d86a8ba8570f patch link: https://lore.kernel.org/r/20250730121209.303202-20-s.neeraj%40samsung.com patch subject: [PATCH V2 19/20] cxl/pmem_region: Prep patch to accommodate pmem_region attributes config: i386-buildonly-randconfig-001-20250731 (https://download.01.org/0day-ci/archive/20250731/202507310942.77glfqs3-...@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250731/202507310942.77glfqs3-...@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/202507310942.77glfqs3-...@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/cxl/cxlmem.h:12, from drivers/cxl/pci.c:15: >> drivers/cxl/cxl.h:921:20: error: redefinition of 'create_pmem_region' 921 | static inline void create_pmem_region(struct nvdimm *nvdimm) | ^~~~~~~~~~~~~~~~~~ drivers/cxl/cxl.h:898:20: note: previous definition of 'create_pmem_region' with type 'void(struct nvdimm *)' 898 | static inline void create_pmem_region(struct nvdimm *nvdimm) | ^~~~~~~~~~~~~~~~~~ vim +/create_pmem_region +921 drivers/cxl/cxl.h 902 903 #ifdef CONFIG_CXL_PMEM_REGION 904 bool is_cxl_pmem_region(struct device *dev); 905 struct cxl_pmem_region *to_cxl_pmem_region(struct device *dev); 906 int devm_cxl_add_pmem_region(struct cxl_region *cxlr); 907 void create_pmem_region(struct nvdimm *nvdimm); 908 #else 909 static inline bool is_cxl_pmem_region(struct device *dev) 910 { 911 return false; 912 } 913 static inline struct cxl_pmem_region *to_cxl_pmem_region(struct device *dev) 914 { 915 return NULL; 916 } 917 static inline int devm_cxl_add_pmem_region(struct cxl_region *cxlr) 918 { 919 return 0; 920 } > 921 static inline void create_pmem_region(struct nvdimm *nvdimm) 922 { 923 } 924 #endif 925 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki