All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:locking/core 23/23] include/linux/spinlock_api_smp.h:160:2: error: implicit declaration of function 'check_bogus_irq_restore'
@ 2020-12-19 15:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-19 15:15 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 29616 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head:   0182cedcf7301c3d8659a10f04326945518f8652
commit: 0182cedcf7301c3d8659a10f04326945518f8652 [23/23] lockdep: report broken irq restoration
config: powerpc-randconfig-r013-20201217 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=0182cedcf7301c3d8659a10f04326945518f8652
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue locking/core
        git checkout 0182cedcf7301c3d8659a10f04326945518f8652
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:318:
>> include/linux/spinlock_api_smp.h:160:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
           local_irq_restore(flags);
           ^
   include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
                   raw_local_irq_restore(flags);           \
                   ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:318:
   In file included from include/linux/spinlock_api_smp.h:190:
>> include/linux/rwlock_api_smp.h:235:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
           local_irq_restore(flags);
           ^
   include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
                   raw_local_irq_restore(flags);           \
                   ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:318:
   In file included from include/linux/spinlock_api_smp.h:190:
   include/linux/rwlock_api_smp.h:259:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
           local_irq_restore(flags);
           ^
   include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
                   raw_local_irq_restore(flags);           \
                   ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
>> include/linux/seqlock.h:105:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
           local_irq_restore(flags);
           ^
   include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
                   raw_local_irq_restore(flags);           \
                   ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
           lockdep_assert_preemption_disabled();
           ^
   include/linux/lockdep.h:592:8: note: expanded from macro 'lockdep_assert_preemption_disabled'
                        __lockdep_enabled                  &&              \
                        ^
   include/linux/lockdep.h:564:44: note: expanded from macro '__lockdep_enabled'
   #define __lockdep_enabled       (debug_locks && !this_cpu_read(lockdep_recursion))
                                                    ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
   include/asm-generic/percpu.h:130:2: note: expanded from macro '__this_cpu_generic_read_noirq'
           raw_local_irq_restore(___flags);                                \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/lockdep.h:592:8: note: expanded from macro 'lockdep_assert_preemption_disabled'
                        __lockdep_enabled                  &&              \
                        ^
   include/linux/lockdep.h:564:44: note: expanded from macro '__lockdep_enabled'
   #define __lockdep_enabled       (debug_locks && !this_cpu_read(lockdep_recursion))
                                                    ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
   include/asm-generic/percpu.h:130:2: note: expanded from macro '__this_cpu_generic_read_noirq'
           raw_local_irq_restore(___flags);                                \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/lockdep.h:592:8: note: expanded from macro 'lockdep_assert_preemption_disabled'
                        __lockdep_enabled                  &&              \
                        ^
   include/linux/lockdep.h:564:44: note: expanded from macro '__lockdep_enabled'
   #define __lockdep_enabled       (debug_locks && !this_cpu_read(lockdep_recursion))
                                                    ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
   include/asm-generic/percpu.h:130:2: note: expanded from macro '__this_cpu_generic_read_noirq'
           raw_local_irq_restore(___flags);                                \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/lockdep.h:592:8: note: expanded from macro 'lockdep_assert_preemption_disabled'
                        __lockdep_enabled                  &&              \
                        ^
   include/linux/lockdep.h:564:44: note: expanded from macro '__lockdep_enabled'
   #define __lockdep_enabled       (debug_locks && !this_cpu_read(lockdep_recursion))
                                                    ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
