Home
last modified time | relevance | path

Searched refs:WARN_ON_ONCE (Results 1 – 25 of 1502) sorted by relevance

12345678910>>...61

/linux-6.1.9/kernel/
Dcontext_tracking.c93 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && (seq & RCU_DYNTICKS_IDX)); in ct_kernel_exit_state()
113 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !(seq & RCU_DYNTICKS_IDX)); in ct_kernel_enter_state()
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()
141 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); 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()
186 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); 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()
[all …]
Dkthread.c114 if (WARN_ON_ONCE(to_kthread(p))) in set_kthread_struct()
141 WARN_ON_ONCE(kthread->blkcg_css); in free_kthread_struct()
593 WARN_ON_ONCE(!(k->flags & PF_NO_SETAFFINITY)); in kthread_set_per_cpu()
659 if (WARN_ON_ONCE(test_bit(KTHREAD_SHOULD_PARK, &kthread->flags))) in kthread_park()
674 WARN_ON_ONCE(!wait_task_inactive(k, TASK_PARKED)); in kthread_park()
963 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check()
965 WARN_ON_ONCE(work->worker && work->worker != worker); in kthread_insert_work_sanity_check()
1030 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn()
1035 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn()
1038 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn()
[all …]
Dfreezer.c69 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()
/linux-6.1.9/kernel/rcu/
Dsync.c78 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()
Dtree_plugin.h161 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()
164 WARN_ON_ONCE(rnp->qsmaskinitnext & ~rnp->qsmaskinit & rnp->qsmask & in rcu_preempt_ctxt_queue()
233 WARN_ON_ONCE(1); in rcu_preempt_ctxt_queue()
245 WARN_ON_ONCE(rnp->completedqs == rnp->gp_seq); in rcu_preempt_ctxt_queue()
249 WARN_ON_ONCE(!(blkd_state & RCU_GP_BLKD) != in rcu_preempt_ctxt_queue()
251 WARN_ON_ONCE(!(blkd_state & RCU_EXP_BLKD) != in rcu_preempt_ctxt_queue()
264 WARN_ON_ONCE(rdp->cpu_no_qs.b.exp); in rcu_preempt_ctxt_queue()
333 WARN_ON_ONCE(!rcu_rdp_cpu_online(rdp)); in rcu_note_context_switch()
334 WARN_ON_ONCE(!list_empty(&t->rcu_node_entry)); in rcu_note_context_switch()
[all …]
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_perfmon.c26 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()
55 if (WARN_ON_ONCE(!perfmon || vc4->active_perfmon)) 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()
[all …]
/linux-6.1.9/security/landlock/
Druleset.c82 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()
280 if (WARN_ON_ONCE(src->num_layers != 1 || dst->num_layers < 1)) { in merge_ruleset()
293 if (WARN_ON_ONCE(walker_rule->num_layers != 1)) { in merge_ruleset()
[all …]
/linux-6.1.9/fs/notify/fanotify/
Dfanotify.h110 WARN_ON_ONCE(info->dir_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_dir_fh_len()
126 WARN_ON_ONCE(info->dir2_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_dir2_fh_len()
140 WARN_ON_ONCE(info->file_fh_totlen < FANOTIFY_FH_HDR_LEN)) in fanotify_info_file_fh_len()
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()
195 if (WARN_ON_ONCE(info->file_fh_totlen > 0) || in fanotify_info_set_dir2_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()
[all …]
/linux-6.1.9/kernel/time/
Dclocksource-wdtest.c118 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()
/linux-6.1.9/kernel/sched/
Didle.c30 WARN_ON_ONCE(cpu_idle_force_poll < 0); in cpu_idle_poll_ctrl()
249 if (WARN_ON_ONCE(irqs_disabled())) in cpuidle_idle_call()
366 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle_precise()
367 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle_precise()
368 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle_precise()
369 WARN_ON_ONCE(!(current->flags & PF_NO_SETAFFINITY)); in play_idle_precise()
370 WARN_ON_ONCE(!duration_ns); in play_idle_precise()
371 WARN_ON_ONCE(current->mm); in play_idle_precise()
417 return WARN_ON_ONCE(1); in balance_idle()
/linux-6.1.9/io_uring/
Drefs.h16 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()
/linux-6.1.9/arch/x86/include/asm/
Dentry-common.h31 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()
/linux-6.1.9/arch/powerpc/kernel/
Dirq_64.c121 WARN_ON_ONCE(mfmsr() & MSR_EE); in replay_soft_interrupts()
223 WARN_ON_ONCE(in_nmi() || in_hardirq()); in arch_local_irq_restore()
249 WARN_ON_ONCE(!(mfmsr() & MSR_EE)); in arch_local_irq_restore()
256 WARN_ON_ONCE(!irq_happened); in arch_local_irq_restore()
260 WARN_ON_ONCE(mfmsr() & MSR_EE); in arch_local_irq_restore()
278 WARN_ON_ONCE(!(irq_happened & PACA_IRQ_HARD_DIS)); in arch_local_irq_restore()
285 if (WARN_ON_ONCE(mfmsr() & MSR_EE)) in arch_local_irq_restore()
/linux-6.1.9/fs/crypto/
Dcrypto.c88 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()
266 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_decrypt_pagecache_blocks()
269 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
/linux-6.1.9/lib/
Dref_tracker.c39 WARN_ON_ONCE(leak); in ref_tracker_dir_exit()
40 WARN_ON_ONCE(refcount_read(&dir->untracked) != 1); in ref_tracker_dir_exit()
41 WARN_ON_ONCE(refcount_read(&dir->no_tracker) != 1); in ref_tracker_dir_exit()
77 WARN_ON_ONCE(dir->dead); in ref_tracker_alloc()
110 WARN_ON_ONCE(dir->dead); in ref_tracker_free()
136 WARN_ON_ONCE(1); in ref_tracker_free()
/linux-6.1.9/fs/iomap/
Diter.c16 if (WARN_ON_ONCE(iter->processed > iomap_length(iter))) in iomap_iter_advance()
33 WARN_ON_ONCE(iter->iomap.offset > iter->pos); in iomap_iter_done()
34 WARN_ON_ONCE(iter->iomap.length == 0); in iomap_iter_done()
35 WARN_ON_ONCE(iter->iomap.offset + iter->iomap.length <= iter->pos); in iomap_iter_done()
Dbuffered-io.c80 WARN_ON_ONCE(atomic_read(&iop->read_bytes_pending)); in iomap_page_release()
81 WARN_ON_ONCE(atomic_read(&iop->write_bytes_pending)); in iomap_page_release()
82 WARN_ON_ONCE(bitmap_full(iop->uptodate, nr_blocks) != in iomap_page_release()
226 if (WARN_ON_ONCE(size > PAGE_SIZE - poff)) in iomap_read_inline_data()
228 if (WARN_ON_ONCE(size > PAGE_SIZE - in iomap_read_inline_data()
231 if (WARN_ON_ONCE(size > iomap->length)) in iomap_read_inline_data()
350 WARN_ON_ONCE(!ctx.cur_folio_in_bio); in iomap_read_folio()
352 WARN_ON_ONCE(ctx.cur_folio_in_bio); in iomap_read_folio()
488 WARN_ON_ONCE(folio_test_writeback(folio)); in iomap_invalidate_folio()
493 WARN_ON_ONCE(!folio_test_uptodate(folio) && in iomap_invalidate_folio()
[all …]
/linux-6.1.9/scripts/coccinelle/misc/
Dwarn.cocci71 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-6.1.9/kernel/livepatch/
Dtransition.c110 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
117 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition()
145 if (WARN_ON_ONCE(klp_target_state != KLP_PATCHED)) in klp_cancel_transition()
391 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_try_complete_transition()
467 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_start_transition()
511 WARN_ON_ONCE(klp_target_state != KLP_UNDEFINED); in klp_init_transition()
530 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
540 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
/linux-6.1.9/arch/powerpc/sysdev/xics/
Dicp-hv.c33 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-6.1.9/mm/
Dhighmem.c162 if (WARN_ON_ONCE(addr >= PKMAP_ADDR(0) && in __kmap_to_page()
167 if (WARN_ON_ONCE(base >= __fix_to_virt(FIX_KMAP_END) && in __kmap_to_page()
464 WARN_ON_ONCE(in_hardirq() && !irqs_disabled()); in kmap_local_idx_push()
593 WARN_ON_ONCE(1); in kunmap_local_indexed()
603 WARN_ON_ONCE(addr < PAGE_OFFSET); in kunmap_local_indexed()
609 WARN_ON_ONCE(addr != __fix_to_virt(FIX_KMAP_BEGIN + idx)); in kunmap_local_indexed()
646 WARN_ON_ONCE(pte_val(pteval) != 0); in __kmap_local_sched_out()
649 if (WARN_ON_ONCE(pte_none(pteval))) in __kmap_local_sched_out()
683 WARN_ON_ONCE(pte_val(pteval) != 0); in __kmap_local_sched_in()
686 if (WARN_ON_ONCE(pte_none(pteval))) in __kmap_local_sched_in()
[all …]
/linux-6.1.9/arch/arm64/kernel/
Dperf_regs.c16 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()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/
Diwl-scd.h56 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()
/linux-6.1.9/arch/powerpc/mm/
Dpageattr.c57 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()
/linux-6.1.9/include/asm-generic/
Dbug.h109 #define WARN_ON_ONCE(condition) ({ \ macro
145 #ifndef WARN_ON_ONCE
146 #define WARN_ON_ONCE(condition) \ macro
180 #define WARN_ON_ONCE(condition) WARN_ON(condition) macro

12345678910>>...61