From: kernel test robot <lkp@intel.com>
To: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-nfs@vger.kernel.org
Subject: [nfs:testing 15/15] fs/nfs/./nfs4trace.h:1775:25: error: incomplete definition of type 'struct pnfs_layout_hdr'
Date: Thu, 6 Aug 2020 00:46:45 +0800 [thread overview]
Message-ID: <202008060041.ery295iy%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 9565 bytes --]
tree: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git testing
head: a27925cbc7cf786c14868613e1c9731203e0044b
commit: a27925cbc7cf786c14868613e1c9731203e0044b [15/15] NFS: Add layout segment info to pnfs read/write/commit tracepoints
config: x86_64-randconfig-a004-20200805 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e8b7edafc3dd0ab85903eebdfdb3bb7cc2d66743)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout a27925cbc7cf786c14868613e1c9731203e0044b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from fs/nfs/nfs4trace.c:13:
In file included from fs/nfs/./nfs4trace.h:2305:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:727:
>> fs/nfs/./nfs4trace.h:1775:25: error: incomplete definition of type 'struct pnfs_layout_hdr'
nfs_stateid_hash(&lo->plh_stateid);
~~^
include/trace/trace_events.h:674:33: note: expanded from macro 'TP_fast_assign'
#define TP_fast_assign(args...) args
^~~~
include/trace/trace_events.h:707:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/nfs_xdr.h:322:9: note: forward declaration of 'struct pnfs_layout_hdr'
struct pnfs_layout_hdr *layout;
^
In file included from fs/nfs/nfs4trace.c:13:
In file included from fs/nfs/./nfs4trace.h:2305:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:727:
fs/nfs/./nfs4trace.h:1850:25: error: incomplete definition of type 'struct pnfs_layout_hdr'
nfs_stateid_hash(&lo->plh_stateid);
~~^
include/trace/trace_events.h:674:33: note: expanded from macro 'TP_fast_assign'
#define TP_fast_assign(args...) args
^~~~
include/trace/trace_events.h:707:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/nfs_xdr.h:322:9: note: forward declaration of 'struct pnfs_layout_hdr'
struct pnfs_layout_hdr *layout;
^
In file included from fs/nfs/nfs4trace.c:13:
In file included from fs/nfs/./nfs4trace.h:2305:
In file included from include/trace/define_trace.h:102:
In file included from include/trace/trace_events.h:727:
fs/nfs/./nfs4trace.h:1917:26: error: incomplete definition of type 'struct pnfs_layout_hdr'
nfs_stateid_hash(&lo->plh_stateid) : 0;
~~^
include/trace/trace_events.h:674:33: note: expanded from macro 'TP_fast_assign'
#define TP_fast_assign(args...) args
^~~~
include/trace/trace_events.h:707:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/nfs_xdr.h:322:9: note: forward declaration of 'struct pnfs_layout_hdr'
struct pnfs_layout_hdr *layout;
^
In file included from fs/nfs/nfs4trace.c:13:
In file included from fs/nfs/./nfs4trace.h:2305:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:90:
>> fs/nfs/./nfs4trace.h:1775:25: error: incomplete definition of type 'struct pnfs_layout_hdr'
nfs_stateid_hash(&lo->plh_stateid);
~~^
include/trace/trace_events.h:674:33: note: expanded from macro 'TP_fast_assign'
#define TP_fast_assign(args...) args
^~~~
include/trace/perf.h:66:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/nfs_xdr.h:322:9: note: forward declaration of 'struct pnfs_layout_hdr'
struct pnfs_layout_hdr *layout;
^
In file included from fs/nfs/nfs4trace.c:13:
In file included from fs/nfs/./nfs4trace.h:2305:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:90:
fs/nfs/./nfs4trace.h:1850:25: error: incomplete definition of type 'struct pnfs_layout_hdr'
nfs_stateid_hash(&lo->plh_stateid);
~~^
include/trace/trace_events.h:674:33: note: expanded from macro 'TP_fast_assign'
#define TP_fast_assign(args...) args
^~~~
include/trace/perf.h:66:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/nfs_xdr.h:322:9: note: forward declaration of 'struct pnfs_layout_hdr'
struct pnfs_layout_hdr *layout;
^
In file included from fs/nfs/nfs4trace.c:13:
In file included from fs/nfs/./nfs4trace.h:2305:
In file included from include/trace/define_trace.h:103:
In file included from include/trace/perf.h:90:
fs/nfs/./nfs4trace.h:1917:26: error: incomplete definition of type 'struct pnfs_layout_hdr'
nfs_stateid_hash(&lo->plh_stateid) : 0;
~~^
include/trace/trace_events.h:674:33: note: expanded from macro 'TP_fast_assign'
#define TP_fast_assign(args...) args
^~~~
include/trace/perf.h:66:4: note: expanded from macro 'DECLARE_EVENT_CLASS'
{ assign; } \
^~~~~~
include/linux/nfs_xdr.h:322:9: note: forward declaration of 'struct pnfs_layout_hdr'
struct pnfs_layout_hdr *layout;
^
6 errors generated.
vim +1775 fs/nfs/./nfs4trace.h
1729
1730 DECLARE_EVENT_CLASS(nfs4_read_event,
1731 TP_PROTO(
1732 const struct nfs_pgio_header *hdr,
1733 int error
1734 ),
1735
1736 TP_ARGS(hdr, error),
1737
1738 TP_STRUCT__entry(
1739 __field(dev_t, dev)
1740 __field(u32, fhandle)
1741 __field(u64, fileid)
1742 __field(loff_t, offset)
1743 __field(u32, arg_count)
1744 __field(u32, res_count)
1745 __field(unsigned long, error)
1746 __field(int, stateid_seq)
1747 __field(u32, stateid_hash)
1748 __field(int, layoutstateid_seq)
1749 __field(u32, layoutstateid_hash)
1750 ),
1751
1752 TP_fast_assign(
1753 const struct inode *inode = hdr->inode;
1754 const struct nfs_inode *nfsi = NFS_I(inode);
1755 const struct nfs_fh *fh = hdr->args.fh ?
1756 hdr->args.fh : &nfsi->fh;
1757 const struct nfs4_state *state =
1758 hdr->args.context->state;
1759 const struct pnfs_layout_segment *lseg = hdr->lseg;
1760 const struct pnfs_layout_hdr *lo = lseg->pls_layout;
1761
1762 __entry->dev = inode->i_sb->s_dev;
1763 __entry->fileid = nfsi->fileid;
1764 __entry->fhandle = nfs_fhandle_hash(fh);
1765 __entry->offset = hdr->args.offset;
1766 __entry->arg_count = hdr->args.count;
1767 __entry->res_count = hdr->res.count;
1768 __entry->error = error < 0 ? -error : 0;
1769 __entry->stateid_seq =
1770 be32_to_cpu(state->stateid.seqid);
1771 __entry->stateid_hash =
1772 nfs_stateid_hash(&state->stateid);
1773 __entry->layoutstateid_seq = lseg->pls_seq;
1774 __entry->layoutstateid_hash =
> 1775 nfs_stateid_hash(&lo->plh_stateid);
1776 ),
1777
1778 TP_printk(
1779 "error=%ld (%s) fileid=%02x:%02x:%llu fhandle=0x%08x "
1780 "offset=%lld count=%u res=%u stateid=%d:0x%08x "
1781 "layoutstateid=%d:0x%08x",
1782 -__entry->error,
1783 show_nfsv4_errors(__entry->error),
1784 MAJOR(__entry->dev), MINOR(__entry->dev),
1785 (unsigned long long)__entry->fileid,
1786 __entry->fhandle,
1787 (long long)__entry->offset,
1788 __entry->arg_count, __entry->res_count,
1789 __entry->stateid_seq, __entry->stateid_hash,
1790 __entry->layoutstateid_seq, __entry->layoutstateid_hash
1791 )
1792 );
1793 #define DEFINE_NFS4_READ_EVENT(name) \
1794 DEFINE_EVENT(nfs4_read_event, name, \
1795 TP_PROTO( \
1796 const struct nfs_pgio_header *hdr, \
1797 int error \
1798 ), \
1799 TP_ARGS(hdr, error))
1800 DEFINE_NFS4_READ_EVENT(nfs4_read);
1801 #ifdef CONFIG_NFS_V4_1
1802 DEFINE_NFS4_READ_EVENT(nfs4_pnfs_read);
1803 #endif /* CONFIG_NFS_V4_1 */
1804
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 43757 bytes --]
reply other threads:[~2020-08-05 19:55 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=202008060041.ery295iy%lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@hammerspace.com \
/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