All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [paulmckrcu:dev 42/42] include/linux/ratelimit.h:44:33: error: incompatible type for argument 1 of '_raw_spin_lock_irqsave'
Date: Fri, 21 Mar 2025 13:37:40 +0800	[thread overview]
Message-ID: <202503211321.hs5OjZIa-lkp@intel.com> (raw)

tree:   https://github.com/paulmckrcu/linux dev
head:   eb8edf55ec5fb6db81f970bb09e9aefa17fc49f4
commit: eb8edf55ec5fb6db81f970bb09e9aefa17fc49f4 [42/42] squash! drm/amd/pm: Avoid open-coded use of ratelimit_state structure's ->missed field
config: arc-randconfig-002-20250321 (https://download.01.org/0day-ci/archive/20250321/202503211321.hs5OjZIa-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250321/202503211321.hs5OjZIa-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/202503211321.hs5OjZIa-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/sched.h:2186,
                    from arch/arc/kernel/asm-offsets.c:6:
   include/linux/ratelimit.h: In function 'ratelimit_state_reset_interval':
>> include/linux/ratelimit.h:44:33: error: incompatible type for argument 1 of '_raw_spin_lock_irqsave'
      44 |         raw_spin_lock_irqsave(rs->lock, flags);
         |                               ~~^~~~~~
         |                                 |
         |                                 raw_spinlock_t {aka struct raw_spinlock}
   include/linux/spinlock.h:244:48: note: in definition of macro 'raw_spin_lock_irqsave'
     244 |                 flags = _raw_spin_lock_irqsave(lock);   \
         |                                                ^~~~
   In file included from include/linux/spinlock.h:312,
                    from include/linux/sched.h:2186,
                    from arch/arc/kernel/asm-offsets.c:6:
   include/linux/spinlock_api_smp.h:32:65: note: expected 'raw_spinlock_t *' {aka 'struct raw_spinlock *'} but argument is of type 'raw_spinlock_t' {aka 'struct raw_spinlock'}
      32 | unsigned long __lockfunc _raw_spin_lock_irqsave(raw_spinlock_t *lock)
         |                                                 ~~~~~~~~~~~~~~~~^~~~
   make[3]: *** [scripts/Makefile.build:102: arch/arc/kernel/asm-offsets.s] Error 1 shuffle=16458656
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1264: prepare0] Error 2 shuffle=16458656
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=16458656
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:251: __sub-make] Error 2 shuffle=16458656
   make: Target 'prepare' not remade because of errors.


vim +/_raw_spin_lock_irqsave +44 include/linux/ratelimit.h

    39	
    40	static inline void ratelimit_state_reset_interval(struct ratelimit_state *rs, int interval_init)
    41	{
    42		unsigned long flags;
    43	
  > 44		raw_spin_lock_irqsave(rs->lock, flags);
    45		rs->interval = interval_init;
    46		rs->begin = 0;
    47		rs->printed = 0;
    48		ratelimit_state_reset_miss(rs);
    49		raw_spin_unlock_irqrestore(&rs->lock, flags);
    50	}
    51	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2025-03-21  5:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-21  5:37 kernel test robot [this message]
2025-03-21 17:35 ` [paulmckrcu:dev 42/42] include/linux/ratelimit.h:44:33: error: incompatible type for argument 1 of '_raw_spin_lock_irqsave' Paul E. McKenney

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=202503211321.hs5OjZIa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paulmck@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.