All of lore.kernel.org
 help / color / mirror / Atom feed
* [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 *'
@ 2025-09-19 13:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-19 13:59 UTC (permalink / raw)
  To: Mike Snitzer; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-19 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-19 13:59 [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 *' kernel test robot

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.