* [gfs2:for-next.bob6b 5/12] fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf'
@ 2020-07-31 2:05 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-31 2:05 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Cluster-devel] [gfs2:for-next.bob6b 5/12] fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf'
@ 2020-07-31 2:05 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-31 2:05 UTC (permalink / raw)
To: cluster-devel.redhat.com
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-31 2:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 2:05 [gfs2:for-next.bob6b 5/12] fs/gfs2/meta_io.c:400:21: warning: no previous prototype for function 'gfs2_getjdatabuf' kernel test robot
2020-07-31 2:05 ` [Cluster-devel] " kernel test robot
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.