/linux/scripts/ |
A D | checkpatch.pl | 2436 sub WARN { subroutine 4759 WARN("ENOSYS", 6074 WARN("BRACES", 6239 WARN("IF_0", 6245 WARN("IF_1", 6448 WARN("MSLEEP", 6797 WARN("MEMSET", 6846 WARN("STRLCPY", 6869 WARN("MINMAX", 7152 WARN("YIELD", [all …]
|
/linux/include/asm-generic/ |
A D | bug.h | 128 #ifndef WARN 129 #define WARN(condition, format...) ({ \ macro 150 DO_ONCE_LITE_IF(condition, WARN, 1, format) 171 #ifndef WARN 172 #define WARN(condition, format...) ({ \ macro 180 #define WARN_ONCE(condition, format...) WARN(condition, format) 181 #define WARN_TAINT(condition, taint, format...) WARN(condition, format) 182 #define WARN_TAINT_ONCE(condition, taint, format...) WARN(condition, format)
|
/linux/drivers/staging/wfx/ |
A D | key.c | 29 WARN(!(wdev->key_map & BIT(idx)), "inconsistent key allocation"); in wfx_free_key() 36 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_pair() 46 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_group() 58 WARN(key->keylen != sizeof(msg->tkip_key_data) in fill_tkip_pair() 77 WARN(key->keylen != sizeof(msg->tkip_key_data) in fill_tkip_group() 98 WARN(key->keylen != sizeof(msg->aes_key_data), "inconsistent data"); in fill_ccmp_pair() 108 WARN(key->keylen != sizeof(msg->aes_key_data), "inconsistent data"); in fill_ccmp_group() 121 WARN(key->keylen != sizeof(msg->wapi_key_data) in fill_sms4_pair() 136 WARN(key->keylen != sizeof(msg->wapi_key_data) in fill_sms4_group() 149 WARN(key->keylen != sizeof(msg->igtk_key_data), "inconsistent data"); in fill_aes_cmac_group() [all …]
|
A D | bh.c | 76 WARN(read_len > round_down(0xFFF, 2) * sizeof(u16), in rx_helper() 92 WARN(hif->encrypted & 0x3, "encryption is unsupported"); in rx_helper() 93 if (WARN(read_len < sizeof(struct hif_msg), "corrupted read")) in rx_helper() 111 WARN(wdev->hif.tx_buffers_used < release_count, "corrupted buffer counter"); in rx_helper() 179 WARN(len < sizeof(*hif), "try to send corrupted data"); in tx_helper() 185 WARN(len > wdev->hw_caps.size_inp_ch_buf, in tx_helper() 209 WARN(!mutex_is_locked(&wdev->hif_cmd.lock), "data locking error"); in bh_work_tx() 304 WARN(!wdev->poll_irq, "unexpected IRQ polling can mask IRQ"); in wfx_bh_poll_irq()
|
A D | bus_sdio.c | 42 WARN(reg_id > 7, "chip only has 7 registers"); in wfx_sdio_copy_from_io() 43 WARN(((uintptr_t)dst) & 3, "unaligned buffer size"); in wfx_sdio_copy_from_io() 44 WARN(count & 3, "unaligned buffer address"); in wfx_sdio_copy_from_io() 63 WARN(reg_id > 7, "chip only has 7 registers"); in wfx_sdio_copy_to_io() 64 WARN(((uintptr_t)src) & 3, "unaligned buffer size"); in wfx_sdio_copy_to_io() 65 WARN(count & 3, "unaligned buffer address"); in wfx_sdio_copy_to_io()
|
A D | data_tx.c | 29 WARN(1, "wrong rate->idx value: %d", rate->idx); in wfx_get_hw_rate() 39 WARN(1, "wrong rate->idx value: %d", rate->idx); in wfx_get_hw_rate() 54 WARN(rates[0].idx < 0, "invalid rate policy"); in wfx_tx_policy_build() 118 WARN(1, "unable to get a valid Tx policy"); in wfx_tx_policy_get() 343 WARN(queue_id >= IEEE80211_NUM_ACS, "unsupported queue_id"); in wfx_tx_inner() 353 WARN(skb_headroom(skb) < wmsg_len, "not enough space in skb"); in wfx_tx_inner() 354 WARN(offset & 1, "attempt to transmit an unaligned frame"); in wfx_tx_inner() 412 WARN(skb->next || skb->prev, "skb is already member of a list"); in wfx_tx() 532 WARN(!arg->requeue, "incoherent status and result_flags"); in wfx_tx_confirm_cb()
|
/linux/lib/ |
A D | test_rhashtable.c | 300 if (WARN(err, "error %d on element %d\n", err, i)) in test_rhltable() 320 if (WARN(!h, "key not found during iteration %d of %d", i, entries)) { in test_rhltable() 346 if (WARN(!found, "element %d not found", i)) in test_rhltable() 350 WARN(err, "rhltable_remove: err %d for iteration %d\n", err, i); in test_rhltable() 359 WARN(test_bit(i, obj_in_table), "elem %d allegedly still present", i); in test_rhltable() 363 if (WARN(err, "error %d on element %d\n", err, i)) in test_rhltable() 387 if (WARN(err, "cannot remove element at slot %d", i)) in test_rhltable() 405 if (WARN(!test_bit(i, obj_in_table), "failed to insert object %d", i)) in test_rhltable() 417 WARN(err, "cannot remove element at slot %d", i); in test_rhltable() 422 WARN(err, "failed to insert object %d", i); in test_rhltable() [all …]
|
A D | asn1_encoder.c | 32 if (WARN(integer < 0, in asn1_encode_integer() 148 if (WARN(oid_len < 2, "OID must have at least two elements")) in asn1_encode_oid() 151 if (WARN(oid_len > 32, "OID is too large")) in asn1_encode_oid() 231 if (WARN(len > 0xffffff, "ASN.1 length can't be > 0xffffff")) in asn1_encode_length() 278 if (WARN(tag > 30, "ASN.1 tag can't be > 30")) in asn1_encode_tag() 281 if (!string && WARN(len > 127, in asn1_encode_tag() 381 if (!seq && WARN(len > 127, in asn1_encode_sequence()
|
A D | logic_iomem.c | 74 WARN(1, "invalid ioremap(0x%llx, 0x%zx)\n", in real_ioremap() 81 WARN(1, "invalid iounmap for addr 0x%llx\n", in real_iounmap() 175 WARN(1, "Invalid read" #op " at address %llx\n", \ 183 WARN(1, "Invalid writeq" #op " of 0x%llx at address %llx\n", \ 196 WARN(1, "Invalid memset_io at address 0x%llx\n", in real_memset_io() 203 WARN(1, "Invalid memcpy_fromio at address 0x%llx\n", in real_memcpy_fromio() 212 WARN(1, "Invalid memcpy_toio at address 0x%llx\n", in real_memcpy_toio()
|
/linux/tools/objtool/include/objtool/ |
A D | warn.h | 43 #define WARN(format, ...) \ macro 51 WARN("%s: " format, _str, ##__VA_ARGS__); \ 59 WARN(" %s: " format, _str, ##__VA_ARGS__); \ 64 WARN(format ": %s", ##__VA_ARGS__, elf_errmsg(-1))
|
/linux/scripts/coccinelle/misc/ |
A D | warn.cocci | 2 /// Use WARN(1,...) rather than printk followed by 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" 50 +WARN(1, 60 WARN(1,es);
|
/linux/mm/ |
A D | early_ioremap.c | 91 if (WARN(count, KERN_WARNING in check_early_ioremap_leak() 119 if (WARN(slot < 0, "%s(%pa, %08lx) not found slot\n", in __early_ioremap() 156 WARN(early_ioremap_debug, "%s(%pa, %08lx) [%d] => %08lx + %08lx\n", in __early_ioremap() 179 if (WARN(slot < 0, "%s(%p, %08lx) not found slot\n", in early_iounmap() 183 if (WARN(prev_size[slot] != size, in early_iounmap() 188 WARN(early_ioremap_debug, "%s(%p, %08lx) [%d]\n", in early_iounmap()
|
A D | memremap.c | 211 WARN(1, "Conflicting mapping in same section\n"); in pagemap_range() 218 WARN(1, "Conflicting mapping in same section\n"); in pagemap_range() 332 WARN(1, "Device private memory not supported\n"); in memremap_pages() 336 WARN(1, "Missing migrate_to_ram method\n"); in memremap_pages() 340 WARN(1, "Missing page_free method\n"); in memremap_pages() 344 WARN(1, "Missing owner\n"); in memremap_pages() 351 WARN(1, "File system DAX not supported\n"); in memremap_pages() 361 WARN(1, "Invalid pgmap type %d\n", pgmap->type); in memremap_pages() 377 WARN(1, "Missing reference count teardown definition\n"); in memremap_pages()
|
/linux/drivers/gpu/drm/ |
A D | drm_mode_config.c | 583 WARN(!!(encoder->possible_clones & drm_encoder_mask(other)) != in validate_encoder_possible_clones() 617 WARN((encoder->possible_crtcs & crtc_mask) == 0 || in validate_encoder_possible_crtcs() 645 WARN(!crtc->primary, "Missing primary plane on [CRTC:%d:%s]\n", in drm_mode_config_validate() 648 WARN(crtc->cursor && crtc->funcs->cursor_set, in drm_mode_config_validate() 651 WARN(crtc->cursor && crtc->funcs->cursor_set2, in drm_mode_config_validate() 654 WARN(crtc->cursor && crtc->funcs->cursor_move, in drm_mode_config_validate() 659 WARN(!(crtc->primary->possible_crtcs & drm_crtc_mask(crtc)), in drm_mode_config_validate() 663 WARN(primary_with_crtc & drm_plane_mask(crtc->primary), in drm_mode_config_validate() 669 WARN(!(crtc->cursor->possible_crtcs & drm_crtc_mask(crtc)), in drm_mode_config_validate() 673 WARN(cursor_with_crtc & drm_plane_mask(crtc->cursor), in drm_mode_config_validate() [all …]
|
/linux/tools/objtool/ |
A D | check.c | 278 WARN("calloc failed"); in cfi_alloc() 334 WARN("mmap fail cfi_hash"); in cfi_hash_alloc() 375 WARN("malloc failed"); in decode_instructions() 1338 WARN("malloc failed"); in handle_group_alt() 1344 WARN("calloc failed"); in handle_group_alt() 1364 WARN("malloc failed"); in handle_group_alt() 1378 WARN("malloc failed"); in handle_group_alt() 1573 WARN("malloc failed"); in add_special_section_alts() 1635 WARN("malloc failed"); in add_jump_table() 2707 WARN("CFI missing"); in propagate_alt_cfi() [all …]
|
A D | elf.c | 47 WARN("mmap fail " #name); \ 284 WARN("unexpected data attributes for %s", in read_sections() 305 WARN("section entry mismatch"); in read_sections() 404 WARN("couldn't find section for symbol %s", in read_symbols() 453 WARN("%s(): can't find parent function", in read_symbols() 598 WARN("can't find base section for reloc section %s", in read_relocs() 629 WARN("can't find reloc entry symbol %d for %s", in read_relocs() 718 WARN("can't find .strtab section"); in elf_add_string() 811 WARN("can't find .shstrtab or .strtab section"); in elf_create_section() 977 WARN("write to unexpected data for section: %s", sec->name); in elf_write_insn() [all …]
|
/linux/drivers/misc/cxl/ |
A D | hcalls.c | 68 WARN(1, "Warning: Giving up waiting for CXL hcall " \ 165 WARN(1, "Unexpected return code: %lx", rc); in cxl_h_attach_process() 195 WARN(1, "Unexpected return code: %lx", rc); in cxl_h_detach_process() 236 WARN(1, "Unexpected return code: %lx", rc); in cxl_h_control_function() 423 WARN(1, "Unexpected return code: %lx", rc); in cxl_h_collect_int_info() 468 WARN(1, "Unexpected return code: %lx", rc); in cxl_h_control_faults() 507 WARN(1, "Unexpected return code: %lx", rc); in cxl_h_control_facility() 583 WARN(1, "Warning: Giving up waiting for CXL hcall " in cxl_h_download_facility() 614 WARN(1, "Unexpected return code: %lx", rc); in cxl_h_download_facility()
|
/linux/drivers/tty/ |
A D | tty_mutex.c | 17 if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty)) in tty_lock() 28 if (WARN(tty->magic != TTY_MAGIC, "L Bad %p\n", tty)) in tty_lock_interruptible() 39 if (WARN(tty->magic != TTY_MAGIC, "U Bad %p\n", tty)) in tty_unlock()
|
/linux/drivers/bus/ |
A D | arm-cci.c | 198 if (WARN(!cpun, "Missing cpu device node\n")) in cci_ace_init_ports() 209 WARN(!cpu_port_is_valid(&cpu_port[cpu]), in cci_ace_init_ports() 469 WARN(1, "node %pOF missing interface-type property\n", in cci_probe_ports() 475 WARN(1, "node %pOF containing invalid interface-type property, skipping it\n", in cci_probe_ports() 486 WARN(1, "unable to ioremap CCI port %d\n", i); in cci_probe_ports() 550 WARN(1, "unable to ioremap CCI ctrl\n"); in cci_probe()
|
/linux/fs/proc/ |
A D | generic.c | 173 WARN(1, "name '%s'\n", name); in __xlate_proc_name() 376 WARN(1, "proc_dir_entry '%s/%s' already registered\n", in proc_register() 406 WARN(1, "name len %u\n", qstr.len); in __proc_create() 410 WARN(1, "name '.'\n"); in __proc_create() 414 WARN(1, "name '..'\n"); in __proc_create() 418 WARN(1, "create '/proc/%s' by hand\n", qstr.name); in __proc_create() 422 WARN(1, "attempt to add to permanently empty directory"); in __proc_create() 709 WARN(1, "name '%s'\n", name); in remove_proc_entry() 715 WARN(pde_subdir_first(de), in remove_proc_entry() 742 WARN(1, "removing permanent /proc entry '%s/%s'", in remove_proc_subtree() [all …]
|
/linux/kernel/power/ |
A D | qos.c | 71 WARN(1, "Unknown PM QoS type in %s\n", __func__); in pm_qos_get_value() 270 WARN(1, KERN_ERR "%s called for already added request\n", __func__); in cpu_latency_qos_add_request() 296 WARN(1, KERN_ERR "%s called for unknown object\n", __func__); in cpu_latency_qos_update_request() 322 WARN(1, KERN_ERR "%s called for unknown object\n", __func__); in cpu_latency_qos_remove_request() 537 if (WARN(freq_qos_request_active(req), in freq_qos_add_request() 569 if (WARN(!freq_qos_request_active(req), in freq_qos_update_request() 597 if (WARN(!freq_qos_request_active(req), in freq_qos_remove_request()
|
/linux/arch/x86/include/asm/ |
A D | iosf_mbi.h | 204 WARN(1, "IOSF_MBI driver not available"); in iosf_mbi_read() 211 WARN(1, "IOSF_MBI driver not available"); in iosf_mbi_write() 218 WARN(1, "IOSF_MBI driver not available"); in iosf_mbi_modify()
|
/linux/arch/mips/mm/ |
A D | uasm.c | 79 WARN(arg & ~RS_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rs() 86 WARN(arg & ~RT_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rt() 93 WARN(arg & ~RD_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rd() 100 WARN(arg & ~RE_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_re() 107 WARN(arg > 0x7fff || arg < -0x8000, in build_simm() 115 WARN(arg & ~IMM_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_uimm() 122 WARN(arg & ~SCIMM_MASK, in build_scimm() 130 WARN((arg > 0xff || arg < -0x100), in build_scimm9() 138 WARN(arg & ~FUNC_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_func() 145 WARN(arg & ~SET_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_set()
|
/linux/arch/powerpc/platforms/pseries/ |
A D | event_sources.c | 21 if (WARN(!virq, "event-sources: Unable to allocate " in request_event_sources_irqs() 26 if (WARN(rc, "event-sources: Unable to request interrupt %d for %pOF\n", in request_event_sources_irqs()
|
/linux/net/core/ |
A D | xdp.c | 124 WARN(1, "Missing register, driver bug"); in xdp_rxq_info_unreg_mem_model() 163 WARN(1, "Driver promised not to register this"); in xdp_rxq_info_reg() 168 WARN(1, "Missing unregister, handled but fix driver"); in xdp_rxq_info_reg() 173 WARN(1, "Missing net_device from driver"); in xdp_rxq_info_reg() 271 WARN(1, "Missing register, driver bug"); in xdp_rxq_info_reg_mem_model() 370 WARN(1, "Incorrect XDP memory type (%d) usage", mem->type); in __xdp_return() 513 WARN(1, "XDP_WARN: %s(line:%d): %s\n", func, line, msg); in xdp_warn()
|