From: kernel test robot <lkp@intel.com>
To: Jeff Layton <jlayton@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.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
Date: Fri, 11 Feb 2022 14:02:47 +0800 [thread overview]
Message-ID: <202202111326.dzplRoUb-lkp@intel.com> (raw)
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@intel.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
reply other threads:[~2022-02-11 6:03 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=202202111326.dzplRoUb-lkp@intel.com \
--to=lkp@intel.com \
--cc=jlayton@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
/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