/linux-5.19.10/drivers/gpu/drm/vc4/ |
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() 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() 148 if (WARN_ON_ONCE(vc4->is_vc5)) in vc4_perfmon_create_ioctl() [all …]
|
/linux-5.19.10/kernel/rcu/ |
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()
|
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() 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 …]
|
D | tree.c | 292 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && (seq & 0x1)); in rcu_dynticks_eqs_enter() 312 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !(seq & 0x1)); in rcu_dynticks_eqs_exit() 420 WARN_ON_ONCE(!(seq & 0x1)); in rcu_momentary_dyntick_idle() 458 WARN_ON_ONCE(!nesting && !is_idle_task(current)); in rcu_is_cpu_rrupt_from_idle() 624 WARN_ON_ONCE(rdp->dynticks_nmi_nesting != DYNTICK_IRQ_NONIDLE); in rcu_eqs_enter() 626 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_eqs_enter() 637 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); in rcu_eqs_enter() 761 WARN_ON_ONCE(rdp->dynticks_nmi_nesting <= 0); in rcu_nmi_exit() 762 WARN_ON_ONCE(rcu_dynticks_curr_cpu_in_eqs()); in rcu_nmi_exit() 867 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && oldval < 0); in rcu_eqs_exit() [all …]
|
D | tree_nocb.h | 104 WARN_ON_ONCE(smp_processor_id() != rdp->cpu); in rcu_nocb_bypass_lock() 123 WARN_ON_ONCE(smp_processor_id() != rdp->cpu); in rcu_nocb_wait_contended() 124 while (WARN_ON_ONCE(atomic_read(&rdp->nocb_lock_contended))) in rcu_nocb_wait_contended() 303 WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp)); in rcu_nocb_do_flush_bypass() 348 WARN_ON_ONCE(!rcu_nocb_do_flush_bypass(rdp, NULL, j)); in rcu_nocb_try_flush_bypass() 397 WARN_ON_ONCE(rcu_cblist_n_cbs(&rdp->nocb_bypass)); in rcu_nocb_try_bypass() 426 WARN_ON_ONCE(!rcu_nocb_flush_bypass(rdp, NULL, j)); in rcu_nocb_try_bypass() 427 WARN_ON_ONCE(rcu_cblist_n_cbs(&rdp->nocb_bypass)); in rcu_nocb_try_bypass() 441 WARN_ON_ONCE(rcu_cblist_n_cbs(&rdp->nocb_bypass)); in rcu_nocb_try_bypass() 588 WARN_ON_ONCE(!rcu_segcblist_test_flags(cblist, SEGCBLIST_KTHREAD_GP)); in nocb_gp_update_state_deoffloading() [all …]
|
/linux-5.19.10/security/landlock/ |
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() 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 …]
|
D | fs.c | 176 if (WARN_ON_ONCE(ruleset->num_layers != 1)) in landlock_append_fs_rule() 401 if (WARN_ON_ONCE(!layer_masks)) in scope_to_request() 496 if (WARN_ON_ONCE(!domain || !path)) in check_access_path_dual() 500 if (WARN_ON_ONCE(domain->num_layers < 1 || !layer_masks_parent1)) in check_access_path_dual() 504 if (WARN_ON_ONCE(!dentry_child1)) in check_access_path_dual() 515 if (WARN_ON_ONCE(dentry_child1 || dentry_child2)) in check_access_path_dual() 687 WARN_ON_ONCE(1); in get_mode_access() 729 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) in collect_domain_accesses() 753 if (dir == mnt_root || WARN_ON_ONCE(IS_ROOT(dir))) in collect_domain_accesses() 832 if (WARN_ON_ONCE(dom->num_layers < 1)) in current_check_refer_path() [all …]
|
/linux-5.19.10/fs/notify/fanotify/ |
D | fanotify.h | 110 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-5.19.10/kernel/time/ |
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()
|
/linux-5.19.10/kernel/sched/ |
D | idle.c | 30 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-5.19.10/arch/x86/include/asm/ |
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()
|
/linux-5.19.10/fs/crypto/ |
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() 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-5.19.10/lib/ |
D | ref_tracker.c | 39 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-5.19.10/scripts/coccinelle/misc/ |
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-5.19.10/fs/iomap/ |
D | iter.c | 16 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()
|
D | buffered-io.c | 72 WARN_ON_ONCE(atomic_read(&iop->read_bytes_pending)); in iomap_page_release() 73 WARN_ON_ONCE(atomic_read(&iop->write_bytes_pending)); in iomap_page_release() 74 WARN_ON_ONCE(bitmap_full(iop->uptodate, nr_blocks) != in iomap_page_release() 221 if (WARN_ON_ONCE(size > PAGE_SIZE - poff)) in iomap_read_inline_data() 223 if (WARN_ON_ONCE(size > PAGE_SIZE - in iomap_read_inline_data() 226 if (WARN_ON_ONCE(size > iomap->length)) in iomap_read_inline_data() 345 WARN_ON_ONCE(!ctx.cur_folio_in_bio); in iomap_read_folio() 347 WARN_ON_ONCE(ctx.cur_folio_in_bio); in iomap_read_folio() 483 WARN_ON_ONCE(folio_test_writeback(folio)); in iomap_invalidate_folio() 488 WARN_ON_ONCE(!folio_test_uptodate(folio) && in iomap_invalidate_folio() [all …]
|
/linux-5.19.10/include/asm-generic/ |
D | bug.h | 109 #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 236 # define WARN_ON_FUNCTION_MISMATCH(x, fn) WARN_ON_ONCE((x) != (fn))
|
/linux-5.19.10/kernel/livepatch/ |
D | transition.c | 110 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-5.19.10/arch/powerpc/sysdev/xics/ |
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-5.19.10/kernel/ |
D | kthread.c | 114 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() 962 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check() 964 WARN_ON_ONCE(work->worker && work->worker != worker); in kthread_insert_work_sanity_check() 1029 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn() 1034 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn() 1037 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn() [all …]
|
/linux-5.19.10/arch/powerpc/mm/ |
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()
|
/linux-5.19.10/drivers/net/wireless/intel/iwlwifi/ |
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()
|
D | iwl-trans.h | 1110 WARN_ON_ONCE(!trans->rx_mpdu_cmd); in iwl_trans_start_fw() 1181 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_tx() 1192 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_reclaim() 1203 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_set_q_ptrs() 1224 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_txq_enable_cfg() 1237 if (WARN_ON_ONCE(!trans->ops->rxq_dma_data)) in iwl_trans_get_rxq_dma_data() 1246 if (WARN_ON_ONCE(!trans->ops->txq_free)) in iwl_trans_txq_free() 1259 if (WARN_ON_ONCE(!trans->ops->txq_alloc)) in iwl_trans_txq_alloc() 1262 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_txq_alloc() 1313 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_freeze_txq_timer() [all …]
|
/linux-5.19.10/arch/sparc/kernel/ |
D | pcr.c | 59 WARN_ON_ONCE(reg_num != 0); in direct_pcr_read() 66 WARN_ON_ONCE(reg_num != 0); in direct_pcr_write() 74 WARN_ON_ONCE(reg_num != 0); in direct_pic_read() 81 WARN_ON_ONCE(reg_num != 0); in direct_pic_write() 115 WARN_ON_ONCE(reg_num != 0); in n2_pcr_write()
|
/linux-5.19.10/net/netfilter/ |
D | core.c | 230 if (WARN_ON_ONCE(!old)) in __nf_hook_entries_try_shrink() 275 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_arp) <= hooknum)) in nf_hook_entry_head() 281 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_bridge) <= hooknum)) in nf_hook_entry_head() 287 if (WARN_ON_ONCE(hooknum != NF_INET_INGRESS)) in nf_hook_entry_head() 290 WARN_ON_ONCE(1); in nf_hook_entry_head() 296 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head() 300 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head() 305 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_decnet) <= hooknum)) in nf_hook_entry_head() 310 WARN_ON_ONCE(1); in nf_hook_entry_head() 326 WARN_ON_ONCE(1); in nf_hook_entry_head() [all …]
|