| /Linux-v5.4/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 | 140 WARN_ON_ONCE(rdp->mynode != rnp); in rcu_preempt_ctxt_queue() 141 WARN_ON_ONCE(!rcu_is_leaf_node(rnp)); in rcu_preempt_ctxt_queue() 143 WARN_ON_ONCE(rnp->qsmaskinitnext & ~rnp->qsmaskinit & rnp->qsmask & in rcu_preempt_ctxt_queue() 212 WARN_ON_ONCE(1); in rcu_preempt_ctxt_queue() 224 WARN_ON_ONCE(rnp->completedqs == rnp->gp_seq); in rcu_preempt_ctxt_queue() 228 WARN_ON_ONCE(!(blkd_state & RCU_GP_BLKD) != in rcu_preempt_ctxt_queue() 230 WARN_ON_ONCE(!(blkd_state & RCU_EXP_BLKD) != in rcu_preempt_ctxt_queue() 243 WARN_ON_ONCE(rdp->exp_deferred_qs); in rcu_preempt_ctxt_queue() 293 WARN_ON_ONCE(!preempt && t->rcu_read_lock_nesting > 0); in rcu_note_context_switch() 308 WARN_ON_ONCE((rdp->grpmask & rcu_rnp_online_cpus(rnp)) == 0); in rcu_note_context_switch() [all …]
|
| D | tree.c | 241 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_dynticks_eqs_enter() 244 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_dynticks_eqs_enter() 263 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_dynticks_eqs_exit() 375 WARN_ON_ONCE(!(special & RCU_DYNTICK_CTRL_CTR)); in rcu_momentary_dyntick_idle() 569 WARN_ON_ONCE(rdp->dynticks_nmi_nesting != DYNTICK_IRQ_NONIDLE); in rcu_eqs_enter() 571 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && in rcu_eqs_enter() 580 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && !user && !is_idle_task(current)); in rcu_eqs_enter() 644 WARN_ON_ONCE(rdp->dynticks_nmi_nesting <= 0); in rcu_nmi_exit_common() 645 WARN_ON_ONCE(rcu_dynticks_curr_cpu_in_eqs()); in rcu_nmi_exit_common() 738 WARN_ON_ONCE(IS_ENABLED(CONFIG_RCU_EQS_DEBUG) && oldval < 0); in rcu_eqs_exit() [all …]
|
| /Linux-v5.4/kernel/sched/ |
| D | idle.c | 33 WARN_ON_ONCE(cpu_idle_force_poll < 0); in cpu_idle_poll_ctrl() 214 if (WARN_ON_ONCE(irqs_disabled())) in cpuidle_idle_call() 322 WARN_ON_ONCE(current->policy != SCHED_FIFO); in play_idle() 323 WARN_ON_ONCE(current->nr_cpus_allowed != 1); in play_idle() 324 WARN_ON_ONCE(!(current->flags & PF_KTHREAD)); in play_idle() 325 WARN_ON_ONCE(!(current->flags & PF_NO_SETAFFINITY)); in play_idle() 326 WARN_ON_ONCE(!duration_us); in play_idle() 372 return WARN_ON_ONCE(1); in balance_idle()
|
| /Linux-v5.4/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-v5.4/kernel/livepatch/ |
| D | transition.c | 111 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition() 118 WARN_ON_ONCE(test_tsk_thread_flag(task, TIF_PATCH_PENDING)); in klp_complete_transition() 146 if (WARN_ON_ONCE(klp_target_state != KLP_PATCHED)) in klp_cancel_transition() 395 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_try_complete_transition() 468 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_start_transition() 512 WARN_ON_ONCE(klp_target_state != KLP_UNDEFINED); in klp_init_transition() 531 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition() 541 WARN_ON_ONCE(task->patch_state != KLP_UNDEFINED); in klp_init_transition()
|
| /Linux-v5.4/drivers/net/wireless/intel/iwlwifi/ |
| D | iwl-trans.h | 866 WARN_ON_ONCE(!trans->rx_mpdu_cmd); in iwl_trans_start_fw() 944 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_tx() 955 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_reclaim() 966 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_set_q_ptrs() 987 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_txq_enable_cfg() 1000 if (WARN_ON_ONCE(!trans->ops->rxq_dma_data)) in iwl_trans_get_rxq_dma_data() 1009 if (WARN_ON_ONCE(!trans->ops->txq_free)) in iwl_trans_txq_free() 1023 if (WARN_ON_ONCE(!trans->ops->txq_alloc)) in iwl_trans_txq_alloc() 1026 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_txq_alloc() 1077 if (WARN_ON_ONCE(trans->state != IWL_TRANS_FW_ALIVE)) { in iwl_trans_freeze_txq_timer() [all …]
|
| D | iwl-scd.h | 110 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_WRPTR() 118 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_RDPTR() 126 WARN_ON_ONCE(chnl >= 32); in SCD_QUEUE_STATUS_BITS()
|
| /Linux-v5.4/arch/powerpc/sysdev/xics/ |
| D | icp-hv.c | 32 WARN_ON_ONCE(1); in icp_hv_get_xirr() 44 WARN_ON_ONCE(1); in icp_hv_set_cppr() 54 WARN_ON_ONCE(1); in icp_hv_set_xirr() 70 WARN_ON_ONCE(1); in icp_hv_set_qirr()
|
| /Linux-v5.4/fs/nfs/ |
| D | pagelist.c | 149 WARN_ON_ONCE(head != head->wb_head); in nfs_page_group_lock() 169 WARN_ON_ONCE(head != head->wb_head); in nfs_page_group_unlock() 190 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &head->wb_flags)); in nfs_page_group_sync_on_bit_locked() 191 WARN_ON_ONCE(test_and_set_bit(bit, &req->wb_flags)); in nfs_page_group_sync_on_bit_locked() 237 WARN_ON_ONCE(prev == req); in nfs_page_group_init() 245 WARN_ON_ONCE(prev->wb_this_page != prev->wb_head); in nfs_page_group_init() 246 WARN_ON_ONCE(!test_bit(PG_HEADLOCK, &prev->wb_head->wb_flags)); in nfs_page_group_init() 444 WARN_ON_ONCE(req->wb_this_page != req); in nfs_free_request() 447 WARN_ON_ONCE(test_bit(PG_TEARDOWN, &req->wb_flags)); in nfs_free_request() 448 WARN_ON_ONCE(test_bit(PG_UNLOCKPAGE, &req->wb_flags)); in nfs_free_request() [all …]
|
| /Linux-v5.4/include/linux/ |
| D | iocontext.h | 131 WARN_ON_ONCE(atomic_long_read(&ioc->refcount) <= 0); in get_io_context_active() 132 WARN_ON_ONCE(atomic_read(&ioc->active_ref) <= 0); in get_io_context_active() 141 WARN_ON_ONCE(atomic_read(&ioc->nr_tasks) <= 0); in ioc_task_link()
|
| /Linux-v5.4/include/asm-generic/ |
| D | bug.h | 95 #define WARN_ON_ONCE(condition) ({ \ macro 136 #ifndef WARN_ON_ONCE 137 #define WARN_ON_ONCE(condition) ({ \ macro 195 #define WARN_ON_ONCE(condition) WARN_ON(condition) macro
|
| /Linux-v5.4/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-v5.4/lib/ |
| D | percpu-refcount.c | 111 WARN_ON_ONCE(ref->confirm_switch); in percpu_ref_exit() 204 if (WARN_ON_ONCE(!ref->allow_reinit)) in __percpu_ref_switch_to_percpu() 369 WARN_ON_ONCE(!percpu_ref_is_zero(ref)); in percpu_ref_reinit() 396 WARN_ON_ONCE(!(ref->percpu_count_ptr & __PERCPU_REF_DEAD)); in percpu_ref_resurrect() 397 WARN_ON_ONCE(__ref_is_percpu(ref, &percpu_count)); in percpu_ref_resurrect()
|
| D | rbtree_test.c | 178 WARN_ON_ONCE(count != nr_nodes); in check_postorder_foreach() 188 WARN_ON_ONCE(count != nr_nodes); in check_postorder() 199 WARN_ON_ONCE(node->key < prev_key); in check() 200 WARN_ON_ONCE(is_red(rb) && in check() 205 WARN_ON_ONCE((!rb->rb_left || !rb->rb_right) && in check() 211 WARN_ON_ONCE(count != nr_nodes); in check() 212 WARN_ON_ONCE(count < (1 << black_path_count(rb_last(&root.rb_root))) - 1); in check() 238 WARN_ON_ONCE(node->augmented != max); in check_augmented()
|
| /Linux-v5.4/drivers/gpu/drm/ |
| D | drm_cache.c | 109 WARN_ON_ONCE(1); in drm_clflush_pages() 140 WARN_ON_ONCE(1); in drm_clflush_sg() 173 WARN_ON_ONCE(1); in drm_clflush_virt_range()
|
| /Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/ |
| D | binding.c | 139 if (WARN_ON_ONCE(data->idx >= MAX_MACS_IN_BINDING)) in iwl_mvm_iface_iterator() 178 if (WARN_ON_ONCE(data.idx >= MAX_MACS_IN_BINDING)) in iwl_mvm_binding_update() 193 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) in iwl_mvm_binding_add_vif() 211 if (WARN_ON_ONCE(!mvmvif->phy_ctxt)) in iwl_mvm_binding_remove_vif()
|
| /Linux-v5.4/kernel/ |
| D | kthread.c | 89 WARN_ON_ONCE(kthread && kthread->blkcg_css); in free_kthread_struct() 510 if (WARN_ON_ONCE(test_bit(KTHREAD_SHOULD_PARK, &kthread->flags))) in kthread_park() 525 WARN_ON_ONCE(!wait_task_inactive(k, TASK_PARKED)); in kthread_park() 788 WARN_ON_ONCE(!list_empty(&work->node)); in kthread_insert_work_sanity_check() 790 WARN_ON_ONCE(work->worker && work->worker != worker); in kthread_insert_work_sanity_check() 853 if (WARN_ON_ONCE(!worker)) in kthread_delayed_work_timer_fn() 858 WARN_ON_ONCE(work->worker != worker); in kthread_delayed_work_timer_fn() 861 WARN_ON_ONCE(list_empty(&work->node)); in kthread_delayed_work_timer_fn() 876 WARN_ON_ONCE(timer->function != kthread_delayed_work_timer_fn); in __kthread_queue_delayed_work() 966 WARN_ON_ONCE(work->worker != worker); in kthread_flush_work() [all …]
|
| D | irq_work.c | 103 WARN_ON_ONCE(cpu_is_offline(cpu)); in irq_work_queue_on() 112 WARN_ON_ONCE(in_nmi()); in irq_work_queue_on() 137 WARN_ON_ONCE(cpu_is_offline(smp_processor_id())); in irq_work_needs_cpu()
|
| /Linux-v5.4/drivers/net/wireless/ralink/rt2x00/ |
| D | rt2800soc.c | 109 WARN_ON_ONCE(1); in rt2800soc_get_firmware_name() 116 WARN_ON_ONCE(1); in rt2800soc_load_firmware() 123 WARN_ON_ONCE(1); in rt2800soc_check_firmware() 130 WARN_ON_ONCE(1); in rt2800soc_write_firmware()
|
| /Linux-v5.4/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() 286 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv4) <= hooknum)) in nf_hook_entry_head() 290 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_ipv6) <= hooknum)) in nf_hook_entry_head() 295 if (WARN_ON_ONCE(ARRAY_SIZE(net->nf.hooks_decnet) <= hooknum)) in nf_hook_entry_head() 300 WARN_ON_ONCE(1); in nf_hook_entry_head() 310 WARN_ON_ONCE(1); in nf_hook_entry_head() 399 if (WARN_ON_ONCE(!p)) { in __nf_unregister_net_hook()
|
| /Linux-v5.4/kernel/trace/ |
| D | trace_kprobe.c | 213 if (WARN_ON_ONCE(!tp)) in trace_kprobe_primary_from_call() 360 if (WARN_ON_ONCE(!tp)) in enable_trace_kprobe() 408 if (WARN_ON_ONCE(!tp)) in disable_trace_kprobe() 825 WARN_ON_ONCE(ret != -ENOMEM); in trace_kprobe_create() 1260 if (WARN_ON_ONCE(!tp)) in print_kprobe_event() 1290 if (WARN_ON_ONCE(!tp)) in print_kretprobe_event() 1323 if (WARN_ON_ONCE(!tp)) in kprobe_event_define_fields() 1338 if (WARN_ON_ONCE(!tp)) in kretprobe_event_define_fields() 1745 if (WARN_ON_ONCE(ret)) { in kprobe_trace_self_tests_init() 1751 if (WARN_ON_ONCE(tk == NULL)) { in kprobe_trace_self_tests_init() [all …]
|
| /Linux-v5.4/fs/ |
| D | dax.c | 223 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in get_unlocked_entry() 344 WARN_ON_ONCE(page->mapping); in dax_associate_entry() 361 WARN_ON_ONCE(trunc && page_ref_count(page) > 1); in dax_disassociate_entry() 362 WARN_ON_ONCE(page->mapping && page->mapping != mapping); in dax_disassociate_entry() 608 if (WARN_ON_ONCE(!xa_is_value(entry))) in dax_layout_busy_page() 639 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in __dax_invalidate_entry() 670 WARN_ON_ONCE(!ret); in dax_delete_mapping_entry() 751 WARN_ON_ONCE(old != xa_mk_value(xa_to_value(entry) | in dax_insert_entry() 868 if (!entry || WARN_ON_ONCE(!xa_is_value(entry))) in dax_writeback_one() 877 if (WARN_ON_ONCE(dax_is_empty_entry(entry) || in dax_writeback_one() [all …]
|
| /Linux-v5.4/fs/crypto/ |
| D | crypto.c | 165 if (WARN_ON_ONCE(len <= 0)) in fscrypt_crypt_block() 167 if (WARN_ON_ONCE(len % FS_CRYPTO_BLOCK_SIZE != 0)) in fscrypt_crypt_block() 232 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_encrypt_pagecache_blocks() 235 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks() 310 if (WARN_ON_ONCE(!PageLocked(page))) in fscrypt_decrypt_pagecache_blocks() 313 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks()
|
| /Linux-v5.4/arch/arm64/include/asm/ |
| D | irqflags.h | 33 WARN_ON_ONCE(pmr != GIC_PRIO_IRQON && pmr != GIC_PRIO_IRQOFF); in arch_local_irq_enable() 52 WARN_ON_ONCE(pmr != GIC_PRIO_IRQON && pmr != GIC_PRIO_IRQOFF); in arch_local_irq_disable()
|