--
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/lockdep.h:594:9: note: expanded from macro 'lockdep_assert_preemption_disabled'
                         this_cpu_read(hardirqs_enabled)));                \
                         ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   include/linux/percpu-defs.h:321:23: note: expanded from macro '__pcpu_size_call_return'
           case 1: pscr_ret__ = stem##1(variable); break;                  \
                                ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
   include/asm-generic/percpu.h:130:2: note: expanded from macro '__this_cpu_generic_read_noirq'
           raw_local_irq_restore(___flags);                                \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/lockdep.h:594:9: note: expanded from macro 'lockdep_assert_preemption_disabled'
                         this_cpu_read(hardirqs_enabled)));                \
                         ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   include/linux/percpu-defs.h:322:23: note: expanded from macro '__pcpu_size_call_return'
           case 2: pscr_ret__ = stem##2(variable); break;                  \
                                ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
   include/asm-generic/percpu.h:130:2: note: expanded from macro '__this_cpu_generic_read_noirq'
           raw_local_irq_restore(___flags);                                \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/lockdep.h:594:9: note: expanded from macro 'lockdep_assert_preemption_disabled'
                         this_cpu_read(hardirqs_enabled)));                \
                         ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   include/linux/percpu-defs.h:323:23: note: expanded from macro '__pcpu_size_call_return'
           case 4: pscr_ret__ = stem##4(variable); break;                  \
                                ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
   include/asm-generic/percpu.h:130:2: note: expanded from macro '__this_cpu_generic_read_noirq'
           raw_local_irq_restore(___flags);                                \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:8:
   In file included from include/linux/dcache.h:10:
   include/linux/seqlock.h:271:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/lockdep.h:594:9: note: expanded from macro 'lockdep_assert_preemption_disabled'
                         this_cpu_read(hardirqs_enabled)));                \
                         ^
   include/linux/percpu-defs.h:507:29: note: expanded from macro 'this_cpu_read'
   #define this_cpu_read(pcp)              __pcpu_size_call_return(this_cpu_read_, pcp)
                                           ^
   include/linux/percpu-defs.h:324:23: note: expanded from macro '__pcpu_size_call_return'
           case 8: pscr_ret__ = stem##8(variable); break;                  \
                                ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/asm-generic/percpu.h:140:11: note: expanded from macro 'this_cpu_generic_read'
                   __ret = __this_cpu_generic_read_noirq(pcp);             \
                           ^
   include/asm-generic/percpu.h:130:2: note: expanded from macro '__this_cpu_generic_read_noirq'
           raw_local_irq_restore(___flags);                                \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:9:
>> include/linux/topology.h:102:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
           this_cpu_write(numa_node, node);
           ^
   include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
   #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
                                           ^
   include/linux/percpu-defs.h:377:11: note: expanded from macro '__pcpu_size_call'
                   case 1: stem##1(variable, __VA_ARGS__);break;           \
                           ^
   <scratch space>:177:1: note: expanded from here
   this_cpu_write_1
   ^
   include/asm-generic/percpu.h:333:36: note: expanded from macro 'this_cpu_write_1'
   #define this_cpu_write_1(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
                                           ^
   include/asm-generic/percpu.h:149:2: note: expanded from macro 'this_cpu_generic_to_op'
           raw_local_irq_restore(__flags);                                 \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:9:
>> include/linux/topology.h:102:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
   #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
                                           ^
   include/linux/percpu-defs.h:378:11: note: expanded from macro '__pcpu_size_call'
                   case 2: stem##2(variable, __VA_ARGS__);break;           \
                           ^
   <scratch space>:178:1: note: expanded from here
   this_cpu_write_2
   ^
   include/asm-generic/percpu.h:336:36: note: expanded from macro 'this_cpu_write_2'
   #define this_cpu_write_2(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
                                           ^
   include/asm-generic/percpu.h:149:2: note: expanded from macro 'this_cpu_generic_to_op'
           raw_local_irq_restore(__flags);                                 \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:9:
>> include/linux/topology.h:102:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
   #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
                                           ^
   include/linux/percpu-defs.h:379:11: note: expanded from macro '__pcpu_size_call'
                   case 4: stem##4(variable, __VA_ARGS__);break;           \
                           ^
   <scratch space>:179:1: note: expanded from here
   this_cpu_write_4
   ^
   include/asm-generic/percpu.h:339:36: note: expanded from macro 'this_cpu_write_4'
   #define this_cpu_write_4(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
                                           ^
   include/asm-generic/percpu.h:149:2: note: expanded from macro 'this_cpu_generic_to_op'
           raw_local_irq_restore(__flags);                                 \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:9:
