All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [djwong-xfs:health-monitoring 256/271] drivers/md/bcache/util.h:284:8: error: redefinition of 'struct time_stats'
Date: Wed, 30 Oct 2024 14:11:27 +0800	[thread overview]
Message-ID: <202410301411.nny4YFwn-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-10-30  6:11 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=202410301411.nny4YFwn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=darrick.wong@oracle.com \
    --cc=oe-kbuild-all@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 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.