All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:locking/core 5/7] include/asm-generic/current.h:7:23: error: 'typeof' applied to a bit-field
Date: Thu, 10 Aug 2023 05:23:35 +0800	[thread overview]
Message-ID: <202308100554.MBGJbzAA-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head:   47a35f56e63994577fabd8fbc58b6551416f8250
commit: 876dda04d9e0849c1d112180ec0e35cab6fbe494 [5/7] sched: Provide rt_mutex specific scheduler helpers
config: openrisc-randconfig-r015-20230809 (https://download.01.org/0day-ci/archive/20230810/202308100554.MBGJbzAA-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230810/202308100554.MBGJbzAA-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/202308100554.MBGJbzAA-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from ./arch/openrisc/include/generated/asm/bug.h:1,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/openrisc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:79,
                    from include/linux/spinlock.h:56,
                    from include/linux/wait.h:9,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from include/linux/highmem.h:5,
                    from kernel/sched/core.c:9:
   kernel/sched/core.c: In function 'rt_mutex_pre_schedule':
>> include/asm-generic/current.h:7:23: error: 'typeof' applied to a bit-field
       7 | #define get_current() (current_thread_info()->task)
         |                       ^
   include/asm-generic/bug.h:168:32: note: in definition of macro 'WARN_ON'
     168 |         int __ret_warn_on = !!(condition);                              \
         |                                ^~~~~~~~~
   kernel/sched/core.c:7068:9: note: in expansion of macro 'lockdep_assert'
    7068 |         lockdep_assert(!fetch_and_set(current->sched_rt_mutex, 1));
         |         ^~~~~~~~~~~~~~
   kernel/sched/core.c:7068:25: note: in expansion of macro 'fetch_and_set'
    7068 |         lockdep_assert(!fetch_and_set(current->sched_rt_mutex, 1));
         |                         ^~~~~~~~~~~~~
   include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
       8 | #define current get_current()
         |                 ^~~~~~~~~~~
   kernel/sched/core.c:7068:39: note: in expansion of macro 'current'
    7068 |         lockdep_assert(!fetch_and_set(current->sched_rt_mutex, 1));
         |                                       ^~~~~~~
   kernel/sched/core.c: In function 'rt_mutex_post_schedule':
>> include/asm-generic/current.h:7:23: error: 'typeof' applied to a bit-field
       7 | #define get_current() (current_thread_info()->task)
         |                       ^
   include/asm-generic/bug.h:168:32: note: in definition of macro 'WARN_ON'
     168 |         int __ret_warn_on = !!(condition);                              \
         |                                ^~~~~~~~~
   kernel/sched/core.c:7081:9: note: in expansion of macro 'lockdep_assert'
    7081 |         lockdep_assert(fetch_and_set(current->sched_rt_mutex, 0));
         |         ^~~~~~~~~~~~~~
   kernel/sched/core.c:7081:24: note: in expansion of macro 'fetch_and_set'
    7081 |         lockdep_assert(fetch_and_set(current->sched_rt_mutex, 0));
         |                        ^~~~~~~~~~~~~
   include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
       8 | #define current get_current()
         |                 ^~~~~~~~~~~
   kernel/sched/core.c:7081:38: note: in expansion of macro 'current'
    7081 |         lockdep_assert(fetch_and_set(current->sched_rt_mutex, 0));
         |                                      ^~~~~~~


vim +/typeof +7 include/asm-generic/current.h

aafe4dbed0bf6c Arnd Bergmann 2009-05-13  6  
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 @7  #define get_current() (current_thread_info()->task)
aafe4dbed0bf6c Arnd Bergmann 2009-05-13  8  #define current get_current()
aafe4dbed0bf6c Arnd Bergmann 2009-05-13  9  

:::::: The code at line 7 was first introduced by commit
:::::: aafe4dbed0bf6cbdb2e9f03e1d42f8a540d8541d asm-generic: add generic versions of common headers

:::::: TO: Arnd Bergmann <arnd@arndb.de>
:::::: CC: Arnd Bergmann <arnd@klappe2.(none)>

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

                 reply	other threads:[~2023-08-09 21:23 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=202308100554.MBGJbzAA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.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.