Hi Jani, kernel test robot noticed the following build errors:
[auto build test ERROR on drm-misc/drm-misc-next] [cannot apply to drm/drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes linus/master v6.8-rc7 next-20240306] [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/Jani-Nikula/drm-crtc-make-drm_crtc_internal-h-self-contained/20240307-023603 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/e22ab28836ee1689ea4781ed53fd2e4e4f84728e.1709749576.git.jani.nikula%40intel.com patch subject: [PATCH 22/22] drm: ensure drm headers are self-contained and pass kernel-doc config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20240307/202403071204.gjtmneoq-...@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240307/202403071204.gjtmneoq-...@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/202403071204.gjtmneoq-...@intel.com/ All errors (new ones prefixed by >>): In file included from <command-line>: drivers/gpu/drm/./drm_crtc_internal.h: In function 'drm_edid_load_firmware': >> drivers/gpu/drm/./drm_crtc_internal.h:304:16: error: implicit declaration of >> function 'ERR_PTR' [-Werror=implicit-function-declaration] 304 | return ERR_PTR(-ENOENT); | ^~~~~~~ >> drivers/gpu/drm/./drm_crtc_internal.h:304:25: error: 'ENOENT' undeclared >> (first use in this function) 304 | return ERR_PTR(-ENOENT); | ^~~~~~ drivers/gpu/drm/./drm_crtc_internal.h:304:25: note: each undeclared identifier is reported only once for each function it appears in In file included from <command-line>: drivers/gpu/drm/./drm_crtc_internal.h: At top level: >> drivers/gpu/drm/./drm_crtc_internal.h:302:1: error: redefinition of >> 'drm_edid_load_firmware' 302 | drm_edid_load_firmware(struct drm_connector *connector) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/./drm_crtc_internal.h:302:1: note: previous definition of 'drm_edid_load_firmware' with type 'const struct drm_edid *(struct drm_connector *)' 302 | drm_edid_load_firmware(struct drm_connector *connector) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/./drm_crtc_internal.h: In function 'drm_edid_load_firmware': >> drivers/gpu/drm/./drm_crtc_internal.h:304:25: error: 'ENOENT' undeclared >> (first use in this function) 304 | return ERR_PTR(-ENOENT); | ^~~~~~ cc1: all warnings being treated as errors vim +/ERR_PTR +304 drivers/gpu/drm/./drm_crtc_internal.h 5f2d0ed49036a0 Jani Nikula 2022-10-24 296 5f2d0ed49036a0 Jani Nikula 2022-10-24 297 /* drm_edid_load.c */ 5f2d0ed49036a0 Jani Nikula 2022-10-24 298 #ifdef CONFIG_DRM_LOAD_EDID_FIRMWARE 5f2d0ed49036a0 Jani Nikula 2022-10-24 299 const struct drm_edid *drm_edid_load_firmware(struct drm_connector *connector); 5f2d0ed49036a0 Jani Nikula 2022-10-24 300 #else 5f2d0ed49036a0 Jani Nikula 2022-10-24 301 static inline const struct drm_edid * 5f2d0ed49036a0 Jani Nikula 2022-10-24 @302 drm_edid_load_firmware(struct drm_connector *connector) 5f2d0ed49036a0 Jani Nikula 2022-10-24 303 { 5f2d0ed49036a0 Jani Nikula 2022-10-24 @304 return ERR_PTR(-ENOENT); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki