Home
last modified time | relevance | path

Searched refs:WARN_ON (Results 1 – 25 of 3081) sorted by relevance

12345678910>>...124

/linux-5.19.10/mm/ !
Ddebug_vm_pgtable.c109 WARN_ON(pte_dirty(pte_wrprotect(pte))); in pte_basic_tests()
111 WARN_ON(!pte_same(pte, pte)); in pte_basic_tests()
112 WARN_ON(!pte_young(pte_mkyoung(pte_mkold(pte)))); in pte_basic_tests()
113 WARN_ON(!pte_dirty(pte_mkdirty(pte_mkclean(pte)))); in pte_basic_tests()
114 WARN_ON(!pte_write(pte_mkwrite(pte_wrprotect(pte)))); in pte_basic_tests()
115 WARN_ON(pte_young(pte_mkold(pte_mkyoung(pte)))); in pte_basic_tests()
116 WARN_ON(pte_dirty(pte_mkclean(pte_mkdirty(pte)))); in pte_basic_tests()
117 WARN_ON(pte_write(pte_wrprotect(pte_mkwrite(pte)))); in pte_basic_tests()
118 WARN_ON(pte_dirty(pte_wrprotect(pte_mkclean(pte)))); in pte_basic_tests()
119 WARN_ON(!pte_dirty(pte_wrprotect(pte_mkdirty(pte)))); in pte_basic_tests()
[all …]
/linux-5.19.10/include/linux/ !
Dgpio.h135 WARN_ON(1); in gpio_free()
143 WARN_ON(1); in gpio_free_array()
164 WARN_ON(1); in gpio_get_value()
171 WARN_ON(1); in gpio_set_value()
177 WARN_ON(1); in gpio_cansleep()
184 WARN_ON(1); in gpio_get_value_cansleep()
191 WARN_ON(1); in gpio_set_value_cansleep()
197 WARN_ON(1); in gpio_export()
205 WARN_ON(1); in gpio_export_link()
212 WARN_ON(1); in gpio_unexport()
[all …]
Drpmsg.h212 WARN_ON(1); in rpmsg_unregister_device()
221 WARN_ON(1); in __register_rpmsg_driver()
229 WARN_ON(1); in unregister_rpmsg_driver()
235 WARN_ON(1); in rpmsg_destroy_ept()
244 WARN_ON(1); in rpmsg_create_ept()
252 WARN_ON(1); in rpmsg_send()
261 WARN_ON(1); in rpmsg_sendto()
271 WARN_ON(1); in rpmsg_send_offchannel()
279 WARN_ON(1); in rpmsg_trysend()
288 WARN_ON(1); in rpmsg_trysendto()
[all …]
/linux-5.19.10/arch/powerpc/sysdev/ !
Dmsi_bitmap.c164 WARN_ON(msi_bitmap_alloc(&bmp, 0, NULL) == 0); in test_basics()
167 WARN_ON(msi_bitmap_alloc(&bmp, size, NULL)); in test_basics()
170 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
174 WARN_ON(msi_bitmap_reserve_dt_hwirqs(&bmp) <= 0); in test_basics()
177 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
182 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) < 0); in test_basics()
184 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) >= 0); in test_basics()
187 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, 0) >= 0); in test_basics()
191 WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) != size / 2); in test_basics()
198 WARN_ON(rc < 0 && rc % 2 != 0); in test_basics()
[all …]
/linux-5.19.10/include/linux/gpio/ !
Dconsumer.h248 WARN_ON(desc); in gpiod_put()
257 WARN_ON(desc); in devm_gpiod_unhinge()
265 WARN_ON(descs); in gpiod_put_array()
318 WARN_ON(desc); in devm_gpiod_put()
327 WARN_ON(descs); in devm_gpiod_put_array()
334 WARN_ON(desc); in gpiod_get_direction()
340 WARN_ON(desc); in gpiod_direction_input()
346 WARN_ON(desc); in gpiod_direction_output()
352 WARN_ON(desc); in gpiod_direction_output_raw()
358 WARN_ON(desc); in gpiod_enable_hw_timestamp_ns()
[all …]
/linux-5.19.10/net/wireless/ !
Dcore.c186 WARN_ON(err); in cfg80211_switch_netns()
203 WARN_ON(err); in cfg80211_switch_netns()
227 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_P2P_DEVICE)) in cfg80211_stop_p2p_device()
239 if (WARN_ON(!rdev->scan_req->notified && in cfg80211_stop_p2p_device()
252 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_NAN)) in cfg80211_stop_nan()
421 WARN_ON(ops->add_key && (!ops->del_key || !ops->set_default_key)); in wiphy_new_nm()
422 WARN_ON(ops->auth && (!ops->assoc || !ops->deauth || !ops->disassoc)); in wiphy_new_nm()
423 WARN_ON(ops->connect && !ops->disconnect); in wiphy_new_nm()
424 WARN_ON(ops->join_ibss && !ops->leave_ibss); in wiphy_new_nm()
425 WARN_ON(ops->add_virtual_intf && !ops->del_virtual_intf); in wiphy_new_nm()
[all …]
/linux-5.19.10/kernel/trace/ !
Dsynth_event_gen_test.c452 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
456 WARN_ON(synth_event_delete("gen_synth_test")); in synth_event_gen_test_init()
462 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
466 WARN_ON(synth_event_delete("gen_synth_test")); in synth_event_gen_test_init()
468 WARN_ON(trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init()
472 WARN_ON(synth_event_delete("empty_synth_test")); in synth_event_gen_test_init()
477 WARN_ON(ret); in synth_event_gen_test_init()
480 WARN_ON(ret); in synth_event_gen_test_init()
483 WARN_ON(ret); in synth_event_gen_test_init()
491 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_exit()
[all …]
Dkprobe_event_gen_test.c185 WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, in kprobe_event_gen_test_init()
189 WARN_ON(kprobe_event_delete("gen_kretprobe_test")); in kprobe_event_gen_test_init()
198 WARN_ON(trace_array_set_clr_event(gen_kprobe_test->tr, in kprobe_event_gen_test_exit()
206 WARN_ON(kprobe_event_delete("gen_kprobe_test")); in kprobe_event_gen_test_exit()
209 WARN_ON(trace_array_set_clr_event(gen_kprobe_test->tr, in kprobe_event_gen_test_exit()
217 WARN_ON(kprobe_event_delete("gen_kretprobe_test")); in kprobe_event_gen_test_exit()
/linux-5.19.10/security/selinux/ !
Dima.c40 WARN_ON(rc < 0); in selinux_ima_collect_state()
43 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
46 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
49 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
52 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
55 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
59 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
62 WARN_ON(rc >= buf_len); in selinux_ima_collect_state()
/linux-5.19.10/kernel/kcsan/ !
Dselftest.c53 if (WARN_ON(!check_encodable(addr, size))) in test_encode_decode()
59 …if (WARN_ON(decode_watchpoint(INVALID_WATCHPOINT, &verif_masked_addr, &verif_size, &verif_is_write… in test_encode_decode()
61 …if (WARN_ON(decode_watchpoint(CONSUMED_WATCHPOINT, &verif_masked_addr, &verif_size, &verif_is_writ… in test_encode_decode()
65 …if (WARN_ON(!decode_watchpoint(encoded_watchpoint, &verif_masked_addr, &verif_size, &verif_is_writ… in test_encode_decode()
67 if (WARN_ON(verif_masked_addr != (addr & WATCHPOINT_ADDR_MASK))) in test_encode_decode()
69 if (WARN_ON(verif_size != size)) in test_encode_decode()
71 if (WARN_ON(is_write != verif_is_write)) in test_encode_decode()
88 if (WARN_ON(!matching_access(10, 1, 10, 1))) in test_matching_access()
90 if (WARN_ON(!matching_access(10, 2, 11, 1))) in test_matching_access()
92 if (WARN_ON(!matching_access(10, 1, 9, 2))) in test_matching_access()
[all …]
/linux-5.19.10/drivers/remoteproc/ !
Dmtk_scp_ipi.c36 if (WARN_ON(id >= SCP_IPI_MAX) || WARN_ON(handler == NULL)) in scp_ipi_register()
61 if (WARN_ON(id >= SCP_IPI_MAX)) in scp_ipi_unregister()
117 if (WARN_ON(id >= SCP_IPI_MAX)) in scp_ipi_lock()
133 if (WARN_ON(id >= SCP_IPI_MAX)) in scp_ipi_unlock()
162 if (WARN_ON(id <= SCP_IPI_INIT) || WARN_ON(id >= SCP_IPI_MAX) || in scp_ipi_send()
163 WARN_ON(id == SCP_IPI_NS_SERVICE) || in scp_ipi_send()
164 WARN_ON(len > sizeof(send_obj->share_buf)) || WARN_ON(!buf)) in scp_ipi_send()
/linux-5.19.10/net/mac802154/ !
Ddriver-ops.h78 WARN_ON(1); in drv_set_tx_power()
96 WARN_ON(1); in drv_set_cca_mode()
113 WARN_ON(1); in drv_set_lbt_mode()
131 WARN_ON(1); in drv_set_cca_ed_level()
149 WARN_ON(1); in drv_set_pan_id()
171 WARN_ON(1); in drv_set_extended_addr()
193 WARN_ON(1); in drv_set_short_addr()
215 WARN_ON(1); in drv_set_pan_coord()
237 WARN_ON(1); in drv_set_csma_params()
257 WARN_ON(1); in drv_set_max_frame_retries()
[all …]
/linux-5.19.10/include/linux/clk/ !
Dtegra.h50 if (WARN_ON(!tegra_cpu_car_ops->wait_for_reset)) in tegra_wait_cpu_in_reset()
58 if (WARN_ON(!tegra_cpu_car_ops->put_in_reset)) in tegra_put_cpu_in_reset()
66 if (WARN_ON(!tegra_cpu_car_ops->out_of_reset)) in tegra_cpu_out_of_reset()
74 if (WARN_ON(!tegra_cpu_car_ops->enable_clock)) in tegra_enable_cpu_clock()
82 if (WARN_ON(!tegra_cpu_car_ops->disable_clock)) in tegra_disable_cpu_clock()
112 if (WARN_ON(!tegra_cpu_car_ops->rail_off_ready)) in tegra_cpu_rail_off_ready()
120 if (WARN_ON(!tegra_cpu_car_ops->suspend)) in tegra_cpu_clock_suspend()
128 if (WARN_ON(!tegra_cpu_car_ops->resume)) in tegra_cpu_clock_resume()
/linux-5.19.10/net/ceph/ !
Dmessenger_v2.c95 WARN_ON(msg_data_left(&msg)); in do_recvmsg()
137 WARN_ON(msg_data_left(&msg)); in do_sendmsg()
147 if (WARN_ON(!iov_iter_is_bvec(it))) in do_try_sendpage()
213 WARN_ON(!iov_iter_is_kvec(&con->v2.in_iter)); in add_in_kvec()
225 WARN_ON(iov_iter_count(&con->v2.in_iter)); in reset_in_kvecs()
233 WARN_ON(iov_iter_count(&con->v2.in_iter)); in set_in_bvec()
241 WARN_ON(iov_iter_count(&con->v2.in_iter)); in set_in_skip()
250 WARN_ON(!iov_iter_is_kvec(&con->v2.out_iter)); in add_out_kvec()
251 WARN_ON(con->v2.out_zero); in add_out_kvec()
263 WARN_ON(iov_iter_count(&con->v2.out_iter)); in reset_out_kvecs()
[all …]
/linux-5.19.10/kernel/livepatch/ !
Dpatch.c131 if (WARN_ON(!func->patched)) in klp_unpatch_func()
133 if (WARN_ON(!func->old_func)) in klp_unpatch_func()
137 if (WARN_ON(!ops)) in klp_unpatch_func()
144 if (WARN_ON(!ftrace_loc)) in klp_unpatch_func()
147 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func()
148 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func()
165 if (WARN_ON(!func->old_func)) in klp_patch_func()
168 if (WARN_ON(func->patched)) in klp_patch_func()
257 if (WARN_ON(obj->patched)) in klp_patch_object()
/linux-5.19.10/drivers/hwtracing/coresight/ !
Dcoresight-trbe.h116 WARN_ON(is_trbe_enabled()); in set_trbe_write_pointer()
125 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_limit_pointer()
134 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_base_pointer()
140 WARN_ON(is_trbe_enabled()); in set_trbe_base_pointer()
141 WARN_ON(!IS_ALIGNED(addr, (1UL << TRBBASER_BASE_SHIFT))); in set_trbe_base_pointer()
142 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in set_trbe_base_pointer()
/linux-5.19.10/drivers/clk/mvebu/ !
Dcommon.c117 if (WARN_ON(!base)) in mvebu_coreclk_setup()
129 if (WARN_ON(!clk_data.clks)) { in mvebu_coreclk_setup()
140 WARN_ON(IS_ERR(clk_data.clks[0])); in mvebu_coreclk_setup()
153 WARN_ON(IS_ERR(clk_data.clks[1])); in mvebu_coreclk_setup()
165 WARN_ON(IS_ERR(clk_data.clks[2+n])); in mvebu_coreclk_setup()
176 WARN_ON(IS_ERR(clk_data.clks[2 + desc->num_ratios])); in mvebu_coreclk_setup()
248 if (WARN_ON(!base)) in mvebu_clk_gating_setup()
258 if (WARN_ON(!ctrl)) in mvebu_clk_gating_setup()
273 if (WARN_ON(!ctrl->gates)) in mvebu_clk_gating_setup()
282 WARN_ON(IS_ERR(ctrl->gates[n])); in mvebu_clk_gating_setup()
/linux-5.19.10/drivers/gpu/drm/ !
Ddrm_modeset_lock.c150 if (WARN_ON(!ctx)) in drm_modeset_lock_all()
171 WARN_ON(config->acquire_ctx); in drm_modeset_lock_all()
202 if (WARN_ON(!ctx)) in drm_modeset_unlock_all()
230 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); in drm_warn_on_modeset_not_all_locked()
232 WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex)); in drm_warn_on_modeset_not_all_locked()
233 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); in drm_warn_on_modeset_not_all_locked()
276 if (WARN_ON(ctx->contended)) in drm_modeset_drop_locks()
296 if (WARN_ON(ctx->contended)) in modeset_lock()
317 WARN_ON(!list_empty(&lock->head)); in modeset_lock()
353 if (WARN_ON(!contended)) in drm_modeset_backoff()
/linux-5.19.10/drivers/media/mc/ !
Dmc-request.c34 if (WARN_ON(state >= ARRAY_SIZE(request_state))) in media_request_state_str()
44 WARN_ON(req->state != MEDIA_REQUEST_STATE_CLEANING); in media_request_clean()
45 WARN_ON(req->updating_count); in media_request_clean()
46 WARN_ON(req->access_count); in media_request_clean()
55 WARN_ON(req->num_incomplete_objects); in media_request_clean()
296 if (WARN_ON(!mdev->ops->req_alloc ^ !mdev->ops->req_free)) in media_request_alloc()
357 if (WARN_ON(req)) in media_request_object_release()
371 if (WARN_ON(!ops || !priv)) in media_request_object_find()
412 if (WARN_ON(!ops->release)) in media_request_object_bind()
417 if (WARN_ON(req->state != MEDIA_REQUEST_STATE_UPDATING && in media_request_object_bind()
[all …]
/linux-5.19.10/drivers/net/wireless/st/cw1200/ !
Dbh.c79 WARN_ON(err); in cw1200_register_bh()
163 if (WARN_ON(priv->hw_bufs_used < 0)) in wsm_release_tx_buffer()
199 if (WARN_ON(ret)) in cw1200_device_wakeup()
205 if (WARN_ON(ret)) in cw1200_device_wakeup()
209 if (WARN_ON(ret)) in cw1200_device_wakeup()
251 if (WARN_ON((read_len < sizeof(struct wsm_hdr)) || in cw1200_bh_rx_helper()
273 if (WARN_ON(!skb_rx)) in cw1200_bh_rx_helper()
279 if (WARN_ON(!data)) in cw1200_bh_rx_helper()
282 if (WARN_ON(cw1200_data_read(priv, data, alloc_len))) { in cw1200_bh_rx_helper()
293 if (WARN_ON(wsm_len > read_len)) in cw1200_bh_rx_helper()
[all …]
/linux-5.19.10/arch/arm64/kernel/ !
Dfpsimd.c229 WARN_ON(busy); in __get_cpu_fpsimd_context()
260 WARN_ON(!busy); /* No matching get_cpu_fpsimd_context()? */ in __put_cpu_fpsimd_context()
378 WARN_ON(!system_supports_fpsimd()); in task_fpsimd_load()
379 WARN_ON(!have_cpu_fpsimd_context()); in task_fpsimd_load()
434 WARN_ON(!system_supports_fpsimd()); in fpsimd_save()
435 WARN_ON(!have_cpu_fpsimd_context()); in fpsimd_save()
465 if (WARN_ON(sve_get_vl() != vl)) { in fpsimd_save()
496 if (WARN_ON(!sve_vl_valid(vl))) in find_supported_vector_length()
499 if (WARN_ON(!sve_vl_valid(max_vl))) in find_supported_vector_length()
688 WARN_ON(test_tsk_thread_flag(task, TIF_SVE)); in sve_free()
[all …]
/linux-5.19.10/net/mac80211/ !
Dchan.c224 WARN_ON(1); in ieee80211_get_sta_bw()
433 WARN_ON(1); in ieee80211_change_chanctx()
447 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
652 WARN_ON(local->hw.conf.radar_enabled && in ieee80211_del_chanctx()
759 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_NAN)) in ieee80211_assign_vif_chanctx()
909 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP)) in __ieee80211_vif_copy_chanctx_to_vlans()
922 WARN_ON(!conf); in __ieee80211_vif_copy_chanctx_to_vlans()
949 if (WARN_ON(!ctx)) in ieee80211_vif_unreserve_chanctx()
957 if (WARN_ON(!ctx->replace_ctx)) in ieee80211_vif_unreserve_chanctx()
960 WARN_ON(ctx->replace_ctx->replace_state != in ieee80211_vif_unreserve_chanctx()
[all …]
/linux-5.19.10/arch/x86/mm/ !
Dpti.c221 WARN_ON(1); in pti_user_pagetable_walk_pmd()
256 WARN_ON(1); in pti_user_pagetable_walk_pte()
283 if (!pte || WARN_ON(level != PG_LEVEL_4K) || pte_none(*pte)) in pti_setup_vsyscall()
287 if (WARN_ON(!target_pte)) in pti_setup_vsyscall()
324 if (WARN_ON(pgd_none(*pgd))) in pti_clone_pgtable()
327 if (WARN_ON(p4d_none(*p4d))) in pti_clone_pgtable()
346 if (WARN_ON(!target_pmd)) in pti_clone_pgtable()
355 if (WARN_ON(!(pmd_flags(*pmd) & _PAGE_PRESENT))) in pti_clone_pgtable()
389 if (WARN_ON(!(pte_flags(*pte) & _PAGE_PRESENT))) in pti_clone_pgtable()
394 if (WARN_ON(!target_pte)) in pti_clone_pgtable()
[all …]
/linux-5.19.10/scripts/coccinelle/misc/ !
Dwarn.cocci2 /// Use WARN(1,...) rather than printk followed by WARN_ON(1)
22 WARN_ON(1);
29 *WARN_ON(1);
35 cocci.print_main("printk + WARN_ON can be just WARN",p)
41 msg = "SUGGESTION: printk + WARN_ON can be just WARN"
52 -WARN_ON(1);
/linux-5.19.10/arch/powerpc/include/asm/ !
Dhw_irq.h148 WARN_ON(mask && !(mask & IRQS_DISABLED)); in irq_soft_mask_set()
164 WARN_ON(mask && !(mask & IRQS_DISABLED)); in irq_soft_mask_set_return()
189 WARN_ON((mask | flags) && !((mask | flags) & IRQS_DISABLED)); in irq_soft_mask_or_return()
357 WARN_ON(irq_soft_mask_return() == IRQS_ENABLED); in should_hard_irq_enable()
358 WARN_ON(mfmsr() & MSR_EE); in should_hard_irq_enable()
386 WARN_ON(irq_soft_mask_return() == IRQS_ENABLED); in do_hard_irq_enable()
387 WARN_ON(get_paca()->irq_happened & PACA_IRQ_MUST_HARD_MASK); in do_hard_irq_enable()
388 WARN_ON(mfmsr() & MSR_EE); in do_hard_irq_enable()

12345678910>>...124