>> include/linux/topology.h:102:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
   #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
                                           ^
   include/linux/percpu-defs.h:380:11: note: expanded from macro '__pcpu_size_call'
                   case 8: stem##8(variable, __VA_ARGS__);break;           \
                           ^
   <scratch space>:180:1: note: expanded from here
   this_cpu_write_8
   ^
   include/asm-generic/percpu.h:342:36: note: expanded from macro 'this_cpu_write_8'
   #define this_cpu_write_8(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
                                           ^
   include/asm-generic/percpu.h:149:2: note: expanded from macro 'this_cpu_generic_to_op'
           raw_local_irq_restore(__flags);                                 \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:9:
   include/linux/topology.h:137:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
           this_cpu_write(_numa_mem_, node);
           ^
   include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
   #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
                                           ^
   include/linux/percpu-defs.h:377:11: note: expanded from macro '__pcpu_size_call'
                   case 1: stem##1(variable, __VA_ARGS__);break;           \
                           ^
   <scratch space>:182:1: note: expanded from here
   this_cpu_write_1
   ^
   include/asm-generic/percpu.h:333:36: note: expanded from macro 'this_cpu_write_1'
   #define this_cpu_write_1(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
                                           ^
   include/asm-generic/percpu.h:149:2: note: expanded from macro 'this_cpu_generic_to_op'
           raw_local_irq_restore(__flags);                                 \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:9:
   include/linux/topology.h:137:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
   #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
                                           ^
   include/linux/percpu-defs.h:378:11: note: expanded from macro '__pcpu_size_call'
                   case 2: stem##2(variable, __VA_ARGS__);break;           \
                           ^
   <scratch space>:183:1: note: expanded from here
   this_cpu_write_2
   ^
   include/asm-generic/percpu.h:336:36: note: expanded from macro 'this_cpu_write_2'
   #define this_cpu_write_2(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
                                           ^
   include/asm-generic/percpu.h:149:2: note: expanded from macro 'this_cpu_generic_to_op'
           raw_local_irq_restore(__flags);                                 \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:19:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:9:
   include/linux/topology.h:137:2: error: implicit declaration of function 'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
   include/linux/percpu-defs.h:508:34: note: expanded from macro 'this_cpu_write'
   #define this_cpu_write(pcp, val)        __pcpu_size_call(this_cpu_write_, pcp, val)
                                           ^
   include/linux/percpu-defs.h:379:11: note: expanded from macro '__pcpu_size_call'
                   case 4: stem##4(variable, __VA_ARGS__);break;           \
                           ^
   <scratch space>:184:1: note: expanded from here
   this_cpu_write_4
   ^
   include/asm-generic/percpu.h:339:36: note: expanded from macro 'this_cpu_write_4'
   #define this_cpu_write_4(pcp, val)      this_cpu_generic_to_op(pcp, val, =)
                                           ^
   include/asm-generic/percpu.h:149:2: note: expanded from macro 'this_cpu_generic_to_op'
           raw_local_irq_restore(__flags);                                 \
           ^
   include/linux/irqflags.h:165:3: note: expanded from macro 'raw_local_irq_restore'
                   check_bogus_irq_restore();              \
                   ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   20 errors generated.
..


vim +/check_bogus_irq_restore +160 include/linux/spinlock_api_smp.h

69d0ee7377eef80 Heiko Carstens  2009-08-31  154  
9c1721aa4994f66 Thomas Gleixner 2009-12-03  155  static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock,
69d0ee7377eef80 Heiko Carstens  2009-08-31  156  					    unsigned long flags)
69d0ee7377eef80 Heiko Carstens  2009-08-31  157  {
5facae4f3549b5c Qian Cai        2019-09-19  158  	spin_release(&lock->dep_map, _RET_IP_);
9828ea9d75c38fe Thomas Gleixner 2009-12-03  159  	do_raw_spin_unlock(lock);
69d0ee7377eef80 Heiko Carstens  2009-08-31 @160  	local_irq_restore(flags);
69d0ee7377eef80 Heiko Carstens  2009-08-31  161  	preempt_enable();
69d0ee7377eef80 Heiko Carstens  2009-08-31  162  }
69d0ee7377eef80 Heiko Carstens  2009-08-31  163  

:::::: The code at line 160 was first introduced by commit
:::::: 69d0ee7377eef808e34ba5542b554ec97244b871 locking: Move spinlock function bodies to header file

:::::: TO: Heiko Carstens <heiko.carstens@de.ibm.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34324 bytes --]

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

only message in thread, other threads:[~2020-12-19 15:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-19 15:15 [peterz-queue:locking/core 23/23] include/linux/spinlock_api_smp.h:160:2: error: implicit declaration of function 'check_bogus_irq_restore' 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.