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: <202202111326.dzplRoUb-lkp@intel.com>
Date:   Fri, 11 Feb 2022 14:02:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jeff Layton <jlayton@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [jlayton:ceph-fscrypt 57/57] net/ceph/messenger_v2.c:1783:37:
 warning: declaration of 'struct cepn_connection' will not be visible outside
 of this function

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscrypt
head:   adf69efebc954db1aa7af7b93febbc2a1b51dc6c
commit: adf69efebc954db1aa7af7b93febbc2a1b51dc6c [57/57] libceph: define a structure to track SPARSE_READ reply processing
config: i386-randconfig-a015 (https://download.01.org/0day-ci/archive/20220211/202202111326.dzplRoUb-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project f6685f774697c85d6a352dcea013f46a99f9fe31)
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/jlayton/linux.git/commit/?id=adf69efebc954db1aa7af7b93febbc2a1b51dc6c
        git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
        git fetch --no-tags jlayton ceph-fscrypt
        git checkout adf69efebc954db1aa7af7b93febbc2a1b51dc6c
        # 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/ceph/

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

All warnings (new ones prefixed by >>):

>> net/ceph/messenger_v2.c:1783:37: warning: declaration of 'struct cepn_connection' will not be visible outside of this function [-Wvisibility]
   static int prepare_read_data(struct cepn_connection *con)
                                       ^
   net/ceph/messenger_v2.c:1787:5: error: incomplete definition of type 'struct cepn_connection'
           con->in_data_crc = -1;
           ~~~^
   net/ceph/messenger_v2.c:1783:37: note: forward declaration of 'struct cepn_connection'
   static int prepare_read_data(struct cepn_connection *con)
                                       ^
   net/ceph/messenger_v2.c:1788:47: error: incomplete definition of type 'struct cepn_connection'
           ret = prepare_read_data_len(con, data_len(con->in_msg));
                                                     ~~~^
   net/ceph/messenger_v2.c:1783:37: note: forward declaration of 'struct cepn_connection'
   static int prepare_read_data(struct cepn_connection *con)
                                       ^
   net/ceph/messenger_v2.c:1790:6: error: incomplete definition of type 'struct cepn_connection'
                   con->v2.in_state = IN_S_PREPARE_READ_DATA_CONT;
                   ~~~^
   net/ceph/messenger_v2.c:1783:37: note: forward declaration of 'struct cepn_connection'
   static int prepare_read_data(struct cepn_connection *con)
                                       ^
   net/ceph/messenger_v2.c:1842:24: error: use of undeclared identifier 'iter'
           if (!iov_iter_is_bvec(iter))
                                 ^
   net/ceph/messenger_v2.c:1881:10: error: implicit declaration of function 'handle_epilogue' [-Werror,-Wimplicit-function-declaration]
                   return handle_epilogue(con);
                          ^
   net/ceph/messenger_v2.c:1881:10: note: did you mean 'decode_epilogue'?
   net/ceph/messenger_v2.c:573:12: note: 'decode_epilogue' declared here
   static int decode_epilogue(void *p, u32 *front_crc, u32 *middle_crc,
              ^
   net/ceph/messenger_v2.c:1898:24: error: use of undeclared identifier 'iter'
           if (!iov_iter_is_kvec(iter))
                                 ^
   net/ceph/messenger_v2.c:1951:28: error: incompatible pointer types passing 'struct ceph_connection *' to parameter of type 'struct cepn_connection *' [-Werror,-Wincompatible-pointer-types]
                   return prepare_read_data(con);
                                            ^~~
   net/ceph/messenger_v2.c:1783:54: note: passing argument to parameter 'con' here
   static int prepare_read_data(struct cepn_connection *con)
                                                        ^
   net/ceph/messenger_v2.c:2938:12: error: static declaration of 'handle_epilogue' follows non-static declaration
   static int handle_epilogue(struct ceph_connection *con)
              ^
   net/ceph/messenger_v2.c:1881:10: note: previous implicit declaration is here
                   return handle_epilogue(con);
                          ^
   net/ceph/messenger_v2.c:3012:28: error: incompatible pointer types passing 'struct ceph_connection *' to parameter of type 'struct cepn_connection *' [-Werror,-Wincompatible-pointer-types]
                           ret = prepare_read_data(con);
                                                   ^~~
   net/ceph/messenger_v2.c:1783:54: note: passing argument to parameter 'con' here
   static int prepare_read_data(struct cepn_connection *con)
                                                        ^
   net/ceph/messenger_v2.c:3014:8: error: use of undeclared identifier 'IN_S_PREPARE_READ_SPARSE_DATA'
                   case IN_S_PREPARE_READ_SPARSE_DATA:
                        ^
   1 warning and 10 errors generated.


vim +1783 net/ceph/messenger_v2.c

  1782	
> 1783	static int prepare_read_data(struct cepn_connection *con)
  1784	{
  1785		int ret;
  1786	
  1787		con->in_data_crc = -1;
  1788		ret = prepare_read_data_len(con, data_len(con->in_msg));
  1789		if (ret == 0)
  1790			con->v2.in_state = IN_S_PREPARE_READ_DATA_CONT;
  1791		return ret;
  1792	}
  1793	

---
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