From: kernel test robot <lkp@intel.com>
To: Yannick Fertre <yannick.fertre@st.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Eric Anholt <eric@anholt.net>,
Neil Armstrong <narmstrong@baylibre.com>
Subject: drivers/video/fbdev/core/fbmem.c:1496:15: warning: no previous declaration for 'get_fb_unmapped_area'
Date: Sun, 27 Mar 2022 01:01:27 +0800 [thread overview]
Message-ID: <202203270028.vzpaWr13-lkp@intel.com> (raw)
Hi Yannick,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 52d543b5497cf31d6baeb0bcfe5a5474c3238578
commit: b759012c5fa761ee08998c80fc4ad6343c258487 drm/stm: Add STM32 LTDC driver
date: 4 years, 11 months ago
config: arm-randconfig-r023-20220326 (https://download.01.org/0day-ci/archive/20220327/202203270028.vzpaWr13-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b759012c5fa761ee08998c80fc4ad6343c258487
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b759012c5fa761ee08998c80fc4ad6343c258487
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash M=drivers/video/fbdev/core
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/video/fbdev/core/fbmem.c:1496:15: warning: no previous declaration for 'get_fb_unmapped_area' [-Wmissing-declarations]
unsigned long get_fb_unmapped_area(struct file *filp,
^~~~~~~~~~~~~~~~~~~~
drivers/video/fbdev/core/fbmem.c:719:37: warning: 'fb_proc_fops' defined but not used [-Wunused-const-variable=]
static const struct file_operations fb_proc_fops = {
^~~~~~~~~~~~
vim +/get_fb_unmapped_area +1496 drivers/video/fbdev/core/fbmem.c
^1da177e4c3f415 drivers/video/fbmem.c Linus Torvalds 2005-04-16 1494
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1495 #ifdef CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 @1496 unsigned long get_fb_unmapped_area(struct file *filp,
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1497 unsigned long addr, unsigned long len,
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1498 unsigned long pgoff, unsigned long flags)
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1499 {
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1500 struct fb_info * const info = filp->private_data;
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1501 unsigned long fb_size = PAGE_ALIGN(info->fix.smem_len);
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1502
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1503 if (pgoff > fb_size || len > fb_size - pgoff)
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1504 return -EINVAL;
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1505
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1506 return (unsigned long)info->screen_base + pgoff;
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1507 }
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1508 #endif
82f42e4cc164ed4 drivers/video/fbdev/core/fbmem.c Benjamin Gaignard 2017-01-04 1509
:::::: The code at line 1496 was first introduced by commit
:::::: 82f42e4cc164ed486c9e2b1b74e65b176830d947 fbmem: add a default get_fb_unmapped_area function
:::::: TO: Benjamin Gaignard <benjamin.gaignard@linaro.org>
:::::: CC: Daniel Vetter <daniel.vetter@ffwll.ch>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-03-26 17:04 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=202203270028.vzpaWr13-lkp@intel.com \
--to=lkp@intel.com \
--cc=eric@anholt.net \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=narmstrong@baylibre.com \
--cc=yannick.fertre@st.com \
/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
all inboxes | Powered by JetHome®