/openbmc/linux/kernel/ |
H A D | context_tracking.c | 128 WARN_ON_ONCE(ct_dynticks_nmi_nesting() != DYNTICK_IRQ_NONIDLE); in ct_kernel_exit() 130 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in ct_kernel_exit() 168 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !raw_irqs_disabled()); in ct_kernel_enter() 170 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && oldval < 0); in ct_kernel_enter() 188 WARN_ON_ONCE(ct_dynticks_nmi_nesting()); in ct_kernel_enter() 214 WARN_ON_ONCE(ct_dynticks_nmi_nesting() <= 0); in ct_nmi_exit() 215 WARN_ON_ONCE(rcu_dynticks_curr_cpu_in_eqs()); in ct_nmi_exit() 264 WARN_ON_ONCE(ct_dynticks_nmi_nesting() < 0); in ct_nmi_enter() 319 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !raw_irqs_disabled()); in ct_idle_enter() 472 WARN_ON_ONCE(!current->mm); in __ct_user_enter() [all …]
|
H A D | kthread.c | 115 if (WARN_ON_ONCE(to_kthread(p))) in set_kthread_struct() 142 WARN_ON_ONCE(kthread->blkcg_css); in free_kthread_struct() 981 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check() 1048 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn() 1053 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn() 1056 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn() 1162 WARN_ON_ONCE(work->worker != worker); in kthread_flush_work() 1273 WARN_ON_ONCE(work->worker != worker); in kthread_mod_delayed_work() 1314 WARN_ON_ONCE(work->worker != worker); in __kthread_cancel_work_sync() 1434 WARN_ON_ONCE(tsk->mm); in kthread_use_mm() [all …]
|
H A D | freezer.c | 69 WARN_ON_ONCE(state && !(state & TASK_NORMAL)); in __refrigerator() 122 WARN_ON_ONCE(!(state & TASK_NORMAL)); in __set_task_frozen() 129 WARN_ON_ONCE(debug_locks && p->lockdep_depth); in __set_task_frozen() 199 if (WARN_ON_ONCE(freezing(p))) in __thaw_task()
|
/openbmc/linux/kernel/rcu/ |
H A D | sync.c | 78 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_func() 79 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_func() 129 WARN_ON_ONCE(rsp->gp_count); in rcu_sync_enter() 170 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_exit() 171 WARN_ON_ONCE(READ_ONCE(rsp->gp_count) == 0); in rcu_sync_exit() 193 WARN_ON_ONCE(READ_ONCE(rsp->gp_count)); in rcu_sync_dtor() 194 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_dtor() 204 WARN_ON_ONCE(rsp->gp_state != GP_IDLE); in rcu_sync_dtor()
|
H A D | tree_plugin.h | 161 WARN_ON_ONCE(rdp->mynode != rnp); in rcu_preempt_ctxt_queue() 162 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_ctxt_queue() 233 WARN_ON_ONCE(1); in rcu_preempt_ctxt_queue() 249 WARN_ON_ONCE(!(blkd_state & RCU_GP_BLKD) != in rcu_preempt_ctxt_queue() 266 WARN_ON_ONCE(rdp->cpu_no_qs.b.exp); in rcu_preempt_ctxt_queue() 335 WARN_ON_ONCE(!rcu_rdp_cpu_online(rdp)); in rcu_note_context_switch() 519 WARN_ON_ONCE(rnp != t->rcu_blocked_node); in rcu_preempt_deferred_qs_irqrestore() 520 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_deferred_qs_irqrestore() 709 WARN_ON_ONCE(rnp->qsmask); in rcu_preempt_check_blocked_tasks() 957 WARN_ON_ONCE(rnp->qsmask); in rcu_preempt_check_blocked_tasks() [all …]
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_perfmon.c | 26 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_get() 40 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_put() 52 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_start() 72 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_stop() 75 if (WARN_ON_ONCE(!vc4->active_perfmon || in vc4_perfmon_stop() 93 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_find() 108 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_open_file() 129 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_close_file() 149 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_create_ioctl() 203 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_destroy_ioctl() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | irq_64.c | 107 WARN_ON_ONCE(mfmsr() & MSR_EE); in __replay_soft_interrupts() 217 WARN_ON_ONCE(in_nmi()); in arch_local_irq_restore() 218 WARN_ON_ONCE(in_hardirq()); in arch_local_irq_restore() 219 WARN_ON_ONCE(local_paca->irq_happened & PACA_IRQ_REPLAYING); in arch_local_irq_restore() 247 WARN_ON_ONCE(!(mfmsr() & MSR_EE)); in arch_local_irq_restore() 260 WARN_ON_ONCE(!irq_happened); in arch_local_irq_restore() 264 WARN_ON_ONCE(mfmsr() & MSR_EE); in arch_local_irq_restore() 283 WARN_ON_ONCE(!(irq_happened & PACA_IRQ_HARD_DIS)); in arch_local_irq_restore() 290 if (WARN_ON_ONCE(mfmsr() & MSR_EE)) in arch_local_irq_restore()
|
/openbmc/linux/security/landlock/ |
H A D | ruleset.c | 82 if (WARN_ON_ONCE(num_layers >= LANDLOCK_MAX_NUM_LAYERS)) in create_rule() 156 if (WARN_ON_ONCE(!object || !layers)) in insert_rule() 173 if (WARN_ON_ONCE(num_layers != 1)) in insert_rule() 182 if (WARN_ON_ONCE(this->num_layers != 1)) in insert_rule() 184 if (WARN_ON_ONCE(this->layers[0].level != 0)) in insert_rule() 190 if (WARN_ON_ONCE(this->layers[0].level == 0)) in insert_rule() 269 if (WARN_ON_ONCE(!src)) in merge_ruleset() 272 if (WARN_ON_ONCE(!dst || !dst->hierarchy)) in merge_ruleset() 293 if (WARN_ON_ONCE(walker_rule->num_layers != 1)) { in merge_ruleset() 346 if (WARN_ON_ONCE(!parent->hierarchy)) { in inherit_ruleset() [all …]
|
/openbmc/linux/fs/notify/fanotify/ |
H A D | fanotify.h | 183 if (WARN_ON_ONCE(info->dir2_fh_totlen > 0) || in fanotify_info_set_dir_fh() 184 WARN_ON_ONCE(info->file_fh_totlen > 0) || in fanotify_info_set_dir_fh() 185 WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_dir_fh() 186 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_dir_fh() 196 WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_dir2_fh() 197 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_dir2_fh() 206 if (WARN_ON_ONCE(info->name_len > 0) || in fanotify_info_set_file_fh() 207 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_set_file_fh() 216 if (WARN_ON_ONCE(name->len > NAME_MAX) || in fanotify_info_copy_name() 217 WARN_ON_ONCE(info->name2_len > 0)) in fanotify_info_copy_name() [all …]
|
/openbmc/linux/kernel/time/ |
H A D | clocksource-wdtest.c | 118 WARN_ON_ONCE(clocksource_wdtest_jiffies.uncertainty_margin != TICK_NSEC); in wdtest_func() 123 WARN_ON_ONCE(j1 == j2); in wdtest_func() 133 WARN_ON_ONCE(clocksource_wdtest_ktime.uncertainty_margin < NSEC_PER_USEC); in wdtest_func() 139 WARN_ON_ONCE(time_before(j2, j1 + NSEC_PER_USEC)); in wdtest_func() 152 WARN_ON_ONCE(READ_ONCE(wdtest_ktime_read_ndelays)); in wdtest_func() 153 WARN_ON_ONCE((i <= max_cswd_read_retries) != in wdtest_func() 162 WARN_ON_ONCE(!(clocksource_wdtest_ktime.flags & CLOCK_SOURCE_UNSTABLE)); in wdtest_func()
|
/openbmc/linux/io_uring/ |
H A D | refs.h | 16 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_inc_not_zero() 25 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_put_and_test() 31 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_get() 32 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_get()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | entry-common.h | 31 WARN_ON_ONCE(flags & mask); in arch_enter_from_user_mode() 34 WARN_ON_ONCE(!user_mode(regs)); in arch_enter_from_user_mode() 41 WARN_ON_ONCE(!on_thread_stack()); in arch_enter_from_user_mode() 42 WARN_ON_ONCE(regs != task_pt_regs(current)); in arch_enter_from_user_mode()
|
/openbmc/linux/kernel/sched/ |
H A D | idle.c | 30 WARN_ON_ONCE(cpu_idle_force_poll < 0); in cpu_idle_poll_ctrl() 228 if (WARN_ON_ONCE(irqs_disabled())) in cpuidle_idle_call() 345 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle_precise() 346 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise() 347 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise() 348 WARN_ON_ONCE(!(current->flags & PF_NO_SETAFFINITY)); in play_idle_precise() 349 WARN_ON_ONCE(!duration_ns); in play_idle_precise() 350 WARN_ON_ONCE(current->mm); in play_idle_precise() 397 return WARN_ON_ONCE(1); in balance_idle()
|
/openbmc/linux/fs/iomap/ |
H A D | iter.c | 32 if (WARN_ON_ONCE(iter->processed > iomap_length(iter))) in iomap_iter_advance() 49 WARN_ON_ONCE(iter->iomap.offset > iter->pos); in iomap_iter_done() 50 WARN_ON_ONCE(iter->iomap.length == 0); in iomap_iter_done() 51 WARN_ON_ONCE(iter->iomap.offset + iter->iomap.length <= iter->pos); in iomap_iter_done() 52 WARN_ON_ONCE(iter->iomap.flags & IOMAP_F_STALE); in iomap_iter_done()
|
/openbmc/linux/fs/crypto/ |
H A D | crypto.c | 88 WARN_ON_ONCE(lblk_num > U32_MAX); in fscrypt_generate_iv() 89 WARN_ON_ONCE(ci->ci_inode->i_ino > U32_MAX); in fscrypt_generate_iv() 92 WARN_ON_ONCE(lblk_num > U32_MAX); in fscrypt_generate_iv() 114 if (WARN_ON_ONCE(len <= 0)) in fscrypt_crypt_block() 116 if (WARN_ON_ONCE(len % FSCRYPT_CONTENTS_ALIGNMENT != 0)) in fscrypt_crypt_block() 187 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_encrypt_pagecache_blocks() 190 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks() 265 if (WARN_ON_ONCE(!folio_test_locked(folio))) in fscrypt_decrypt_pagecache_blocks() 268 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
|
/openbmc/linux/scripts/coccinelle/misc/ |
H A D | warn.cocci | 71 WARN_ON_ONCE(1); 78 *WARN_ON_ONCE(1); 84 cocci.print_main("printk + WARN_ON_ONCE can be just WARN_ONCE",p) 90 msg = "SUGGESTION: printk + WARN_ON_ONCE can be just WARN_ONCE" 101 -WARN_ON_ONCE(1);
|
/openbmc/linux/arch/powerpc/sysdev/xics/ |
H A D | icp-hv.c | 33 WARN_ON_ONCE(1); in icp_hv_get_xirr() 45 WARN_ON_ONCE(1); in icp_hv_set_cppr() 55 WARN_ON_ONCE(1); in icp_hv_set_xirr() 71 WARN_ON_ONCE(1); in icp_hv_set_qirr()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | perf_regs.c | 16 if (WARN_ON_ONCE(!system_supports_sve())) in perf_ext_regs_value() 25 WARN_ON_ONCE(true); in perf_ext_regs_value() 32 if (WARN_ON_ONCE((u32)idx >= PERF_REG_ARM64_EXTENDED_MAX)) in perf_reg_value()
|
/openbmc/linux/include/linux/ |
H A D | srcu.h | 270 WARN_ON_ONCE(in_nmi()); in srcu_down_read() 285 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock() 301 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock_nmisafe() 326 WARN_ON_ONCE(idx & ~0x1); in srcu_up_read() 327 WARN_ON_ONCE(in_nmi()); in srcu_up_read()
|
/openbmc/linux/kernel/bpf/ |
H A D | bpf_task_storage.c | 106 WARN_ON_ONCE(!rcu_read_lock_held()); in bpf_pid_task_storage_lookup_elem() 140 WARN_ON_ONCE(!rcu_read_lock_held()); in bpf_pid_task_storage_update_elem() 191 WARN_ON_ONCE(!rcu_read_lock_held()); in bpf_pid_task_storage_delete_elem() 236 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_5() 254 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_5() 271 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_2() 291 WARN_ON_ONCE(!bpf_rcu_lock_held()); in BPF_CALL_2()
|
H A D | memalloc.c | 183 WARN_ON_ONCE(local_inc_return(&c->active) != 1); in inc_active() 342 WARN_ON_ONCE(tgt->unit_size != c->unit_size); in free_bulk() 410 WARN_ON_ONCE(!llist_empty(&c->waiting_for_gp)); in check_free_by_rcu() 536 if (WARN_ON_ONCE(percpu)) in bpf_mem_alloc_init() 584 WARN_ON_ONCE(!llist_empty(&c->free_by_rcu_ttrace)); in check_mem_cache() 586 WARN_ON_ONCE(!llist_empty(&c->free_llist)); in check_mem_cache() 587 WARN_ON_ONCE(!llist_empty(&c->free_llist_extra)); in check_mem_cache() 588 WARN_ON_ONCE(!llist_empty(&c->free_by_rcu)); in check_mem_cache() 590 WARN_ON_ONCE(!llist_empty(&c->waiting_for_gp)); in check_mem_cache() 843 if (WARN_ON_ONCE(idx < 0)) in bpf_mem_free() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-scd.h | 56 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_WRPTR() 64 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_RDPTR() 72 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_STATUS_BITS()
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | pageattr.c | 57 WARN_ON_ONCE(1); in change_page_attr() 78 if (WARN_ON_ONCE(is_vmalloc_or_module_addr((void *)addr) && in change_memory_attr() 92 if (WARN_ON_ONCE(region != VMALLOC_REGION_ID && region != IO_REGION_ID)) in change_memory_attr()
|
/openbmc/linux/block/ |
H A D | holder.c | 65 if (WARN_ON_ONCE(!disk->slave_dir)) in bd_link_disk_holder() 84 WARN_ON_ONCE(!bdev->bd_holder); in bd_link_disk_holder() 140 if (WARN_ON_ONCE(!disk->slave_dir)) in bd_unlink_disk_holder() 145 if (!WARN_ON_ONCE(holder == NULL) && !--holder->refcnt) { in bd_unlink_disk_holder()
|
/openbmc/linux/kernel/livepatch/ |
H A D | transition.c | 132 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition() 139 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition() 167 if (WARN_ON_ONCE(klp_target_state != KLP_PATCHED)) in klp_cancel_transition() 458 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_try_complete_transition() 535 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_start_transition() 581 WARN_ON_ONCE(klp_target_state != KLP_UNDEFINED); in klp_init_transition() 600 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition() 610 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
|