From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [gfs2:for-next.bob6b 5/12] fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf'
Date: Fri, 31 Jul 2020 10:05:02 +0800 [thread overview]
Message-ID: <202007311001.NcVgxLoI%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2740 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.bob6b
head: e113c11c3dacf984d0e6c6a53e78940727c2f52f
commit: 814995ea785119dac948329e509217d15ac6beb0 [5/12] gfs2: Wipe jdata and ail1 in gfs2_journal_wipe, formerly gfs2_meta_wipe
config: x86_64-randconfig-a016-20200730 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c23ae3f18ee3ff11671f4c62ffc66d150b1bcdc2)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 814995ea785119dac948329e509217d15ac6beb0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf' [-Wmissing-prototypes]
struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno)
^
fs/gfs2/meta_io.c:400:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno)
^
static
1 warning generated.
vim +/gfs2_getjdatabuf +400 fs/gfs2/meta_io.c
399
> 400 struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno)
401 {
402 struct address_space *mapping = ip->i_inode.i_mapping;
403 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
404 struct page *page;
405 struct buffer_head *bh;
406 unsigned int shift = PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift;
407 unsigned long index = blkno >> shift; /* convert block to page */
408 unsigned int bufnum = blkno - (index << shift);
409
410 page = find_get_page_flags(mapping, index, FGP_LOCK|FGP_ACCESSED);
411 if (!page)
412 return NULL;
413 if (!page_has_buffers(page)) {
414 unlock_page(page);
415 put_page(page);
416 return NULL;
417 }
418 /* Locate header for our buffer within our page */
419 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page)
420 /* Do nothing */;
421 get_bh(bh);
422 unlock_page(page);
423 put_page(page);
424 return bh;
425 }
426
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33292 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [gfs2:for-next.bob6b 5/12] fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf'
Date: Fri, 31 Jul 2020 10:05:02 +0800 [thread overview]
Message-ID: <202007311001.NcVgxLoI%lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.bob6b
head: e113c11c3dacf984d0e6c6a53e78940727c2f52f
commit: 814995ea785119dac948329e509217d15ac6beb0 [5/12] gfs2: Wipe jdata and ail1 in gfs2_journal_wipe, formerly gfs2_meta_wipe
config: x86_64-randconfig-a016-20200730 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c23ae3f18ee3ff11671f4c62ffc66d150b1bcdc2)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 814995ea785119dac948329e509217d15ac6beb0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf' [-Wmissing-prototypes]
struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno)
^
fs/gfs2/meta_io.c:400:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno)
^
static
1 warning generated.
vim +/gfs2_getjdatabuf +400 fs/gfs2/meta_io.c
399
> 400 struct buffer_head *gfs2_getjdatabuf(struct gfs2_inode *ip, u64 blkno)
401 {
402 struct address_space *mapping = ip->i_inode.i_mapping;
403 struct gfs2_sbd *sdp = GFS2_SB(&ip->i_inode);
404 struct page *page;
405 struct buffer_head *bh;
406 unsigned int shift = PAGE_SHIFT - sdp->sd_sb.sb_bsize_shift;
407 unsigned long index = blkno >> shift; /* convert block to page */
408 unsigned int bufnum = blkno - (index << shift);
409
410 page = find_get_page_flags(mapping, index, FGP_LOCK|FGP_ACCESSED);
411 if (!page)
412 return NULL;
413 if (!page_has_buffers(page)) {
414 unlock_page(page);
415 put_page(page);
416 return NULL;
417 }
418 /* Locate header for our buffer within our page */
419 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page)
420 /* Do nothing */;
421 get_bh(bh);
422 unlock_page(page);
423 put_page(page);
424 return bh;
425 }
426
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all at lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 33292 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20200731/c2b60c36/attachment.gz>
next reply other threads:[~2020-07-31 2:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-31 2:05 kernel test robot [this message]
2020-07-31 2:05 ` [Cluster-devel] [gfs2:for-next.bob6b 5/12] fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf' kernel test robot
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=202007311001.NcVgxLoI%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.