From: kernel test robot <lkp@intel.com>
To: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [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
Date: Sat, 8 Feb 2025 13:05:39 +0800 [thread overview]
Message-ID: <202502081229.nVX901zo-lkp@intel.com> (raw)
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
reply other threads:[~2025-02-08 5:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502081229.nVX901zo-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=lorenzo.stoakes@oracle.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox