All of lore.kernel.org
 help / color / mirror / Atom feed
* [djwong-xfs:health-monitoring 256/271] drivers/md/bcache/util.h:284:8: error: redefinition of 'struct time_stats'
@ 2024-10-30  6:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-30  6:11 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git health-monitoring
head:   ab0339aa32f49d7cce50abab1e0e3e4d648d787c
commit: 4cb3c7a46a03de4e1ec96028e893aaf724c0b4f8 [256/271] vfs: add time stats collection for i_rwsem and the mmap invalidation lock
config: sparc-allmodconfig (https://download.01.org/0day-ci/archive/20241030/202410301411.nny4YFwn-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241030/202410301411.nny4YFwn-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/202410301411.nny4YFwn-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/md/bcache/bset.h:9,
                    from drivers/md/bcache/bcache.h:194,
                    from drivers/md/bcache/alloc.c:64:
>> drivers/md/bcache/util.h:284:8: error: redefinition of 'struct time_stats'
     284 | struct time_stats {
         |        ^~~~~~~~~~
   In file included from include/linux/fs.h:49,
                    from include/linux/highmem.h:5,
                    from include/linux/bvec.h:10,
                    from include/linux/blk_types.h:10,
                    from include/linux/bio.h:10,
                    from drivers/md/bcache/bcache.h:181:
   include/linux/time_stats.h:69:8: note: originally defined here
      69 | struct time_stats {
         |        ^~~~~~~~~~
--
   In file included from fs/bcachefs/util.h:25,
                    from fs/bcachefs/vstructs.h:5,
                    from fs/bcachefs/bcachefs_format.h:80,
                    from fs/bcachefs/bcachefs.h:207,
                    from fs/bcachefs/acl.c:3:
>> fs/bcachefs/time_stats.h:33:8: error: redefinition of 'struct time_unit'
      33 | struct time_unit {
         |        ^~~~~~~~~
   In file included from include/linux/fs.h:49,
                    from include/linux/highmem.h:5,
                    from include/linux/bvec.h:10,
                    from include/linux/blk_types.h:10,
                    from include/linux/bio.h:10,
                    from fs/bcachefs/bcachefs.h:188:
   include/linux/time_stats.h:32:8: note: originally defined here
      32 | struct time_unit {
         |        ^~~~~~~~~
>> fs/bcachefs/time_stats.h:55:8: error: redefinition of 'struct quantiles'
      55 | struct quantiles {
         |        ^~~~~~~~~
   include/linux/time_stats.h:54:8: note: originally defined here
      54 | struct quantiles {
         |        ^~~~~~~~~
>> fs/bcachefs/time_stats.h:56:16: error: redefinition of 'struct quantile_entry'
      56 |         struct quantile_entry {
         |                ^~~~~~~~~~~~~~
   include/linux/time_stats.h:55:16: note: originally defined here
      55 |         struct quantile_entry {
         |                ^~~~~~~~~~~~~~
>> fs/bcachefs/time_stats.h:62:8: error: redefinition of 'struct time_stat_buffer'
      62 | struct time_stat_buffer {
         |        ^~~~~~~~~~~~~~~~
   include/linux/time_stats.h:61:8: note: originally defined here
      61 | struct time_stat_buffer {
         |        ^~~~~~~~~~~~~~~~
>> fs/bcachefs/time_stats.h:64:16: error: redefinition of 'struct time_stat_buffer_entry'
      64 |         struct time_stat_buffer_entry {
         |                ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/time_stats.h:63:16: note: originally defined here
      63 |         struct time_stat_buffer_entry {
         |                ^~~~~~~~~~~~~~~~~~~~~~
>> fs/bcachefs/time_stats.h:98:33: error: conflicting types for 'time_stats_to_quantiles'; have 'struct quantiles *(struct bch2_time_stats *)'
      98 | static inline struct quantiles *time_stats_to_quantiles(struct bch2_time_stats *stats)
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/time_stats.h:98:33: note: previous definition of 'time_stats_to_quantiles' with type 'struct quantiles *(struct time_stats *)'
      98 | static inline struct quantiles *time_stats_to_quantiles(struct time_stats *stats)
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~
>> fs/bcachefs/time_stats.h:130:20: error: conflicting types for 'track_event_change'; have 'bool(struct bch2_time_stats *, bool)' {aka '_Bool(struct bch2_time_stats *, _Bool)'}
     130 | static inline bool track_event_change(struct bch2_time_stats *stats, bool v)
         |                    ^~~~~~~~~~~~~~~~~~
   include/linux/time_stats.h:130:20: note: previous definition of 'track_event_change' with type 'bool(struct time_stats *, bool)' {aka '_Bool(struct time_stats *, _Bool)'}
     130 | static inline bool track_event_change(struct time_stats *stats, bool v)
         |                    ^~~~~~~~~~~~~~~~~~


vim +284 drivers/md/bcache/util.h

cafe563591446c Kent Overstreet 2013-03-23  283  
cafe563591446c Kent Overstreet 2013-03-23 @284  struct time_stats {
65d22e911bfc4f Kent Overstreet 2013-07-31  285  	spinlock_t	lock;
cafe563591446c Kent Overstreet 2013-03-23  286  	/*
cafe563591446c Kent Overstreet 2013-03-23  287  	 * all fields are in nanoseconds, averages are ewmas stored left shifted
cafe563591446c Kent Overstreet 2013-03-23  288  	 * by 8
cafe563591446c Kent Overstreet 2013-03-23  289  	 */
cafe563591446c Kent Overstreet 2013-03-23  290  	uint64_t	max_duration;
cafe563591446c Kent Overstreet 2013-03-23  291  	uint64_t	average_duration;
cafe563591446c Kent Overstreet 2013-03-23  292  	uint64_t	average_frequency;
cafe563591446c Kent Overstreet 2013-03-23  293  	uint64_t	last;
cafe563591446c Kent Overstreet 2013-03-23  294  };
cafe563591446c Kent Overstreet 2013-03-23  295  

:::::: The code at line 284 was first introduced by commit
:::::: cafe563591446cf80bfbc2fe3bc72a2e36cf1060 bcache: A block layer cache

:::::: TO: Kent Overstreet <koverstreet@google.com>
:::::: CC: Kent Overstreet <koverstreet@google.com>

-- 
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:[~2024-10-30  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30  6:11 [djwong-xfs:health-monitoring 256/271] drivers/md/bcache/util.h:284:8: error: redefinition of 'struct time_stats' 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.