| /linux/kernel/ |
| A D | context_tracking.c | 128 WARN_ON_ONCE(ct_nmi_nesting() != CT_NESTING_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_nmi_nesting()); in ct_kernel_enter() 214 WARN_ON_ONCE(ct_nmi_nesting() <= 0); in ct_nmi_exit() 215 WARN_ON_ONCE(!rcu_is_watching_curr_cpu()); in ct_nmi_exit() 264 WARN_ON_ONCE(ct_nmi_nesting() < 0); in ct_nmi_enter() 319 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !raw_irqs_disabled()); in ct_idle_enter() 474 WARN_ON_ONCE(!current->mm); in __ct_user_enter() [all …]
|
| A D | jump_label.c | 203 WARN_ON_ONCE(atomic_read(&key->enabled) != 1); in static_key_enable_cpuslocked() 234 WARN_ON_ONCE(atomic_read(&key->enabled) != 0); in static_key_disable_cpuslocked() 276 WARN_ON_ONCE(v < 0); in static_key_dec_not_one() 282 if (WARN_ON_ONCE(v == 0)) in static_key_dec_not_one() 306 if (WARN_ON_ONCE(val == -1)) in __static_key_slow_dec_cpuslocked() 311 if (WARN_ON_ONCE(val == 0)) in __static_key_slow_dec_cpuslocked() 411 WARN_ON_ONCE(key->type & JUMP_TYPE_LINKED); in static_key_entries() 449 WARN_ON_ONCE((unsigned long)entries & JUMP_TYPE_MASK); in static_key_set_entries() 588 if (WARN_ON_ONCE(!static_key_initialized)) in jump_label_init_ro() 630 WARN_ON_ONCE(!static_key_linked(key)); in static_key_mod() [all …]
|
| 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() 992 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check() 1059 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn() 1064 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn() 1067 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn() 1173 WARN_ON_ONCE(work->worker != worker); in kthread_flush_work() 1284 WARN_ON_ONCE(work->worker != worker); in kthread_mod_delayed_work() 1325 WARN_ON_ONCE(work->worker != worker); in __kthread_cancel_work_sync() 1445 WARN_ON_ONCE(tsk->mm); in kthread_use_mm() [all …]
|
| /linux/io_uring/ |
| 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() 38 WARN_ON_ONCE(!(req->flags & REQ_F_REFCOUNT)); in req_ref_put() 39 WARN_ON_ONCE(req_ref_zero_or_close_to_overflow(req)); in req_ref_put()
|
| /linux/kernel/rcu/ |
| A D | sync.c | 62 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_func() 63 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_func() 113 WARN_ON_ONCE(rsp->gp_count); in rcu_sync_enter() 154 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_IDLE); in rcu_sync_exit() 157 WARN_ON_ONCE(rsp->gp_count == 0); in rcu_sync_exit() 177 WARN_ON_ONCE(READ_ONCE(rsp->gp_state) == GP_PASSED); in rcu_sync_dtor() 180 WARN_ON_ONCE(rsp->gp_count); in rcu_sync_dtor() 188 WARN_ON_ONCE(rsp->gp_state != GP_IDLE); in rcu_sync_dtor()
|
| A D | tree_plugin.h | 172 WARN_ON_ONCE(rdp->mynode != rnp); in rcu_preempt_ctxt_queue() 173 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_ctxt_queue() 244 WARN_ON_ONCE(1); in rcu_preempt_ctxt_queue() 260 WARN_ON_ONCE(!(blkd_state & RCU_GP_BLKD) != in rcu_preempt_ctxt_queue() 277 WARN_ON_ONCE(rdp->cpu_no_qs.b.exp); in rcu_preempt_ctxt_queue() 346 WARN_ON_ONCE(!rcu_rdp_cpu_online(rdp)); in rcu_note_context_switch() 530 WARN_ON_ONCE(rnp != t->rcu_blocked_node); in rcu_preempt_deferred_qs_irqrestore() 531 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_deferred_qs_irqrestore() 720 WARN_ON_ONCE(rnp->qsmask); in rcu_preempt_check_blocked_tasks() 968 WARN_ON_ONCE(rnp->qsmask); in rcu_preempt_check_blocked_tasks() [all …]
|
| A D | tree_nocb.h | 102 WARN_ON_ONCE(smp_processor_id() != rdp->cpu); in rcu_nocb_bypass_lock() 314 WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp)); in rcu_nocb_do_flush_bypass() 676 WARN_ON_ONCE(my_rdp->nocb_gp_rdp != my_rdp); in nocb_gp_wait() 745 WARN_ON_ONCE(wasempty && in nocb_gp_wait() 900 WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp)); in nocb_cb_wait() 985 WARN_ON_ONCE(rdp->nocb_gp_rdp != rdp); in do_nocb_deferred_wakeup_timer() 1146 WARN_ON_ONCE(cpu_online(rdp->cpu)); in rcu_nocb_rdp_offload() 1154 if (WARN_ON_ONCE(!rdp_gp->nocb_gp_kthread)) in rcu_nocb_rdp_offload() 1252 if (WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp))) in lazy_rcu_shrink_scan() 1657 WARN_ON_ONCE(1); /* Should be dead code! */ in call_rcu_nocb() [all …]
|
| /linux/drivers/gpu/drm/vc4/ |
| 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() 134 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_close_file() 154 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_create_ioctl() 208 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_destroy_ioctl() [all …]
|
| /linux/drivers/irqchip/ |
| A D | irq-msi-lib.c | 34 if (WARN_ON_ONCE(!pops)) in msi_lib_init_dev_msi_info() 43 if (WARN_ON_ONCE(domain != real_parent)) in msi_lib_init_dev_msi_info() 46 WARN_ON_ONCE(1); in msi_lib_init_dev_msi_info() 56 if (WARN_ON_ONCE(!IS_ENABLED(CONFIG_PCI_MSI))) in msi_lib_init_dev_msi_info() 67 if (WARN_ON_ONCE(info->flags)) in msi_lib_init_dev_msi_info() 82 WARN_ON_ONCE(1); in msi_lib_init_dev_msi_info()
|
| /linux/fs/notify/fanotify/ |
| 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 …]
|
| /linux/arch/powerpc/kernel/ |
| 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()
|
| /linux/security/landlock/ |
| A D | ruleset.c | 96 WARN_ON_ONCE(1); in is_object_pointer() 125 WARN_ON_ONCE(!id.key.object); in create_rule() 153 WARN_ON_ONCE(1); in get_root() 210 if (WARN_ON_ONCE(!layers)) in insert_rule() 235 if (WARN_ON_ONCE(num_layers != 1)) in insert_rule() 244 if (WARN_ON_ONCE(this->num_layers != 1)) in insert_rule() 252 if (WARN_ON_ONCE(this->layers[0].level == 0)) in insert_rule() 372 if (WARN_ON_ONCE(!src)) in merge_ruleset() 375 if (WARN_ON_ONCE(!dst || !dst->hierarchy)) in merge_ruleset() 472 if (WARN_ON_ONCE(!parent->hierarchy)) { in inherit_ruleset() [all …]
|
| /linux/fs/crypto/ |
| A D | crypto.c | 52 if (WARN_ON_ONCE(!fscrypt_bounce_page_pool)) { in fscrypt_alloc_bounce_page() 95 WARN_ON_ONCE(index > U32_MAX); in fscrypt_generate_iv() 96 WARN_ON_ONCE(ci->ci_inode->i_ino > U32_MAX); in fscrypt_generate_iv() 99 WARN_ON_ONCE(index > U32_MAX); in fscrypt_generate_iv() 121 if (WARN_ON_ONCE(len <= 0)) in fscrypt_crypt_data_unit() 123 if (WARN_ON_ONCE(len % FSCRYPT_CONTENTS_ALIGNMENT != 0)) in fscrypt_crypt_data_unit() 196 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_encrypt_pagecache_blocks() 199 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, du_size))) in fscrypt_encrypt_pagecache_blocks() 244 if (WARN_ON_ONCE(inode->i_sb->s_cop->supports_subblock_data_units)) in fscrypt_encrypt_block_inplace() 278 if (WARN_ON_ONCE(!folio_test_locked(folio))) in fscrypt_decrypt_pagecache_blocks() [all …]
|
| /linux/kernel/time/ |
| A D | clocksource-wdtest.c | 119 WARN_ON_ONCE(clocksource_wdtest_jiffies.uncertainty_margin != TICK_NSEC); in wdtest_func() 124 WARN_ON_ONCE(j1 == j2); in wdtest_func() 134 WARN_ON_ONCE(clocksource_wdtest_ktime.uncertainty_margin < NSEC_PER_USEC); in wdtest_func() 140 WARN_ON_ONCE(time_before(j2, j1 + NSEC_PER_USEC)); in wdtest_func() 154 WARN_ON_ONCE(READ_ONCE(wdtest_ktime_read_ndelays)); in wdtest_func() 155 WARN_ON_ONCE((i <= max_retries) != in wdtest_func() 164 WARN_ON_ONCE(!(clocksource_wdtest_ktime.flags & CLOCK_SOURCE_UNSTABLE)); in wdtest_func()
|
| /linux/kernel/sched/ |
| A D | idle.c | 30 WARN_ON_ONCE(cpu_idle_force_poll < 0); in cpu_idle_poll_ctrl() 243 if (WARN_ON_ONCE(irqs_disabled())) in cpuidle_idle_call() 389 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle_precise() 390 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise() 391 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise() 392 WARN_ON_ONCE(!(current->flags & PF_NO_SETAFFINITY)); in play_idle_precise() 393 WARN_ON_ONCE(!duration_ns); in play_idle_precise() 394 WARN_ON_ONCE(current->mm); in play_idle_precise() 441 return WARN_ON_ONCE(1); in balance_idle()
|
| /linux/fs/iomap/ |
| 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()
|
| /linux/arch/x86/include/asm/ |
| A D | entry-common.h | 32 WARN_ON_ONCE(flags & mask); in arch_enter_from_user_mode() 35 WARN_ON_ONCE(!user_mode(regs)); in arch_enter_from_user_mode() 42 WARN_ON_ONCE(!on_thread_stack()); in arch_enter_from_user_mode() 43 WARN_ON_ONCE(regs != task_pt_regs(current)); in arch_enter_from_user_mode()
|
| /linux/scripts/coccinelle/misc/ |
| 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);
|
| /linux/kernel/bpf/ |
| A D | memalloc.c | 184 WARN_ON_ONCE(local_inc_return(&c->active) != 1); in inc_active() 343 WARN_ON_ONCE(tgt->unit_size != c->unit_size); in free_bulk() 344 WARN_ON_ONCE(tgt->percpu_size != c->percpu_size); in free_bulk() 370 WARN_ON_ONCE(tgt->unit_size != c->unit_size); in __free_by_rcu() 371 WARN_ON_ONCE(tgt->percpu_size != c->percpu_size); in __free_by_rcu() 415 WARN_ON_ONCE(!llist_empty(&c->waiting_for_gp)); in check_free_by_rcu() 654 WARN_ON_ONCE(!llist_empty(&c->free_llist)); in check_mem_cache() 656 WARN_ON_ONCE(!llist_empty(&c->free_by_rcu)); in check_mem_cache() 658 WARN_ON_ONCE(!llist_empty(&c->waiting_for_gp)); in check_mem_cache() 920 if (WARN_ON_ONCE(idx < 0)) in bpf_mem_free() [all …]
|
| 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()
|
| /linux/arch/powerpc/sysdev/xics/ |
| 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()
|
| /linux/include/linux/ |
| A D | srcu.h | 305 WARN_ON_ONCE(in_nmi()); in srcu_down_read() 320 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock() 336 WARN_ON_ONCE(idx & ~0x1); in srcu_read_unlock_nmisafe() 361 WARN_ON_ONCE(idx & ~0x1); in srcu_up_read() 362 WARN_ON_ONCE(in_nmi()); in srcu_up_read()
|
| /linux/drivers/gpu/drm/msm/adreno/ |
| A D | adreno_gpu.h | 276 WARN_ON_ONCE(gpu->info->family >= ADRENO_6XX_GEN1); in adreno_patchid() 282 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_revn() 294 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a2xx() 301 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a20x() 470 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a610_family() 486 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a630_family() 493 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a660_family() 501 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a650_family() 509 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a640_family() 536 if (WARN_ON_ONCE(!gpu->info)) in adreno_is_a740_family()
|
| /linux/kernel/livepatch/ |
| 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_TRANSITION_PATCHED)) in klp_cancel_transition() 458 WARN_ON_ONCE(klp_target_state == KLP_TRANSITION_IDLE); in klp_try_complete_transition() 535 WARN_ON_ONCE(klp_target_state == KLP_TRANSITION_IDLE); in klp_start_transition() 581 WARN_ON_ONCE(klp_target_state != KLP_TRANSITION_IDLE); in klp_init_transition() 600 WARN_ON_ONCE(task->patch_state != KLP_TRANSITION_IDLE); in klp_init_transition() 610 WARN_ON_ONCE(task->patch_state != KLP_TRANSITION_IDLE); in klp_init_transition()
|
| /linux/mm/ |
| A D | highmem.c | 173 if (WARN_ON_ONCE(addr >= PKMAP_ADDR(0) && in __kmap_to_page() 178 if (WARN_ON_ONCE(base >= __fix_to_virt(FIX_KMAP_END) && in __kmap_to_page() 477 WARN_ON_ONCE(in_hardirq() && !irqs_disabled()); in kmap_local_idx_push() 606 WARN_ON_ONCE(1); in kunmap_local_indexed() 616 WARN_ON_ONCE(addr < PAGE_OFFSET); in kunmap_local_indexed() 622 WARN_ON_ONCE(addr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in kunmap_local_indexed() 659 WARN_ON_ONCE(pte_val(pteval) != 0); in __kmap_local_sched_out() 662 if (WARN_ON_ONCE(pte_none(pteval))) in __kmap_local_sched_out() 696 WARN_ON_ONCE(pte_val(pteval) != 0); in __kmap_local_sched_in() 699 if (WARN_ON_ONCE(pte_none(pteval))) in __kmap_local_sched_in() [all …]
|