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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202240158.V9IDShLu-lkp@intel.com>
Date:   Thu, 24 Feb 2022 01:53:32 +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 2151/2340] net/ceph/messenger.c:537:3:
 error: implicit declaration of function '__free_page'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   97c5eeb4de3ad324ed2a4656b46465299cfd010a
commit: d7899a3cb5a99cae76ab9cec969146e459e7deff [2151/2340] headers/deps: mm: Optimize <linux/mm_api.h> dependencies, remove <linux/gfp_api.h> inclusion
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220224/202202240158.V9IDShLu-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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=d7899a3cb5a99cae76ab9cec969146e459e7deff
        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 d7899a3cb5a99cae76ab9cec969146e459e7deff
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/

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

Note: the mingo-tip/sched/headers HEAD 97c5eeb4de3ad324ed2a4656b46465299cfd010a builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   In file included from net/ceph/messenger.c:40:
   In file included from include/linux/ceph/libceph.h:16:
   include/linux/pagemap.h:362:9: error: implicit declaration of function 'folio_alloc' [-Werror,-Wimplicit-function-declaration]
           return folio_alloc(gfp, order);
                  ^
   include/linux/pagemap.h:362:9: note: did you mean 'bio_alloc'?
   include/linux/bio.h:427:27: note: 'bio_alloc' declared here
   static inline struct bio *bio_alloc(gfp_t gfp_mask, unsigned short nr_iovecs)
                             ^
   In file included from net/ceph/messenger.c:40:
   In file included from include/linux/ceph/libceph.h:16:
   include/linux/pagemap.h:362:9: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct folio *' [-Wint-conversion]
           return folio_alloc(gfp, order);
                  ^~~~~~~~~~~~~~~~~~~~~~~
>> net/ceph/messenger.c:537:3: error: implicit declaration of function '__free_page' [-Werror,-Wimplicit-function-declaration]
                   __free_page(con->bounce_page);
                   ^
   1 warning and 2 errors generated.


vim +/__free_page +537 net/ceph/messenger.c

31b8006e1d79e1 fs/ceph/messenger.c  Sage Weil    2009-10-06  520  
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  521  static void ceph_con_reset_protocol(struct ceph_connection *con)
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  522  {
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  523  	dout("%s con %p\n", __func__, con);
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  524  
6503e0b69c9d4d net/ceph/messenger.c Ilya Dryomov 2020-11-09  525  	ceph_con_close_socket(con);
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  526  	if (con->in_msg) {
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  527  		WARN_ON(con->in_msg->con != con);
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  528  		ceph_msg_put(con->in_msg);
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  529  		con->in_msg = NULL;
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  530  	}
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  531  	if (con->out_msg) {
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  532  		WARN_ON(con->out_msg->con != con);
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  533  		ceph_msg_put(con->out_msg);
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  534  		con->out_msg = NULL;
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  535  	}
038b8d1d1ab1cc net/ceph/messenger.c Ilya Dryomov 2021-12-30  536  	if (con->bounce_page) {
038b8d1d1ab1cc net/ceph/messenger.c Ilya Dryomov 2021-12-30 @537  		__free_page(con->bounce_page);
038b8d1d1ab1cc net/ceph/messenger.c Ilya Dryomov 2021-12-30  538  		con->bounce_page = NULL;
038b8d1d1ab1cc net/ceph/messenger.c Ilya Dryomov 2021-12-30  539  	}
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  540  
cd1a677cad9940 net/ceph/messenger.c Ilya Dryomov 2020-11-19  541  	if (ceph_msgr2(from_msgr(con->msgr)))
cd1a677cad9940 net/ceph/messenger.c Ilya Dryomov 2020-11-19  542  		ceph_con_v2_reset_protocol(con);
cd1a677cad9940 net/ceph/messenger.c Ilya Dryomov 2020-11-19  543  	else
566050e17e53db net/ceph/messenger.c Ilya Dryomov 2020-11-12  544  		ceph_con_v1_reset_protocol(con);
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  545  }
3596f4c1241d3c net/ceph/messenger.c Ilya Dryomov 2020-11-06  546  

:::::: The code at line 537 was first introduced by commit
:::::: 038b8d1d1ab1cce11a158d30bf080ff41a2cfd15 libceph: optionally use bounce buffer on recv path in crc mode

:::::: TO: Ilya Dryomov <idryomov@...il.com>
:::::: CC: Ilya Dryomov <idryomov@...il.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