Home
last modified time | relevance | path

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

12345678910>>...142

/linux-6.1.9/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-6.1.9/include/linux/
Dgpio.h134 WARN_ON(1); in gpio_free()
142 WARN_ON(1); in gpio_free_array()
163 WARN_ON(1); in gpio_get_value()
170 WARN_ON(1); in gpio_set_value()
176 WARN_ON(1); in gpio_cansleep()
183 WARN_ON(1); in gpio_get_value_cansleep()
190 WARN_ON(1); in gpio_set_value_cansleep()
196 WARN_ON(1); in gpio_export()
204 WARN_ON(1); in gpio_export_link()
211 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-6.1.9/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-6.1.9/include/linux/gpio/
Dconsumer.h244 WARN_ON(desc); in gpiod_put()
253 WARN_ON(desc); in devm_gpiod_unhinge()
261 WARN_ON(descs); in gpiod_put_array()
314 WARN_ON(desc); in devm_gpiod_put()
323 WARN_ON(descs); in devm_gpiod_put_array()
330 WARN_ON(desc); in gpiod_get_direction()
336 WARN_ON(desc); in gpiod_direction_input()
342 WARN_ON(desc); in gpiod_direction_output()
348 WARN_ON(desc); in gpiod_direction_output_raw()
354 WARN_ON(desc); in gpiod_enable_hw_timestamp_ns()
[all …]
/linux-6.1.9/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-6.1.9/kernel/trace/
Dsynth_event_gen_test.c448 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
452 WARN_ON(synth_event_delete("gen_synth_test")); in synth_event_gen_test_init()
458 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_init()
462 WARN_ON(synth_event_delete("gen_synth_test")); in synth_event_gen_test_init()
464 WARN_ON(trace_array_set_clr_event(empty_synth_test->tr, in synth_event_gen_test_init()
468 WARN_ON(synth_event_delete("empty_synth_test")); in synth_event_gen_test_init()
473 WARN_ON(ret); in synth_event_gen_test_init()
476 WARN_ON(ret); in synth_event_gen_test_init()
479 WARN_ON(ret); in synth_event_gen_test_init()
487 WARN_ON(trace_array_set_clr_event(gen_synth_test->tr, in synth_event_gen_test_exit()
[all …]
Dkprobe_event_gen_test.c229 WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, in kprobe_event_gen_test_init()
234 WARN_ON(kprobe_event_delete("gen_kretprobe_test")); in kprobe_event_gen_test_init()
244 WARN_ON(trace_array_set_clr_event(gen_kprobe_test->tr, in kprobe_event_gen_test_exit()
254 WARN_ON(kprobe_event_delete("gen_kprobe_test")); in kprobe_event_gen_test_exit()
258 WARN_ON(trace_array_set_clr_event(gen_kretprobe_test->tr, in kprobe_event_gen_test_exit()
268 WARN_ON(kprobe_event_delete("gen_kretprobe_test")); in kprobe_event_gen_test_exit()
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/hwtracing/coresight/
Dcoresight-trbe.h117 WARN_ON(is_trbe_enabled()); in set_trbe_write_pointer()
126 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_limit_pointer()
135 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in get_trbe_base_pointer()
141 WARN_ON(is_trbe_enabled()); in set_trbe_base_pointer()
142 WARN_ON(!IS_ALIGNED(addr, (1UL << TRBBASER_BASE_SHIFT))); in set_trbe_base_pointer()
143 WARN_ON(!IS_ALIGNED(addr, PAGE_SIZE)); in set_trbe_base_pointer()
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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()
464 if (WARN_ON(sve_get_vl() != vl)) { in fpsimd_save()
495 if (WARN_ON(!sve_vl_valid(vl))) in find_supported_vector_length()
498 if (WARN_ON(!sve_vl_valid(max_vl))) in find_supported_vector_length()
687 WARN_ON(test_tsk_thread_flag(task, TIF_SVE)); in sve_free()
[all …]
/linux-6.1.9/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-6.1.9/lib/
Dlocking-selftest.c205 WARN_ON(!in_irq());
218 WARN_ON(!in_softirq());
1440 WARN_ON(irqs_disabled()); in dotest()
1678 if (WARN_ON(!o.ctx) || in ww_test_fail_acquire()
1679 WARN_ON(ret)) in ww_test_fail_acquire()
1684 WARN_ON(ret != -EALREADY); in ww_test_fail_acquire()
1687 WARN_ON(ret); in ww_test_fail_acquire()
1692 WARN_ON(ret != -EDEADLK); in ww_test_fail_acquire()
1735 WARN_ON(o.ctx != (void *)~0UL); in ww_test_normal()
1743 WARN_ON(1); in ww_test_normal()
[all …]
/linux-6.1.9/net/mac80211/
Dchan.c236 WARN_ON(1); in ieee80211_get_sta_bw()
485 WARN_ON(1); in ieee80211_change_chanctx()
499 WARN_ON(!cfg80211_chandef_compatible(&ctx->conf.def, chandef)); in ieee80211_change_chanctx()
724 WARN_ON(local->hw.conf.radar_enabled && in ieee80211_del_chanctx()
843 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_NAN)) in ieee80211_assign_link_chanctx()
999 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP)) in __ieee80211_link_copy_chanctx_to_vlans()
1012 WARN_ON(!conf); in __ieee80211_link_copy_chanctx_to_vlans()
1022 if (WARN_ON(!vlan_conf)) in __ieee80211_link_copy_chanctx_to_vlans()
1049 if (WARN_ON(!ctx)) in ieee80211_link_unreserve_chanctx()
1057 if (WARN_ON(!ctx->replace_ctx)) in ieee80211_link_unreserve_chanctx()
[all …]
/linux-6.1.9/drivers/hwspinlock/
Dhwspinlock_core.c95 if (WARN_ON(!hwlock || (!flags && mode == HWLOCK_IRQSTATE))) in __hwspin_trylock()
267 if (WARN_ON(!hwlock || (!flags && mode == HWLOCK_IRQSTATE))) in __hwspin_unlock()
319 if (WARN_ON(hwlock_spec->args_count != 1)) in of_hwspin_lock_simple_xlate()
439 WARN_ON(tmp != hwlock); in hwspin_lock_register_single()
547 WARN_ON(tmp != hwlock); in hwspin_lock_unregister()
564 if (WARN_ON(!bank || !*bank)) in devm_hwspin_lock_device_match()
590 WARN_ON(ret); in devm_hwspin_lock_unregister()
674 WARN_ON(tmp != hwlock); in __hwspin_lock_request()
726 WARN_ON(ret > 1); in hwspin_lock_request()
767 WARN_ON(hwlock_to_id(hwlock) != id); in hwspin_lock_request_specific()
[all …]

12345678910>>...142