* [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
@ 2025-03-09 15:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-09 15:29 UTC (permalink / raw)
To: Matthew Wilcox (Oracle); +Cc: llvm, oe-kbuild-all, gfs2, Andreas Gruenbacher
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-09 15:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-09 15:29 [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 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox