Hi, I've written a new check for missing error codes. It assumes that most gotos are error paths (which turns out to be a wrong assumption) but still the results are kind of interesting. I'm thinking that it maybe should only warn for a few types of things: 1) p = frob(); if (!p) { p is a pointer and it was assigned from a function. And the function doesn't return a mix of error pointers and NULL. 2) if (IS_ERR(p)) { error pointers. Obvious. 3) if (frob()) { frob() is a function that returns negatives. 4) if (x > y) { bounds checking 5) when there is a dev_err() after the if statement. Anything else that indicates an error path? regards, dan carpenter
/* * Copyright (C) 2023 Dan Carpenter. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see http://www.gnu.org/copyleft/gpl.txt */ /* * This is copy and pasted from check_missing_error_code2.c but it is modified * to work for gotos instead of direct returns. * */ #include "smatch.h" #include "smatch_extra.h" #include "smatch_slist.h" static int my_id; STATE(zero); static void set_undefined(struct sm_state *sm, struct expression *mod_expr) { set_state(my_id, sm->name, sm->sym, &undefined); } static struct statement *get_if_statement(struct statement *stmt) { stmt = stmt_get_parent_stmt(stmt); if (stmt && stmt->type == STMT_COMPOUND) stmt = stmt_get_parent_stmt(stmt); if (!stmt) return NULL; if (stmt->type != STMT_IF) return NULL; return stmt; } static bool condition_matches(struct expression *cond, struct expression *expr) { expr = strip_expr(expr); cond = strip_expr(cond); while (cond) { if (cond->type == EXPR_PREOP && (cond->op == '(' || cond->op == '!')) { cond = strip_expr(cond->unop); continue; } if (cond->type == EXPR_COMPARE && (cond->op == SPECIAL_EQUAL || cond->op == SPECIAL_NOTEQUAL || cond->op == SPECIAL_GTE || cond->op == SPECIAL_LTE) && expr_is_zero(cond->right)) { cond = strip_expr(cond->left); continue; } if (cond->type == EXPR_LOGICAL && cond->op == SPECIAL_LOGICAL_AND) { if (condition_matches(cond->left, expr) || condition_matches(cond->right, expr)) return true; return false; } break; } if (expr_equiv(cond, expr)) return true; return false; } static bool condition_is_equal(struct expression *cond) { cond = strip_expr(cond); if (cond->type == EXPR_LOGICAL) { if (condition_is_equal(cond->left) && condition_is_equal(cond->right)) return true; return false; } if (cond->type == EXPR_COMPARE && cond->op == SPECIAL_EQUAL) return true; return false; } static struct expression *get_orig_call(struct expression *expr) { struct expression *orig; orig = get_assigned_expr(expr); if (!orig || orig->type != EXPR_CALL) return NULL; return orig; } struct expression *get_last_return(void) { struct symbol *base_type = get_base_type(cur_func_sym); struct statement *stmt; if (!base_type) return NULL; if (base_type->stmt) stmt = base_type->stmt; else if (base_type->inline_stmt) stmt = base_type->stmt; else return NULL; while (stmt && stmt->type == STMT_COMPOUND) { stmt = last_ptr_list((struct ptr_list *)stmt->stmts); if (stmt && stmt->type == STMT_LABEL && stmt->label_statement) stmt = stmt->label_statement; } if (!stmt || stmt->type != STMT_RETURN) return NULL; return stmt->ret_value; } static bool label_is_local(struct symbol *sym) { const char *name; if (!sym || !sym->ident) return false; name = sym->ident->name; /* * There should be a way to figure this out using sym->label_scope. * However, I'm not sure how exactly. Instead use the observation * that most macros declare their labels with leading underscores. */ if (name[0] == '_') return true; return false; } static void match_goto(struct statement *stmt) { struct expression *expr, *call; struct statement *if_stmt; sval_t sval; if (!stmt || stmt->type != STMT_GOTO) return; if (!stmt->goto_label || stmt->goto_label->type != SYM_LABEL || !stmt->goto_label->ident) return; if (label_is_local(stmt->goto_label)) return; expr = get_last_return(); if (!expr || expr->type != EXPR_SYMBOL) return; if (get_type(expr) != &int_ctype) return; if (!get_implied_value(expr, &sval) || sval.value != 0) return; if_stmt = get_if_statement(stmt); if (!if_stmt) return; if (condition_is_equal(if_stmt->if_conditional)) return; if (condition_matches(if_stmt->if_conditional, expr)) return; call = get_orig_call(expr); if (!call) return; if (call->pos.line >= if_stmt->pos.line) return; if (call->pos.line + 5 >= expr->pos.line) return; set_state_expr(my_id, expr, &zero); } static void match_return(struct expression *expr) { struct sm_state *sm, *tmp; char *name; int line; if (!expr) return; if (implied_not_equal(expr, 0)) return; sm = get_sm_state_expr(my_id, expr); if (!sm || !slist_has_state(sm->possible, &zero)) return; line = expr->pos.line; FOR_EACH_PTR(sm->possible, tmp) { if (tmp->state != &zero) continue; if (line > tmp->line) line = tmp->line; } END_FOR_EACH_PTR(tmp); name = expr_to_str(expr); sm_warning_line(line, "NEW missing error code '%s'", name); free_string(name); } void check_missing_error_code3(int id) { my_id = id; if (option_project != PROJ_KERNEL) return; add_hook(&match_goto, STMT_HOOK); add_modification_hook(my_id, &set_undefined); add_hook(&match_return, RETURN_HOOK); }
drivers/usb/gadget/legacy/g_ffs.c:399 gfs_bind() warn: NEW missing error code 'ret' drivers/usb/musb/musb_host.c:2374 musb_urb_dequeue() warn: NEW missing error code 'ret' drivers/usb/cdns3/cdnsp-mem.c:698 cdnsp_alloc_priv_device() warn: NEW missing error code 'ret' drivers/usb/dwc2/hcd.c:4814 _dwc2_hcd_urb_dequeue() warn: NEW missing error code 'rc' drivers/usb/host/xhci.c:1858 xhci_urb_dequeue() warn: NEW missing error code 'ret' drivers/usb/host/xhci.c:1846 xhci_urb_dequeue() warn: NEW missing error code 'ret' drivers/mtd/ubi/attach.c:898 check_corruption() warn: NEW missing error code 'err' drivers/mtd/ubi/eba.c:465 ubi_eba_unmap_leb() warn: NEW missing error code 'err' drivers/mtd/chips/cfi_cmdset_0002.c:2261 do_panic_write_oneword() warn: NEW missing error code 'ret' drivers/mtd/nand/raw/nand_base.c:895 nand_setup_interface() warn: NEW missing error code 'ret' drivers/mtd/spi-nor/sfdp.c:1051 spi_nor_parse_4bait() warn: NEW missing error code 'ret' drivers/char/ipmi/ipmi_si_intf.c:1561 try_enable_event_buffer() warn: NEW missing error code 'rv' drivers/char/ipmi/ipmi_msghandler.c:2695 __bmc_get_device_id() warn: NEW missing error code 'rv' drivers/char/ipmi/ipmi_msghandler.c:5487 ipmi_init_msghandler() warn: NEW missing error code 'rv' drivers/char/xillybus/xillybus_core.c:1038 xillybus_myflush() warn: NEW missing error code 'rc' drivers/platform/surface/surface_aggregator_cdev.c:347 ssam_cdev_request() warn: NEW missing error code 'ret' drivers/atm/fore200e.c:2416 fore200e_load_and_start_fw() warn: NEW missing error code 'err' drivers/power/supply/mt6360_charger.c:202 mt6360_charger_get_status() warn: NEW missing error code 'ret' drivers/power/supply/max14577_charger.c:83 max14577_get_charger_state() warn: NEW missing error code 'ret' drivers/power/supply/max14577_charger.c:184 max14577_get_battery_health() warn: NEW missing error code 'ret' drivers/power/supply/cpcap-battery.c:813 cpcap_battery_update_charger() warn: NEW missing error code 'error' drivers/infiniband/sw/siw/siw_qp_tx.c:915 siw_qp_sq_proc_tx() warn: NEW missing error code 'rv' drivers/infiniband/hw/cxgb4/cq.c:666 poll_cq() warn: NEW missing error code 'ret' drivers/infiniband/hw/hns/hns_roce_hw_v2.c:5609 hns_roce_v2_qp_flow_control_init() warn: NEW missing error code 'ret' drivers/infiniband/hw/hns/hns_roce_hem.c:541 hns_roce_table_mhop_get() warn: NEW missing error code 'ret' drivers/infiniband/hw/irdma/hw.c:2578 irdma_hw_flush_wqes() warn: NEW missing error code 'status' drivers/infiniband/hw/qedr/verbs.c:2931 init_mr_info() warn: NEW missing error code 'rc' drivers/infiniband/hw/qib/qib_file_ops.c:2287 qib_cdev_init() warn: NEW missing error code 'ret' drivers/infiniband/hw/mlx4/main.c:791 eth_link_query_port() warn: NEW missing error code 'err' drivers/infiniband/hw/mthca/mthca_mcg.c:107 find_mgm() warn: NEW missing error code 'err' drivers/infiniband/hw/mthca/mthca_mcg.c:189 mthca_multicast_attach() warn: NEW missing error code 'err' drivers/infiniband/hw/mthca/mthca_mcg.c:264 mthca_multicast_detach() warn: NEW missing error code 'err' drivers/infiniband/hw/mlx5/mem.c:231 mlx5_ib_test_wc() warn: NEW missing error code 'ret' drivers/nvdimm/btt.c:1231 btt_read_pg() warn: NEW missing error code 'ret' drivers/staging/rtl8723bs/core/rtw_recv.c:2011 recv_func_posthandle() warn: NEW missing error code 'ret' drivers/staging/rtl8712/rtl8712_recv.c:946 recv_func() warn: NEW missing error code 'retval' drivers/staging/media/deprecated/atmel/atmel-isc-base.c:1174 isc_open() warn: NEW missing error code 'ret' drivers/staging/media/imx/imx-media-csi.c:1675 csi_set_selection() warn: NEW missing error code 'ret' drivers/staging/r8188eu/core/rtw_recv.c:1880 recv_func_posthandle() warn: NEW missing error code 'ret' drivers/staging/r8188eu/os_dep/ioctl_linux.c:1067 rtw_wx_set_scan() warn: NEW missing error code 'ret' drivers/rtc/interface.c:330 __rtc_read_alarm() warn: NEW missing error code 'err' drivers/block/drbd/drbd_receiver.c:535 drbd_recv() warn: NEW missing error code 'rv' drivers/pci/controller/pci-hyperv.c:3060 hv_pci_protocol_negotiation() warn: NEW missing error code 'ret' drivers/tty/tty_io.c:361 tty_dev_name_to_number() warn: NEW missing error code 'ret' drivers/accel/habanalabs/common/command_submission.c:3300 _hl_interrupt_wait_ioctl() warn: NEW missing error code 'rc' drivers/mfd/si476x-cmd.c:384 si476x_cmd_tune_seek_freq() warn: NEW missing error code 'err' drivers/thermal/ti-soc-thermal/ti-bandgap.c:418 ti_bandgap_read_update_interval() warn: NEW missing error code 'ret' drivers/thermal/ti-soc-thermal/ti-bandgap.c:508 ti_bandgap_write_update_interval() warn: NEW missing error code 'ret' drivers/vdpa/mlx5/net/mlx5_vnet.c:2442 mlx5_vdpa_change_map() warn: NEW missing error code 'err' drivers/extcon/extcon-axp288.c:233 axp288_handle_chrg_det_event() warn: NEW missing error code 'ret' drivers/spi/spi-sn-f-ospi.c:441 f_ospi_indir_read() warn: NEW missing error code 'ret' drivers/of/base.c:1612 of_parse_phandle_with_args_map() warn: NEW missing error code 'ret' drivers/gpu/drm/radeon/radeon_gem.c:763 radeon_gem_va_ioctl() warn: NEW missing error code 'r' drivers/gpu/drm/drm_atomic_uapi.c:947 drm_atomic_connector_commit_dpms() warn: NEW missing error code 'ret' drivers/gpu/drm/i915/gvt/mmio_context.c:323 intel_vgpu_restore_inhibit_context() warn: NEW missing error code 'ret' drivers/gpu/drm/i915/gem/i915_gem_mman.c:153 check_partial_mapping() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gem/i915_gem_stolen.c:812 init_stolen_lmem() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gem/i915_gem_object.c:1529 igt_ppgtt_compact() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gem/i915_gem_object.c:1646 igt_ppgtt_mixed() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gem/i915_gem_object.c:1829 igt_shrink_thp() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gt/intel_context_sseu.c:88 intel_context_reconfigure_sseu() warn: NEW missing error code 'ret' drivers/gpu/drm/i915/gt/intel_reset.c:1528 __igt_reset_evict_vma() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gt/intel_lrc.c:1660 __live_lrc_indirect_ctx_bb() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c:766 intel_uc_fw_fetch() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gt/intel_rps.c:668 live_rps_frequency_cs() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gt/intel_rps.c:806 live_rps_frequency_srm() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gt/intel_execlists_submission.c:240 live_unlite_restore() warn: NEW missing error code 'err' drivers/gpu/drm/i915/gt/intel_timeline.c:1277 live_hwsp_rollover_user() warn: NEW missing error code 'err' drivers/gpu/drm/i915/display/intel_drrs.c:354 intel_drrs_debugfs_ctl_set() warn: NEW missing error code 'ret' drivers/gpu/drm/i915/i915_vma.c:1502 i915_vma_pin_ww() warn: NEW missing error code 'err' drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c:358 mcp77_clk_prog() warn: NEW missing error code 'ret' drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c:515 cdns_mhdp_adjust_lt() warn: NEW missing error code 'ret' drivers/gpu/drm/drm_auth.c:259 drm_setmaster_ioctl() warn: NEW missing error code 'ret' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:1618 vmw_gb_surface_reference_internal() warn: NEW missing error code 'ret' drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c:446 svm_migrate_vma_to_vram() warn: NEW missing error code 'r' drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device_queue_manager.c:575 create_queue_nocpsch() warn: NEW missing error code 'retval' drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1574 kfd_dev_create_p2p_links() warn: NEW missing error code 'ret' drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c:245 amdgpu_ctx_init_entity() warn: NEW missing error code 'r' drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c:353 amdgpu_ctx_set_stable_pstate() warn: NEW missing error code 'r' drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c:1694 vcn_v4_0_dec_msg() warn: NEW missing error code 'r' drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1833 vcn_v3_0_dec_msg() warn: NEW missing error code 'r' drivers/nvme/target/tcp.c:1027 nvmet_tcp_done_recv_pdu() warn: NEW missing error code 'ret' drivers/nvme/host/core.c:1734 nvme_init_ms() warn: NEW missing error code 'ret' drivers/nvme/host/core.c:4520 nvme_scan_ns_list() warn: NEW missing error code 'ret' drivers/regulator/core.c:2070 regulator_resolve_supply() warn: NEW missing error code 'ret' drivers/acpi/apei/einj.c:322 __einj_error_trigger() warn: NEW missing error code 'rc' drivers/acpi/apei/ghes.c:1101 ghes_in_nmi_queue_one_entry() warn: NEW missing error code 'rc' drivers/acpi/device_pm.c:864 __acpi_device_wakeup_enable() warn: NEW missing error code 'error' drivers/acpi/acpi_processor.c:391 acpi_processor_add() warn: NEW missing error code 'result' drivers/acpi/fan_core.c:92 fan_get_state_acpi4() warn: NEW missing error code 'status' drivers/dma-buf/st-dma-fence-chain.c:413 __find_race() warn: NEW missing error code 'err' drivers/dma-buf/st-dma-resv.c:282 test_get_fences() warn: NEW missing error code 'r' drivers/hid/intel-ish-hid/ipc/ipc.c:830 _ish_ipc_reset() warn: NEW missing error code 'rv' drivers/hid/i2c-hid/i2c-hid-core.c:447 i2c_hid_execute_reset() warn: NEW missing error code 'ret' drivers/md/raid5-cache.c:2540 r5c_journal_mode_show() warn: NEW missing error code 'ret' drivers/thunderbolt/dma_test.c:538 test_store() warn: NEW missing error code 'ret' drivers/hwtracing/stm/core.c:318 stm_output_assign() warn: NEW missing error code 'ret' drivers/media/usb/dvb-usb-v2/rtl28xxu.c:1760 rtl2832u_rc_query() warn: NEW missing error code 'ret' drivers/media/platform/samsung/exynos4-is/fimc-lite.c:482 fimc_lite_open() warn: NEW missing error code 'ret' drivers/media/platform/ti/am437x/am437x-vpfe.c:1089 vpfe_open() warn: NEW missing error code 'ret' drivers/media/platform/st/stm32/stm32-dcmi.c:1477 dcmi_open() warn: NEW missing error code 'ret' drivers/media/platform/qcom/venus/vdec.c:544 vdec_decoder_cmd() warn: NEW missing error code 'ret' drivers/media/platform/microchip/microchip-isc-base.c:1163 isc_open() warn: NEW missing error code 'ret' drivers/media/platform/intel/pxa_camera.c:1968 pxac_fops_camera_open() warn: NEW missing error code 'ret' drivers/media/platform/atmel/atmel-isi.c:888 isi_open() warn: NEW missing error code 'ret' drivers/media/platform/amphion/vpu_cmds.c:334 vpu_session_send_cmd() warn: NEW missing error code 'ret' drivers/media/dvb-frontends/mxl692.c:668 mxl692_reset() warn: NEW missing error code 'status' drivers/media/dvb-frontends/lgs8gxx.c:423 lgs8gxx_auto_detect() warn: NEW missing error code 'err' drivers/media/dvb-frontends/drxk_hard.c:1492 scu_command() warn: NEW missing error code 'status' drivers/media/dvb-frontends/cxd2841er.c:1087 cxd2841er_read_status_tc() warn: NEW missing error code 'ret' drivers/media/dvb-frontends/rtl2830.c:446 rtl2830_read_status() warn: NEW missing error code 'ret' drivers/media/radio/radio-wl1273.c:840 wl1273_fm_set_seek() warn: NEW missing error code 'r' drivers/scsi/fnic/fnic_scsi.c:506 fnic_queuecommand_lck() warn: NEW missing error code 'ret' drivers/scsi/qla1280.c:1642 qla1280_chip_diag() warn: NEW missing error code 'status' drivers/scsi/snic/snic_scsi.c:1818 snic_dr_clean_single_req() warn: NEW missing error code 'ret' drivers/scsi/lpfc/lpfc_vport.c:509 lpfc_send_npiv_logo() warn: NEW missing error code 'rc' drivers/scsi/smartpqi/smartpqi_init.c:874 pqi_get_advanced_raid_bypass_config() warn: NEW missing error code 'rc' drivers/scsi/qla2xxx/qla_mbx.c:791 qla2x00_execute_fw() warn: NEW missing error code 'rval' drivers/scsi/elx/efct/efct_driver.c:348 efct_request_firmware_update() warn: NEW missing error code 'rc' drivers/scsi/mpi3mr/mpi3mr_fw.c:3496 mpi3mr_issue_port_enable() warn: NEW missing error code 'retval' drivers/scsi/mpi3mr/mpi3mr_fw.c:3835 mpi3mr_init_ioc() warn: NEW missing error code 'retval' drivers/scsi/mpi3mr/mpi3mr_fw.c:4077 mpi3mr_reinit_ioc() warn: NEW missing error code 'retval' drivers/scsi/qla4xxx/ql4_os.c:923 qla4xxx_delete_chap() warn: NEW missing error code 'ret' drivers/scsi/qla4xxx/ql4_bsg.c:575 qla4_83xx_pre_loopback_config() warn: NEW missing error code 'status' drivers/scsi/scsi_transport_sas.c:1258 sas_read_port_mode_page() warn: NEW missing error code 'error' drivers/scsi/qedf/qedf_main.c:800 qedf_eh_abort() warn: NEW missing error code 'rc' drivers/scsi/libsas/sas_expander.c:542 sas_ex_manuf_info() warn: NEW missing error code 'res' drivers/scsi/3w-xxxx.c:2309 tw_probe() warn: NEW missing error code 'retval' drivers/scsi/csiostor/csio_hw.c:1486 csio_config_device_caps() warn: NEW missing error code 'rv' drivers/scsi/be2iscsi/be_mgmt.c:660 beiscsi_if_en_dhcp() warn: NEW missing error code 'rc' drivers/input/input.c:648 input_open_device() warn: NEW missing error code 'retval' drivers/mmc/core/mmc.c:1985 mmc_sleep() warn: NEW missing error code 'err' drivers/mmc/core/sd.c:1285 sd_read_ext_regs() warn: NEW missing error code 'err' drivers/mmc/core/core.c:1680 mmc_do_erase() warn: NEW missing error code 'err' drivers/mmc/core/mmc_ops.c:627 __mmc_switch() warn: NEW missing error code 'err' drivers/mmc/host/sdhci-omap.c:449 sdhci_omap_execute_tuning() warn: NEW missing error code 'ret' drivers/mmc/host/dw_mmc-hi3798cv200.c:87 dw_mci_hi3798cv200_execute_tuning() warn: NEW missing error code 'err' drivers/nfc/st-nci/se.c:574 st_nci_hci_network_init() warn: NEW missing error code 'r' drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c:1225 otx2_cpt_create_eng_grps() warn: NEW missing error code 'ret' drivers/crypto/hisilicon/qm.c:1622 qm_ping_single_vf() warn: NEW missing error code 'ret' drivers/crypto/hisilicon/qm.c:3832 hisi_qm_sriov_enable() warn: NEW missing error code 'ret' drivers/ufs/core/ufshcd.c:4166 ufshcd_uic_pwr_ctrl() warn: NEW missing error code 'ret' drivers/remoteproc/remoteproc_core.c:1842 rproc_trigger_recovery() warn: NEW missing error code 'ret' drivers/remoteproc/remoteproc_core.c:2007 rproc_shutdown() warn: NEW missing error code 'ret' drivers/tee/amdtee/core.c:256 amdtee_open_session() warn: NEW missing error code 'rc' drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c:778 kvaser_usb_hydra_get_single_capability() warn: NEW missing error code 'err' drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c:795 kvaser_usb_leaf_get_single_capability() warn: NEW missing error code 'err' drivers/net/can/softing/softing_fw.c:160 softing_load_fw() warn: NEW missing error code 'ret' drivers/net/wireless/broadcom/b43legacy/main.c:2712 b43legacy_op_dev_config() warn: NEW missing error code 'err' drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:3851 brcmf_notify_sched_scan_results() warn: NEW missing error code 'err' drivers/net/wireless/ath/wcn36xx/smd.c:2460 wcn36xx_smd_feature_caps_exchange() warn: NEW missing error code 'ret' drivers/net/wireless/ath/wcn36xx/smd.c:2632 wcn36xx_smd_get_stats() warn: NEW missing error code 'ret' drivers/net/wireless/ath/ath10k/mac.c:7562 ath10k_sta_state() warn: NEW missing error code 'ret' drivers/net/wireless/ath/ath12k/wmi.c:5171 ath12k_reg_chan_list_event() warn: NEW missing error code 'ret' drivers/net/wireless/ath/ath12k/qmi.c:2131 ath12k_qmi_respond_fw_mem_request() warn: NEW missing error code 'ret' drivers/net/wireless/ath/ath11k/peer.c:542 ath11k_peer_rhash_id_tbl_init() warn: NEW missing error code 'ret' drivers/net/wireless/ath/ath11k/peer.c:597 ath11k_peer_rhash_addr_tbl_init() warn: NEW missing error code 'ret' drivers/net/wireless/ath/ath11k/wmi.c:6545 ath11k_reg_chan_list_event() warn: NEW missing error code 'ret' drivers/net/wireless/ath/ath11k/qmi.c:1941 ath11k_qmi_respond_fw_mem_request() warn: NEW missing error code 'ret' drivers/net/wireless/marvell/libertas_tf/if_usb.c:875 if_usb_prog_firmware() warn: NEW missing error code 'ret' drivers/net/wireless/ti/wlcore/cmd.c:190 wlcore_cmd_wait_for_event_or_timeout() warn: NEW missing error code 'ret' drivers/net/wireless/ti/wlcore/main.c:4080 wlcore_set_beacon_template() warn: NEW missing error code 'ret' drivers/net/wireless/ti/wl18xx/main.c:1580 wl18xx_set_key() warn: NEW missing error code 'ret' drivers/net/wireless/intersil/p54/p54usb.c:785 p54u_upload_firmware_net2280() warn: NEW missing error code 'err' drivers/net/wireless/intel/iwlwifi/mvm/tdls.c:387 iwl_mvm_tdls_config_channel_switch() warn: NEW missing error code 'ret' drivers/net/wireless/wl3501_cs.c:1749 wl3501_get_retry() warn: NEW missing error code 'rc' drivers/net/wireless/wl3501_cs.c:1776 wl3501_get_encode() warn: NEW missing error code 'rc' drivers/net/wireless/mediatek/mt76/mt7996/main.c:1282 mt7996_set_radar_background() warn: NEW missing error code 'ret' drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:466 mt7921_load_clc() warn: NEW missing error code 'ret' drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:165 mt7603_load_firmware() warn: NEW missing error code 'ret' drivers/net/wireless/mediatek/mt76/mt7915/main.c:1471 mt7915_set_radar_background() warn: NEW missing error code 'ret' drivers/net/wwan/iosm/iosm_ipc_coredump.c:92 ipc_coredump_get_list() warn: NEW missing error code 'ret' drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c:853 bnxt_dl_livepatch_info_put() warn: NEW missing error code 'rc' drivers/net/ethernet/broadcom/bnxt/bnxt.c:7020 bnxt_hwrm_func_qcfg() warn: NEW missing error code 'rc' drivers/net/ethernet/broadcom/bnxt/bnxt.c:7583 bnxt_hwrm_func_resc_qcaps() warn: NEW missing error code 'rc' drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c:363 bnxt_hwrm_set_dcbx_app() warn: NEW missing error code 'rc' drivers/net/ethernet/broadcom/cnic.c:2399 cnic_bnx2x_fcoe_ofld1() warn: NEW missing error code 'ret' drivers/net/ethernet/broadcom/tg3.c:7223 tg3_poll_msix() warn: NEW missing error code 'work_done' drivers/net/ethernet/broadcom/tg3.c:7322 tg3_poll() warn: NEW missing error code 'work_done' drivers/net/ethernet/freescale/enetc/enetc_qos.c:498 enetc_streamid_hw_set() warn: NEW missing error code 'err' drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c:1385 netxen_nic_pci_mem_access_direct() warn: NEW missing error code 'ret' drivers/net/ethernet/qlogic/qed/qed_vf.c:1372 qed_vf_pf_get_coalesce() warn: NEW missing error code 'rc' drivers/net/ethernet/qlogic/qed/qed_vf.c:1441 qed_vf_pf_set_coalesce() warn: NEW missing error code 'rc' drivers/net/ethernet/qlogic/qed/qed_int.c:951 qed_int_deassertion_aeu_bit() warn: NEW missing error code 'rc' drivers/net/ethernet/qlogic/qed/qed_iwarp.c:2111 qed_iwarp_send_fpdu() warn: NEW missing error code 'rc' drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_hw.c:428 chtls_setkey() warn: NEW missing error code 'ret' drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c:603 cxgb4_setup_tc_mqprio() warn: NEW missing error code 'ret' drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:4111 adap_config_hma() warn: NEW missing error code 'ret' drivers/net/ethernet/chelsio/cxgb3/aq100x.c:310 t3_aq100x_phy_prep() warn: NEW missing error code 'err' drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:2854 nix_update_mce_list() warn: NEW missing error code 'err' drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:5378 rvu_nix_setup_ratelimit_aggr() warn: NEW missing error code 'rc' drivers/net/ethernet/mellanox/mlx4/mcg.c:1178 mlx4_qp_attach_common() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx4/mcg.c:1251 mlx4_qp_detach_common() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx4/fw.c:647 mlx4_QUERY_FUNC_CAP() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx4/fw.c:1671 mlx4_QUERY_FW() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx4/main.c:3460 mlx4_load_one() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:3512 mlx4_QUERY_CQ_wrapper() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx4/resource_tracker.c:3584 mlx4_MODIFY_CQ_wrapper() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlxsw/core_env.c:608 mlxsw_env_get_module_power_mode() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlxsw/core_env.c:733 mlxsw_env_set_module_power_mode_apply() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlxsw/pci.c:1610 mlxsw_pci_init() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c:68 mlx5_fpga_conn_map_buf() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c:193 mlx5_fpga_conn_send() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c:201 mlx5_fpga_device_start() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c:355 mlx5_pci_link_toggle() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:1219 mlx5e_ethtool_set_link_ksettings() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en_main.c:4772 mlx5e_xdp_set() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:5367 mlx5e_tc_nic_init() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:5855 mlx5e_tc_action_miss_mapping_get() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c:563 mlx5e_macsec_add_txsa() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c:957 mlx5e_macsec_add_rxsa() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c:91 mlx5e_rx_reporter_err_icosq_cqe_recover() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c:63 mlx5e_tx_reporter_err_cqe_recover() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:311 mlx5e_tc_tun_create_header_ipv4() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:416 mlx5e_tc_tun_update_header_ipv4() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:579 mlx5e_tc_tun_create_header_ipv6() warn: NEW missing error code 'err' drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:683 mlx5e_tc_tun_update_header_ipv6() warn: NEW missing error code 'err' drivers/net/ethernet/emulex/benet/be_cmds.c:3740 be_cmd_get_mac_from_list() warn: NEW missing error code 'status' drivers/net/ethernet/emulex/benet/be_cmds.c:4499 be_cmd_get_profile_config() warn: NEW missing error code 'status' drivers/net/ethernet/sfc/siena/efx_common.c:767 efx_siena_reset_up() warn: NEW missing error code 'rc' drivers/net/ethernet/sfc/falcon/efx.c:2379 ef4_reset_up() warn: NEW missing error code 'rc' drivers/net/ethernet/sfc/efx_common.c:759 efx_reset_up() warn: NEW missing error code 'rc' drivers/net/ethernet/microchip/lan966x/lan966x_main.c:144 lan966x_port_set_mac_address() warn: NEW missing error code 'ret' drivers/net/ethernet/microchip/lan743x_main.c:106 lan743x_pci_init() warn: NEW missing error code 'ret' drivers/net/ethernet/stmicro/stmmac/dwmac5.c:491 dwmac5_rxp_config() warn: NEW missing error code 'ret' drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c:1070 dwxgmac3_rxp_config() warn: NEW missing error code 'ret' drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c:354 __stmmac_test_loopback() warn: NEW missing error code 'ret' drivers/net/ethernet/intel/ice/ice_lib.c:2704 ice_vsi_cfg_def() warn: NEW missing error code 'ret' drivers/net/ethernet/intel/ice/ice_flow.c:2102 ice_add_rss_cfg_sync() warn: NEW missing error code 'status' drivers/net/ethernet/intel/ice/ice_common.c:968 ice_cfg_fw_log() warn: NEW missing error code 'status' drivers/net/ethernet/intel/ice/ice_switch.c:5453 ice_add_adv_recipe() warn: NEW missing error code 'status' drivers/net/ethernet/intel/ice/ice_main.c:2158 ice_configure_phy() warn: NEW missing error code 'err' drivers/net/ethernet/intel/ice/ice_ethtool.c:2558 ice_set_link_ksettings() warn: NEW missing error code 'err' drivers/net/ethernet/intel/ice/ice_ethtool.c:3401 ice_get_rxfh_context() warn: NEW missing error code 'err' drivers/net/ethernet/intel/i40e/i40e_main.c:9453 i40e_handle_lldp_event() warn: NEW missing error code 'ret' drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:12224 hclge_set_channels() warn: NEW missing error code 'ret' drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:3142 hclgevf_set_channels() warn: NEW missing error code 'ret' drivers/net/ieee802154/ca8210.c:995 ca8210_spi_exchange() warn: NEW missing error code 'status' drivers/message/fusion/mptsas.c:2964 mptsas_exp_repmanufacture_info() warn: NEW missing error code 'ret' drivers/message/fusion/mptbase.c:7039 mpt_SoftResetHandler() warn: NEW missing error code 'rc' drivers/misc/fastrpc.c:995 fastrpc_get_args() warn: NEW missing error code 'err' drivers/iio/adc/stm32-adc.c:2232 stm32_adc_generic_chan_init() warn: NEW missing error code 'ret' drivers/ata/libata-pmp.c:972 sata_pmp_eh_recover() warn: NEW missing error code 'rc' drivers/ata/libata-pmp.c:972 sata_pmp_eh_recover() warn: NEW missing error code 'rc' drivers/ata/libata-sata.c:576 sata_link_hardreset() warn: NEW missing error code 'rc' drivers/base/power/domain.c:3208 status_show() warn: NEW missing error code 'ret' drivers/base/core.c:4657 device_change_owner() warn: NEW missing error code 'error' drivers/soc/qcom/pdr_interface.c:428 pdr_locate_service() warn: NEW missing error code 'ret' block/partitions/efi.c:194 is_pmbr_valid() warn: NEW missing error code 'ret' security/selinux/ss/policydb.c:1920 filename_trans_read_helper_compat() warn: NEW missing error code 'rc' fs/dlm/lock.c:2395 can_be_granted() warn: NEW missing error code 'rv' fs/btrfs/block-group.c:600 sample_block_group_extent_item() warn: NEW missing error code 'ret' fs/btrfs/block-group.c:3040 cache_save_setup() warn: NEW missing error code 'ret' fs/btrfs/tree-log.c:3911 log_dir_items() warn: NEW missing error code 'ret' fs/btrfs/tree-log.c:4486 copy_items() warn: NEW missing error code 'ret' fs/btrfs/inode.c:5007 btrfs_cont_expand() warn: NEW missing error code 'err' fs/btrfs/transaction.c:1705 create_pending_snapshot() warn: NEW missing error code 'ret' fs/btrfs/send.c:944 get_inode_info() warn: NEW missing error code 'ret' fs/btrfs/disk-io.c:2404 load_global_roots() warn: NEW missing error code 'ret' fs/btrfs/tests/extent-map-tests.c:522 test_rmap_block() warn: NEW missing error code 'ret' fs/btrfs/extent-tree.c:1298 do_discard_extent() warn: NEW missing error code 'ret' fs/btrfs/bio.c:757 btrfs_repair_io_failure() warn: NEW missing error code 'ret' fs/ntfs3/xattr.c:362 ntfs_set_ea() warn: NEW missing error code 'err' fs/ntfs3/frecord.c:2612 ni_read_frame() warn: NEW missing error code 'err' fs/ntfs3/frecord.c:2861 ni_write_frame() warn: NEW missing error code 'err' fs/ntfs3/fslog.c:2102 last_log_lsn() warn: NEW missing error code 'err' fs/ntfs3/dir.c:554 ntfs_dir_count() warn: NEW missing error code 'err' fs/ntfs3/fsntfs.c:1998 ntfs_get_security_by_id() warn: NEW missing error code 'err' fs/ntfs3/fsntfs.c:2430 ntfs_remove_reparse() warn: NEW missing error code 'err' fs/ntfs3/index.c:2311 indx_delete_entry() warn: NEW missing error code 'err' fs/ntfs3/index.c:2671 indx_update_dup() warn: NEW missing error code 'err' fs/proc/task_mmu.c:914 show_smaps_rollup() warn: NEW missing error code 'ret' fs/kernfs/file.c:521 kernfs_fop_mmap() warn: NEW missing error code 'rc' fs/xfs/xfs_dir2_readdir.c:221 xfs_dir2_block_getdents() warn: NEW missing error code 'error' fs/xfs/xfs_attr_item.c:612 xfs_attri_item_recover() warn: NEW missing error code 'error' fs/xfs/xfs_iomap.c:1012 xfs_buffered_write_iomap_begin() warn: NEW missing error code 'error' fs/xfs/xfs_attr_inactive.c:353 xfs_attr_inactive() warn: NEW missing error code 'error' fs/xfs/xfs_bmap_util.c:529 xfs_getbmap() warn: NEW missing error code 'error' fs/xfs/xfs_iunlink_item.c:71 xfs_iunlink_log_dinode() warn: NEW missing error code 'error' fs/xfs/xfs_mount.c:1315 xfs_add_incompat_log_feature() warn: NEW missing error code 'error' fs/xfs/scrub/dabtree.c:250 xchk_da_btree_block_check_sibling() warn: NEW missing error code 'error' fs/xfs/scrub/dabtree.c:427 xchk_da_btree_block() warn: NEW missing error code 'error' fs/xfs/scrub/dir.c:247 xchk_dir_rec() warn: NEW missing error code 'error' fs/xfs/scrub/dir.c:753 xchk_directory_blocks() warn: NEW missing error code 'error' fs/xfs/scrub/agheader.c:758 xchk_agfl() warn: NEW missing error code 'error' fs/xfs/scrub/quota.c:228 xchk_quota() warn: NEW missing error code 'error' fs/xfs/scrub/attr.c:425 xchk_xattr_rec() warn: NEW missing error code 'error' fs/xfs/scrub/attr.c:491 xchk_xattr() warn: NEW missing error code 'error' fs/xfs/scrub/repair.c:753 xrep_findroot_block() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_bmap.c:1022 xfs_bmap_add_attrfork() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_bmap.c:5750 xfs_bmap_collapse_extents() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_bmap.c:5868 xfs_bmap_insert_extents() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_refcount.c:681 xfs_refcount_find_left_extents() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_refcount.c:774 xfs_refcount_find_right_extents() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_refcount.c:1511 xfs_refcount_find_shared() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_attr.c:537 xfs_attr_rmtval_alloc() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_rmap.c:623 xfs_rmap_unmap() warn: NEW missing error code 'error' fs/xfs/libxfs/xfs_alloc.c:1573 xfs_alloc_ag_vextent_near() warn: NEW missing error code 'error' fs/gfs2/xattr.c:547 gfs2_xattr_acl_get() warn: NEW missing error code 'error' fs/gfs2/xattr.c:1314 ea_dealloc_indirect() warn: NEW missing error code 'error' fs/gfs2/super.c:294 gfs2_statfs_sync() warn: NEW missing error code 'error' fs/ecryptfs/keystore.c:677 ecryptfs_write_tag_70_packet() warn: NEW missing error code 'rc' fs/ecryptfs/inode.c:767 truncate_upper() warn: NEW missing error code 'rc' fs/jfs/jfs_xtree.c:173 xtLookup() warn: NEW missing error code 'rc' fs/jfs/jfs_xtree.c:1391 xtExtend() warn: NEW missing error code 'rc' fs/jfs/jfs_xtree.c:1563 xtUpdate() warn: NEW missing error code 'rc' fs/ext4/mballoc.c:2619 ext4_mb_regular_allocator() warn: NEW missing error code 'err' fs/ext4/xattr.c:2739 ext4_expand_extra_isize_ea() warn: NEW missing error code 'error' fs/ext4/fast_commit.c:1646 ext4_fc_replay_create() warn: NEW missing error code 'ret' fs/ext4/inline.c:1291 ext4_try_add_inline_entry() warn: NEW missing error code 'ret' fs/ext4/inline.c:1372 ext4_inlinedir_to_tree() warn: NEW missing error code 'ret' fs/ext4/inline.c:1486 ext4_read_inline_dir() warn: NEW missing error code 'ret' fs/ext4/move_extent.c:658 ext4_move_extents() warn: NEW missing error code 'ret' fs/ext4/extents.c:5523 ext4_insert_range() warn: NEW missing error code 'ret' fs/ext4/super.c:6858 ext4_quota_on() warn: NEW missing error code 'err' fs/hfs/dir.c:73 hfs_readdir() warn: NEW missing error code 'err' fs/hfs/catalog.c:357 hfs_cat_move() warn: NEW missing error code 'err' fs/exfat/dir.c:251 exfat_iterate() warn: NEW missing error code 'err' fs/debugfs/file.c:349 full_proxy_open() warn: NEW missing error code 'r' fs/udf/dir.c:106 udf_readdir() warn: NEW missing error code 'ret' fs/udf/namei.c:85 udf_fiiter_find_entry() warn: NEW missing error code 'ret' fs/nfs/nfs4proc.c:627 nfs4_async_handle_exception() warn: NEW missing error code 'ret' fs/nfs/read.c:352 nfs_read_folio() warn: NEW missing error code 'ret' fs/nfs/nfs4state.c:1065 nfs4_select_rw_stateid() warn: NEW missing error code 'ret' fs/buffer.c:2621 block_truncate_page() warn: NEW missing error code 'err' fs/hfsplus/xattr.c:327 __hfsplus_setxattr() warn: NEW missing error code 'err' fs/hfsplus/xattr.c:802 hfsplus_removexattr() warn: NEW missing error code 'err' fs/hfsplus/dir.c:160 hfsplus_readdir() warn: NEW missing error code 'err' fs/ceph/inode.c:1475 ceph_fill_trace() warn: NEW missing error code 'err' fs/erofs/zmap.c:754 z_erofs_map_blocks_iter() warn: NEW missing error code 'err' fs/nfsd/export.c:672 svc_export_parse() warn: NEW missing error code 'err' fs/jbd2/journal.c:2529 jbd2_journal_wipe() warn: NEW missing error code 'err' fs/overlayfs/util.c:918 ovl_nlink_start() warn: NEW missing error code 'err' fs/adfs/dir_fplus.c:146 adfs_fplus_read() warn: NEW missing error code 'ret' fs/adfs/dir.c:253 adfs_iterate() warn: NEW missing error code 'ret' fs/nilfs2/btree.c:1459 nilfs_btree_prepare_delete() warn: NEW missing error code 'ret' fs/ubifs/tnc.c:3539 dbg_check_inode_size() warn: NEW missing error code 'err' fs/ubifs/journal.c:1610 ubifs_jnl_truncate() warn: NEW missing error code 'err' fs/ocfs2/xattr.c:2341 ocfs2_lock_xattr_remove_allocators() warn: NEW missing error code 'ret' fs/ocfs2/xattr.c:5844 ocfs2_prepare_refcount_xattr() warn: NEW missing error code 'ret' fs/ocfs2/aops.c:182 ocfs2_get_block() warn: NEW missing error code 'err' fs/ocfs2/file.c:360 ocfs2_cow_file_pos() warn: NEW missing error code 'status' fs/ocfs2/file.c:1454 ocfs2_allocate_unwritten_extents() warn: NEW missing error code 'ret' fs/ocfs2/file.c:1619 ocfs2_zero_partial_clusters() warn: NEW missing error code 'ret' fs/ocfs2/refcounttree.c:373 ocfs2_get_refcount_tree() warn: NEW missing error code 'ret' fs/ocfs2/refcounttree.c:3799 ocfs2_attach_refcount_tree() warn: NEW missing error code 'ret' fs/ocfs2/suballoc.c:1707 ocfs2_search_one_group() warn: NEW missing error code 'ret' fs/ocfs2/move_extents.c:456 ocfs2_find_victim_alloc_group() warn: NEW missing error code 'ret' fs/ocfs2/move_extents.c:848 __ocfs2_move_extents_range() warn: NEW missing error code 'ret' fs/ocfs2/extent_map.c:891 ocfs2_seek_data_hole_offset() warn: NEW missing error code 'ret' fs/ocfs2/slot_map.c:352 ocfs2_map_slot_buffers() warn: NEW missing error code 'status' fs/ocfs2/alloc.c:2458 ocfs2_rotate_tree_right() warn: NEW missing error code 'ret' fs/ocfs2/alloc.c:6979 ocfs2_zero_range_for_truncate() warn: NEW missing error code 'ret' fs/direct-io.c:937 do_direct_IO() warn: NEW missing error code 'ret' fs/fuse/file.c:632 fuse_fsync() warn: NEW missing error code 'err' fs/ksmbd/smbacl.c:1413 set_info_sec() warn: NEW missing error code 'rc' fs/ksmbd/vfs.c:1270 ksmbd_vfs_kern_path() warn: NEW missing error code 'err' fs/ksmbd/vfs.c:1555 ksmbd_vfs_get_sd_xattr() warn: NEW missing error code 'rc' fs/f2fs/xattr.c:679 __f2fs_setxattr() warn: NEW missing error code 'error' fs/f2fs/segment.c:3075 f2fs_trim_fs() warn: NEW missing error code 'err' fs/f2fs/inline.c:600 f2fs_try_convert_inline_dir() warn: NEW missing error code 'err' fs/f2fs/checkpoint.c:1665 f2fs_write_checkpoint() warn: NEW missing error code 'err' fs/f2fs/file.c:299 f2fs_do_sync_file() warn: NEW missing error code 'ret' fs/f2fs/file.c:2074 f2fs_ioc_start_atomic_write() warn: NEW missing error code 'ret' fs/f2fs/file.c:2366 f2fs_ioc_get_encryption_pwsalt() warn: NEW missing error code 'err' fs/f2fs/file.c:2611 f2fs_defragment_range() warn: NEW missing error code 'err' fs/f2fs/file.c:3181 f2fs_ioc_set_pin_file() warn: NEW missing error code 'ret' fs/f2fs/file.c:4053 f2fs_ioc_decompress_file() warn: NEW missing error code 'ret' fs/f2fs/recovery.c:199 recover_dentry() warn: NEW missing error code 'err' fs/f2fs/gc.c:1852 f2fs_gc() warn: NEW missing error code 'ret' fs/f2fs/super.c:2729 f2fs_quota_sync_file() warn: NEW missing error code 'ret' fs/f2fs/data.c:3074 f2fs_write_cache_pages() warn: NEW missing error code 'ret' fs/cifs/inode.c:2388 cifs_revalidate_mapping() warn: NEW missing error code 'rc' fs/cifs/readdir.c:1177 cifs_readdir() warn: NEW missing error code 'rc' fs/cifs/file.c:190 cifs_posix_open() warn: NEW missing error code 'rc' fs/cifs/smb2pdu.c:289 smb2_reconnect() warn: NEW missing error code 'rc' fs/cifs/smb2pdu.c:3777 SMB2_change_notify() warn: NEW missing error code 'rc' fs/cifs/cifssmb.c:1001 CIFSPOSIXCreate() warn: NEW missing error code 'rc' arch/x86/kvm/mmu/mmu.c:3772 mmu_alloc_shadow_roots() warn: NEW missing error code 'r' arch/x86/kernel/ksysfs.c:231 setup_data_data_read() warn: NEW missing error code 'ret' kernel/trace/trace_events_hist.c:4425 create_val_fields() warn: NEW missing error code 'ret' kernel/trace/trace.c:2176 register_tracer() warn: NEW missing error code 'ret' kernel/trace/trace.c:6297 __tracing_resize_ring_buffer() warn: NEW missing error code 'ret' kernel/events/core.c:6482 perf_mmap() warn: NEW missing error code 'ret' kernel/power/suspend.c:424 suspend_enter() warn: NEW missing error code 'error' kernel/power/suspend.c:587 enter_state() warn: NEW missing error code 'error' kernel/power/hibernate.c:321 create_image() warn: NEW missing error code 'error' kernel/watch_queue.c:278 watch_queue_set_size() warn: NEW missing error code 'ret' kernel/sched/core.c:1246 walk_tg_tree_from() warn: NEW missing error code 'ret' kernel/sched/core.c:1796 sysctl_sched_uclamp_handler() warn: NEW missing error code 'result' kernel/resource.c:671 reallocate_resource() warn: NEW missing error code 'err' kernel/cpu.c:1188 _cpu_down() warn: NEW missing error code 'ret' kernel/bpf/bpf_struct_ops.c:415 bpf_struct_ops_map_update_elem() warn: NEW missing error code 'err' ipc/shm.c:1211 shmctl_do_lock() warn: NEW missing error code 'err' sound/usb/pcm.c:530 snd_usb_hw_params() warn: NEW missing error code 'ret' sound/virtio/virtio_ctl_msg.c:177 virtsnd_ctl_msg_send() warn: NEW missing error code 'rc' sound/soc/sof/topology.c:1720 sof_dai_load() warn: NEW missing error code 'ret' sound/soc/codecs/adau1761.c:604 adau1761_compatibility_probe() warn: NEW missing error code 'ret' sound/soc/soc-pcm.c:2893 soc_new_pcm() warn: NEW missing error code 'ret' sound/soc/intel/catpt/loader.c:600 catpt_load_images() warn: NEW missing error code 'ret' sound/soc/atmel/mchp-spdifrx.c:870 mchp_spdifrx_rate_get() warn: NEW missing error code 'ret' net/dccp/feat.c:1496 dccp_feat_init() warn: NEW missing error code 'rc' net/core/rtnetlink.c:5065 rtnl_bridge_notify() warn: NEW missing error code 'err' net/core/sock_map.c:1518 sock_map_bpf_prog_query() warn: NEW missing error code 'ret' net/sctp/socket.c:8945 sctp_wait_for_packet() warn: NEW missing error code 'error' net/batman-adv/multicast.c:1502 batadv_mcast_forw_send() warn: NEW missing error code 'ret' net/mac80211/cfg.c:3865 __ieee80211_channel_switch() warn: NEW missing error code 'err' net/unix/af_unix.c:1139 unix_autobind() warn: NEW missing error code 'err' net/bridge/br_fdb.c:953 br_fdb_dump() warn: NEW missing error code 'err' net/ipv6/addrconf.c:6463 addrconf_sysctl_stable_secret() warn: NEW missing error code 'err' net/ipv4/nexthop.c:2530 nh_create_ipv4() warn: NEW missing error code 'err' net/ipv4/tcp_bpf.c:201 tcp_bpf_recvmsg_parser() warn: NEW missing error code 'copied' mm/damon/lru_sort.c:254 damon_lru_sort_enabled_store() warn: NEW missing error code 'err' mm/damon/reclaim.c:219 damon_reclaim_enabled_store() warn: NEW missing error code 'err' mm/migrate.c:1294 migrate_folio_move() warn: NEW missing error code 'rc' mm/compaction.c:916 isolate_migratepages_block() warn: NEW missing error code 'ret'