* [akpm-mm:mm-unstable 146/165] drivers/video/fbdev/core/fb_defio.c:272:3: error: call to undeclared function 'mapping_wrprotect_range'; ISO C99 and later do not support implicit function declarations
@ 2025-02-08 5:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-08 5:05 UTC (permalink / raw)
To: Lorenzo Stoakes
Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List
Hi Lorenzo,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: 8bf30f9d23eb5040d37e6e712789cee8e71e1577
commit: 85d65aec481df149bc5280cf1ad5f9b76f59f153 [146/165] fb_defio: do not use deprecated page->mapping, index fields
config: arm-randconfig-003-20250208 (https://download.01.org/0day-ci/archive/20250208/202502081229.nVX901zo-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 6807164500e9920638e2ab0cdb4bf8321d24f8eb)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250208/202502081229.nVX901zo-lkp@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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502081229.nVX901zo-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/video/fbdev/core/fb_defio.c:136:34: error: too few arguments provided to function-like macro invocation
136 | fb_err("no mapping available\n");
| ^
include/linux/fb.h:887:9: note: macro 'fb_err' defined here
887 | #define fb_err(fb_info, fmt, ...) \
| ^
drivers/video/fbdev/core/fb_defio.c:136:3: error: use of undeclared identifier 'fb_err'; did you mean 'xa_err'?
136 | fb_err("no mapping available\n");
| ^~~~~~
| xa_err
include/linux/xarray.h:223:19: note: 'xa_err' declared here
223 | static inline int xa_err(void *entry)
| ^
drivers/video/fbdev/core/fb_defio.c:136:3: warning: expression result unused [-Wunused-value]
136 | fb_err("no mapping available\n");
| ^~~~~~
>> drivers/video/fbdev/core/fb_defio.c:272:3: error: call to undeclared function 'mapping_wrprotect_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
272 | mapping_wrprotect_range(fbdefio->mapping, pgoff,
| ^
1 warning and 3 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FB_DEFERRED_IO
Depends on [n]: HAS_IOMEM [=y] && FB_CORE [=y] && MMU [=n]
Selected by [y]:
- FB_DMAMEM_HELPERS_DEFERRED [=y] && HAS_IOMEM [=y] && FB_CORE [=y]
vim +/mapping_wrprotect_range +272 drivers/video/fbdev/core/fb_defio.c
258
259 /* workqueue callback */
260 static void fb_deferred_io_work(struct work_struct *work)
261 {
262 struct fb_info *info = container_of(work, struct fb_info, deferred_work.work);
263 struct fb_deferred_io_pageref *pageref, *next;
264 struct fb_deferred_io *fbdefio = info->fbdefio;
265
266 /* here we wrprotect the page's mappings, then do all deferred IO. */
267 mutex_lock(&fbdefio->lock);
268 list_for_each_entry(pageref, &fbdefio->pagereflist, list) {
269 struct page *page = pageref->page;
270 pgoff_t pgoff = pageref->offset >> PAGE_SHIFT;
271
> 272 mapping_wrprotect_range(fbdefio->mapping, pgoff,
273 page_to_pfn(page), 1);
274 }
275
276 /* driver's callback with pagereflist */
277 fbdefio->deferred_io(info, &fbdefio->pagereflist);
278
279 /* clear the list */
280 list_for_each_entry_safe(pageref, next, &fbdefio->pagereflist, list)
281 fb_deferred_io_pageref_put(pageref, info);
282
283 mutex_unlock(&fbdefio->lock);
284 }
285
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-08 5:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-08 5:05 [akpm-mm:mm-unstable 146/165] drivers/video/fbdev/core/fb_defio.c:272:3: error: call to undeclared function 'mapping_wrprotect_range'; ISO C99 and later do not support implicit function declarations kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox