lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 21 Apr 2022 14:41:06 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 1760/2579] fs/afs/file.c:67:17: error: use
 of undeclared identifier 'filemap_dirty_folio'; did you mean
 'filemap_get_folio'?

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe
commit: 5906052f724ace8783a32193d743f4db58a3bfee [1760/2579] headers/deps: writeback: Remove the <linux/writeback_api.h> header from <linux/writeback.h>
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220421/202204210054.xNeXuMQd-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6cd5bf85669e3376610cfc4c4f9ca015e7b9b)
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/mingo/tip.git/commit/?id=5906052f724ace8783a32193d743f4db58a3bfee
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout 5906052f724ace8783a32193d743f4db58a3bfee
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/ fs/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from fs/afs/file.c:31:
   In file included from fs/afs/internal.h:29:
   In file included from include/net/sock.h:49:
   include/linux/netdevice.h:171:2: error: unknown type name 'local_t'
           local_t         rx_dropped;
           ^
   include/linux/netdevice.h:172:2: error: unknown type name 'local_t'
           local_t         tx_dropped;
           ^
   include/linux/netdevice.h:173:2: error: unknown type name 'local_t'
           local_t         rx_nohandler;
           ^
   include/linux/netdevice.h:174:24: error: use of undeclared identifier 'local_t'
   } __aligned(4 * sizeof(local_t));
                          ^
   In file included from fs/afs/file.c:31:
   In file included from fs/afs/internal.h:29:
   In file included from include/net/sock.h:66:
   In file included from include/net/dst.h:21:
   In file included from include/net/neighbour.h:7:
   include/linux/netdevice_api.h:1810:1: error: implicit declaration of function 'local_inc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
   DEV_CORE_STATS_INC(rx_dropped)
   ^
   include/linux/netdevice_api.h:1807:3: note: expanded from macro 'DEV_CORE_STATS_INC'
                   local_inc(&p->FIELD);                                           \
                   ^
   include/linux/netdevice_api.h:1811:1: error: implicit declaration of function 'local_inc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
   DEV_CORE_STATS_INC(tx_dropped)
   ^
   include/linux/netdevice_api.h:1807:3: note: expanded from macro 'DEV_CORE_STATS_INC'
                   local_inc(&p->FIELD);                                           \
                   ^
   include/linux/netdevice_api.h:1812:1: error: implicit declaration of function 'local_inc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
   DEV_CORE_STATS_INC(rx_nohandler)
   ^
   include/linux/netdevice_api.h:1807:3: note: expanded from macro 'DEV_CORE_STATS_INC'
                   local_inc(&p->FIELD);                                           \
                   ^
>> fs/afs/file.c:67:17: error: use of undeclared identifier 'filemap_dirty_folio'; did you mean 'filemap_get_folio'?
           .dirty_folio    = afs_dirty_folio,
                             ^~~~~~~~~~~~~~~
                             filemap_get_folio
   fs/afs/internal.h:1540:25: note: expanded from macro 'afs_dirty_folio'
   #define afs_dirty_folio filemap_dirty_folio
                           ^
   include/linux/pagemap.h:525:29: note: 'filemap_get_folio' declared here
   static inline struct folio *filemap_get_folio(struct address_space *mapping,
                               ^
>> fs/afs/file.c:67:17: error: incompatible function pointer types initializing 'bool (*)(struct address_space *, struct folio *)' (aka '_Bool (*)(struct address_space *, struct folio *)') with an expression of type 'struct folio *(struct address_space *, unsigned long)' [-Werror,-Wincompatible-function-pointer-types]
           .dirty_folio    = afs_dirty_folio,
                             ^~~~~~~~~~~~~~~
   fs/afs/internal.h:1540:25: note: expanded from macro 'afs_dirty_folio'
   #define afs_dirty_folio filemap_dirty_folio
                           ^~~~~~~~~~~~~~~~~~~
   9 errors generated.


vim +67 fs/afs/file.c

^1da177e4c3f41 Linus Torvalds          2005-04-16  63  
75bd228d5637b5 David Howells           2021-06-29  64  const struct address_space_operations afs_file_aops = {
bc899ee1c898e5 David Howells           2021-06-29  65  	.readpage	= netfs_readpage,
bc899ee1c898e5 David Howells           2021-06-29  66  	.readahead	= netfs_readahead,
8fb72b4a76933a Matthew Wilcox (Oracle  2022-02-09 @67) 	.dirty_folio	= afs_dirty_folio,
a42442dd736941 Matthew Wilcox (Oracle  2022-02-09  68) 	.launder_folio	= afs_launder_folio,
416351f28d2b31 David Howells           2007-05-09  69  	.releasepage	= afs_releasepage,
fcf227daed82a2 Matthew Wilcox (Oracle  2022-02-09  70) 	.invalidate_folio = afs_invalidate_folio,
15b4650e55e06d Nicholas Piggin         2008-10-15  71  	.write_begin	= afs_write_begin,
15b4650e55e06d Nicholas Piggin         2008-10-15  72  	.write_end	= afs_write_end,
31143d5d515ece David Howells           2007-05-09  73  	.writepage	= afs_writepage,
31143d5d515ece David Howells           2007-05-09  74  	.writepages	= afs_writepages,
^1da177e4c3f41 Linus Torvalds          2005-04-16  75  };
^1da177e4c3f41 Linus Torvalds          2005-04-16  76  

:::::: The code at line 67 was first introduced by commit
:::::: 8fb72b4a76933ae6f86725cc8e4a8190ba84d755 fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio()

:::::: TO: Matthew Wilcox (Oracle) <willy@...radead.org>
:::::: CC: Matthew Wilcox (Oracle) <willy@...radead.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