From: kernel test robot <lkp@intel.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
gfs2@lists.linux.dev, Andreas Gruenbacher <agruenba@redhat.com>
Subject: [gfs2:for-next 19/20] fs/ocfs2/aops.c:878:7: error: call to undeclared function 'page_has_buffers'; ISO C99 and later do not support implicit function declarations
Date: Sun, 9 Mar 2025 23:29:46 +0800 [thread overview]
Message-ID: <202503092338.i0AkxoMV-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next
head: 16abce10ad13ab3ee23754a81164aa8d0506d552
commit: b3cbb48767a2c7a9348b13852b75ea01ed52017b [19/20] gfs2: Convert gfs2_end_log_write_bh() to work on a folio
config: arm-randconfig-003-20250309 (https://download.01.org/0day-ci/archive/20250309/202503092338.i0AkxoMV-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project e15545cad8297ec7555f26e5ae74a9f0511203e7)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250309/202503092338.i0AkxoMV-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/202503092338.i0AkxoMV-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/ocfs2/aops.c:878:7: error: call to undeclared function 'page_has_buffers'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
878 | if (!page_has_buffers(page))
| ^
fs/ocfs2/aops.c:878:7: note: did you mean 'inode_has_buffers'?
include/linux/buffer_head.h:511:5: note: 'inode_has_buffers' declared here
511 | int inode_has_buffers(struct inode *inode);
| ^
fs/ocfs2/aops.c:927:18: error: call to undeclared function 'page_has_buffers'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
927 | if (tmppage && page_has_buffers(tmppage)) {
| ^
fs/ocfs2/aops.c:2025:7: error: call to undeclared function 'page_has_buffers'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2025 | if (page_has_buffers(tmppage)) {
| ^
3 errors generated.
--
>> fs/ocfs2/refcounttree.c:2969:7: error: call to undeclared function 'page_has_buffers'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2969 | if (page_has_buffers(page)) {
| ^
fs/ocfs2/refcounttree.c:2969:7: note: did you mean 'inode_has_buffers'?
include/linux/buffer_head.h:511:5: note: 'inode_has_buffers' declared here
511 | int inode_has_buffers(struct inode *inode);
| ^
1 error generated.
vim +/page_has_buffers +878 fs/ocfs2/aops.c
6af67d8205cf65 Mark Fasheh 2007-03-06 866
9517bac6cc7a7a Mark Fasheh 2007-02-09 867 /*
3a307ffc2730bf Mark Fasheh 2007-05-08 868 * If a page has any new buffers, zero them out here, and mark them uptodate
3a307ffc2730bf Mark Fasheh 2007-05-08 869 * and dirty so they'll be written out (in order to prevent uninitialised
3a307ffc2730bf Mark Fasheh 2007-05-08 870 * block data from leaking). And clear the new bit.
9517bac6cc7a7a Mark Fasheh 2007-02-09 871 */
3a307ffc2730bf Mark Fasheh 2007-05-08 872 static void ocfs2_zero_new_buffers(struct page *page, unsigned from, unsigned to)
9517bac6cc7a7a Mark Fasheh 2007-02-09 873 {
3a307ffc2730bf Mark Fasheh 2007-05-08 874 unsigned int block_start, block_end;
3a307ffc2730bf Mark Fasheh 2007-05-08 875 struct buffer_head *head, *bh;
9517bac6cc7a7a Mark Fasheh 2007-02-09 876
3a307ffc2730bf Mark Fasheh 2007-05-08 877 BUG_ON(!PageLocked(page));
3a307ffc2730bf Mark Fasheh 2007-05-08 @878 if (!page_has_buffers(page))
3a307ffc2730bf Mark Fasheh 2007-05-08 879 return;
9517bac6cc7a7a Mark Fasheh 2007-02-09 880
3a307ffc2730bf Mark Fasheh 2007-05-08 881 bh = head = page_buffers(page);
3a307ffc2730bf Mark Fasheh 2007-05-08 882 block_start = 0;
3a307ffc2730bf Mark Fasheh 2007-05-08 883 do {
3a307ffc2730bf Mark Fasheh 2007-05-08 884 block_end = block_start + bh->b_size;
9517bac6cc7a7a Mark Fasheh 2007-02-09 885
3a307ffc2730bf Mark Fasheh 2007-05-08 886 if (buffer_new(bh)) {
3a307ffc2730bf Mark Fasheh 2007-05-08 887 if (block_end > from && block_start < to) {
3a307ffc2730bf Mark Fasheh 2007-05-08 888 if (!PageUptodate(page)) {
3a307ffc2730bf Mark Fasheh 2007-05-08 889 unsigned start, end;
9517bac6cc7a7a Mark Fasheh 2007-02-09 890
3a307ffc2730bf Mark Fasheh 2007-05-08 891 start = max(from, block_start);
3a307ffc2730bf Mark Fasheh 2007-05-08 892 end = min(to, block_end);
9517bac6cc7a7a Mark Fasheh 2007-02-09 893
eebd2aa355692a Christoph Lameter 2008-02-04 894 zero_user_segment(page, start, end);
3a307ffc2730bf Mark Fasheh 2007-05-08 895 set_buffer_uptodate(bh);
3a307ffc2730bf Mark Fasheh 2007-05-08 896 }
eeb47d1234af1a Mark Fasheh 2007-06-06 897
3a307ffc2730bf Mark Fasheh 2007-05-08 898 clear_buffer_new(bh);
3a307ffc2730bf Mark Fasheh 2007-05-08 899 mark_buffer_dirty(bh);
3a307ffc2730bf Mark Fasheh 2007-05-08 900 }
9517bac6cc7a7a Mark Fasheh 2007-02-09 901 }
9517bac6cc7a7a Mark Fasheh 2007-02-09 902
3a307ffc2730bf Mark Fasheh 2007-05-08 903 block_start = block_end;
3a307ffc2730bf Mark Fasheh 2007-05-08 904 bh = bh->b_this_page;
3a307ffc2730bf Mark Fasheh 2007-05-08 905 } while (bh != head);
3a307ffc2730bf Mark Fasheh 2007-05-08 906 }
9517bac6cc7a7a Mark Fasheh 2007-02-09 907
:::::: The code at line 878 was first introduced by commit
:::::: 3a307ffc2730bfa1a4dfa94537be9d412338aad2 ocfs2: rework ocfs2_buffered_write_cluster()
:::::: TO: Mark Fasheh <mark.fasheh@oracle.com>
:::::: CC: Mark Fasheh <mark.fasheh@oracle.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-03-09 15:30 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=202503092338.i0AkxoMV-lkp@intel.com \
--to=lkp@intel.com \
--cc=agruenba@redhat.com \
--cc=gfs2@lists.linux.dev \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=willy@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox