Re: [PATCH v5 1/2] devcoredump: Add dev_coredumpm_timeout()

From: kernel test robot
Date: Tue Jun 11 2024 - 06:38:27 EST


Hi José,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-xe/drm-xe-next]
[also build test ERROR on wireless-next/main wireless/main linus/master v6.10-rc3 next-20240611]
[cannot apply to driver-core/driver-core-testing driver-core/driver-core-next driver-core/driver-core-linus]
[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/Jos-Roberto-de-Souza/drm-xe-Increase-devcoredump-timeout/20240611-001400
base: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
patch link: https://lore.kernel.org/r/20240610161133.156566-1-jose.souza%40intel.com
patch subject: [PATCH v5 1/2] devcoredump: Add dev_coredumpm_timeout()
config: i386-randconfig-141-20240611 (https://download.01.org/0day-ci/archive/20240611/202406111852.SdIM9NWt-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240611/202406111852.SdIM9NWt-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406111852.SdIM9NWt-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/gpu/drm/xe/xe_devcoredump.c:9:
>> include/linux/devcoredump.h:79:6: error: no previous prototype for function 'dev_coredumpm_timeout' [-Werror,-Wmissing-prototypes]
79 | void dev_coredumpm_timeout(struct device *dev, struct module *owner,
| ^
include/linux/devcoredump.h:79:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
79 | void dev_coredumpm_timeout(struct device *dev, struct module *owner,
| ^
| static
1 error generated.


vim +/dev_coredumpm_timeout +79 include/linux/devcoredump.h

78
> 79 void dev_coredumpm_timeout(struct device *dev, struct module *owner,
80 void *data, size_t datalen, gfp_t gfp,
81 ssize_t (*read)(char *buffer, loff_t offset,
82 size_t count, void *data,
83 size_t datalen),
84 void (*free)(void *data),
85 unsigned long timeout)
86 {
87 free(data);
88 }
89

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki