From: kernel test robot <lkp@intel.com>
To: Mike Snitzer <snitzer@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [snitzer:anna-linux-next-6.18 10/11] fs/nfs/nfstrace.h:1799:1: error: incompatible pointer types passing 'const struct nfs_local_dio *' to parameter of type 'const struct nfs_local_dio *'
Date: Fri, 19 Sep 2025 21:59:59 +0800 [thread overview]
Message-ID: <202509192136.Td3qEZgL-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git anna-linux-next-6.18
head: 79f4defe4ab1ad7b6bd760e373d8c7392d25f690
commit: f5dbc64124226ba461890dd82fe53730832f5be6 [10/11] nfs/localio: add tracepoints for misaligned DIO READ and WRITE support
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250919/202509192136.Td3qEZgL-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250919/202509192136.Td3qEZgL-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509192136.Td3qEZgL-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from fs/nfs/nfs2xdr.c:26:
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
1799 | DEFINE_NFS_LOCAL_DIO_EVENT(read);
| ^
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: error: incompatible pointer types passing 'const struct nfs_local_dio *' to parameter of type 'const struct nfs_local_dio *' [-Werror,-Wincompatible-pointer-types]
1799 | DEFINE_NFS_LOCAL_DIO_EVENT(read);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/nfs/nfstrace.h:1797:32: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1797 | TP_ARGS(inode, offset, count, local_dio))
| ^~~~~~~~~
include/linux/tracepoint.h:180:26: note: expanded from macro 'TP_ARGS'
180 | #define TP_ARGS(args...) args
| ^~~~
include/linux/tracepoint.h:608:50: note: expanded from macro '\
DEFINE_EVENT'
608 | DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
| ^~~~
note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/tracepoint.h:275:34: note: expanded from macro '__DECLARE_TRACE'
275 | __DO_TRACE_CALL(name, TP_ARGS(args)); \
| ^~~~
include/linux/tracepoint.h:180:26: note: expanded from macro 'TP_ARGS'
180 | #define TP_ARGS(args...) args
| ^~~~
include/linux/tracepoint.h:209:62: note: expanded from macro '__DO_TRACE_CALL'
209 | #define __DO_TRACE_CALL(name, args) __traceiter_##name(NULL, args)
| ^~~~
fs/nfs/nfstrace.h:1799:1: note: passing argument to parameter 'local_dio' here
fs/nfs/nfstrace.h:1796:32: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
1799 | DEFINE_NFS_LOCAL_DIO_EVENT(read);
| ^
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
>> fs/nfs/nfstrace.h:1799:1: error: incompatible pointer types passing 'const struct nfs_local_dio *' to parameter of type 'const struct nfs_local_dio *' [-Werror,-Wincompatible-pointer-types]
1799 | DEFINE_NFS_LOCAL_DIO_EVENT(read);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/nfs/nfstrace.h:1797:32: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1797 | TP_ARGS(inode, offset, count, local_dio))
| ^~~~~~~~~
include/linux/tracepoint.h:180:26: note: expanded from macro 'TP_ARGS'
180 | #define TP_ARGS(args...) args
| ^~~~
include/linux/tracepoint.h:608:50: note: expanded from macro '\
DEFINE_EVENT'
608 | DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
| ^~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/tracepoint.h:481:46: note: expanded from macro 'DECLARE_TRACE_EVENT'
481 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
| ^~~~
include/linux/tracepoint.h:139:25: note: expanded from macro 'PARAMS'
139 | #define PARAMS(args...) args
| ^~~~
include/linux/tracepoint.h:281:22: note: expanded from macro '__DECLARE_TRACE'
281 | __do_trace_##name(args); \
| ^~~~
fs/nfs/nfstrace.h:1799:1: note: passing argument to parameter 'local_dio' here
fs/nfs/nfstrace.h:1796:32: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
1800 | DEFINE_NFS_LOCAL_DIO_EVENT(write);
| ^
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: error: incompatible pointer types passing 'const struct nfs_local_dio *' to parameter of type 'const struct nfs_local_dio *' [-Werror,-Wincompatible-pointer-types]
1800 | DEFINE_NFS_LOCAL_DIO_EVENT(write);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/nfs/nfstrace.h:1797:32: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1797 | TP_ARGS(inode, offset, count, local_dio))
| ^~~~~~~~~
include/linux/tracepoint.h:180:26: note: expanded from macro 'TP_ARGS'
180 | #define TP_ARGS(args...) args
| ^~~~
include/linux/tracepoint.h:608:50: note: expanded from macro '\
DEFINE_EVENT'
608 | DECLARE_TRACE_EVENT(name, PARAMS(proto), PARAMS(args))
| ^~~~
note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/tracepoint.h:275:34: note: expanded from macro '__DECLARE_TRACE'
275 | __DO_TRACE_CALL(name, TP_ARGS(args)); \
| ^~~~
include/linux/tracepoint.h:180:26: note: expanded from macro 'TP_ARGS'
180 | #define TP_ARGS(args...) args
| ^~~~
include/linux/tracepoint.h:209:62: note: expanded from macro '__DO_TRACE_CALL'
209 | #define __DO_TRACE_CALL(name, args) __traceiter_##name(NULL, args)
| ^~~~
fs/nfs/nfstrace.h:1800:1: note: passing argument to parameter 'local_dio' here
fs/nfs/nfstrace.h:1796:32: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: warning: declaration of 'struct nfs_local_dio' will not be visible outside of this function [-Wvisibility]
1800 | DEFINE_NFS_LOCAL_DIO_EVENT(write);
| ^
fs/nfs/nfstrace.h:1796:17: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1796 | const struct nfs_local_dio *local_dio),\
| ^
fs/nfs/nfstrace.h:1800:1: error: incompatible pointer types passing 'const struct nfs_local_dio *' to parameter of type 'const struct nfs_local_dio *' [-Werror,-Wincompatible-pointer-types]
1800 | DEFINE_NFS_LOCAL_DIO_EVENT(write);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fs/nfs/nfstrace.h:1797:32: note: expanded from macro 'DEFINE_NFS_LOCAL_DIO_EVENT'
1797 | TP_ARGS(inode, offset, count, local_dio))
| ^~~~~~~~~
include/linux/tracepoint.h:180:26: note: expanded from macro 'TP_ARGS'
180 | #define TP_ARGS(args...) args
| ^~~~
include/linux/tracepoint.h:608:50: note: expanded from macro '\
DEFINE_EVENT'
vim +1799 fs/nfs/nfstrace.h
1790
1791 #define DEFINE_NFS_LOCAL_DIO_EVENT(name) \
1792 DEFINE_EVENT(nfs_local_dio_class, nfs_local_dio_##name, \
1793 TP_PROTO(const struct inode *inode, \
1794 loff_t offset, \
1795 ssize_t count, \
1796 const struct nfs_local_dio *local_dio),\
1797 TP_ARGS(inode, offset, count, local_dio))
1798
> 1799 DEFINE_NFS_LOCAL_DIO_EVENT(read);
1800 DEFINE_NFS_LOCAL_DIO_EVENT(write);
1801 DEFINE_NFS_LOCAL_DIO_EVENT(misaligned);
1802
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-09-19 14:00 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=202509192136.Td3qEZgL-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=snitzer@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.