All pastes #3830365 Raw Edit

patch for all clang -Wunused fun

public unlisted diff v1 · immutable
#3830365 ·published 2017-06-07 14:44 UTC
rendered paste body
kernel/cpu.c:565:20: warning: unused function 'check_for_tasks' [-Wunused-function]drivers/bus/omap_l3_smx.c:56:24: warning: unused function 'omap3_l3_decode_cmd' [-Wunused-function]drivers/bus/omap_l3_smx.c:66:24: warning: unused function 'omap3_l3_decode_req_info' [-Wunused-function]arch/arm/mm/cache-feroceon-l2.c:68:20: warning: unused function 'l2_clean_pa' [-Wunused-function]arch/arm/mm/cache-feroceon-l2.c:99:20: warning: unused function 'l2_inv_pa' [-Wunused-function]drivers/video/console/fbcon.c:121:20: warning: unused function 'fbcon_map_override' [-Wunused-function]drivers/phy/rockchip/phy-rockchip-pcie.c:102:19: warning: unused function 'phy_rd_cfg' [-Wunused-function]drivers/gpio/gpio-pxa.c:177:19: warning: unused function 'gpio_is_pxa_type' [-Wunused-function]drivers/pwm/pwm-mediatek.c:64:19: warning: unused function 'mtk_pwm_readl' [-Wunused-function]block/blk-mq.c:1380:20: warning: unused function 'hctx_allow_merges' [-Wunused-function]arch/arm/mach-omap2/cm33xx.c:63:19: warning: unused function 'am33xx_cm_rmw_reg_bits' [-Wunused-function]drivers/video/fbdev/aty/aty128fb.c:547:18: warning: unused function '_aty_ld_8' [-Wunused-function]crypto/rng.c:36:34: warning: unused function '__crypto_rng_cast' [-Wunused-function]block/partitions/mac.c:22:20: warning: unused function 'mac_fix_string' [-Wunused-function]drivers/pci/hotplug/shpchp_hpc.c:191:20: warning: unused function 'shpc_writeb' [-Wunused-function]drivers/dma/qcom/hidma.c:93:20: warning: unused function 'to_hidma_desc' [-Wunused-function]kernel/cgroup/cpuset.c:159:20: warning: unused function 'task_has_mempolicy' [-Wunused-function]drivers/dma/pl330.c:541:20: warning: unused function '_queue_empty' [-Wunused-function]drivers/dma/pl330.c:567:19: warning: unused function '_emit_ADDH' [-Wunused-function]drivers/dma/pl330.c:741:19: warning: unused function '_emit_NOP' [-Wunused-function]drivers/dma/pl330.c:820:19: warning: unused function '_emit_STZ' [-Wunused-function]drivers/dma/pl330.c:832:19: warning: unused function '_emit_WFE' [-Wunused-function]block/cfq-iosched.c:451:1: warning: unused function 'cfq_clear_cfqq_sync' [-Wunused-function]block/cfq-iosched.c:981:19: warning: unused function 'min_vdisktime' [-Wunused-function]drivers/pinctrl/pinctrl-st.c:375:19: warning: unused function 'st_gpio_bank' [-Wunused-function]drivers/dma/edma.c:344:20: warning: unused function 'edma_or_array' [-Wunused-function]drivers/dma/edma.c:362:28: warning: unused function 'edma_shadow0_read' [-Wunused-function]drivers/dma/edma.c:385:28: warning: unused function 'edma_param_read' [-Wunused-function]drivers/dma/edma.c:391:20: warning: unused function 'edma_param_write' [-Wunused-function]drivers/dma/edma.c:403:20: warning: unused function 'edma_param_and' [-Wunused-function]drivers/dma/edma.c:409:20: warning: unused function 'edma_param_or' [-Wunused-function]drivers/dma/edma.c:731:31: warning: unused function 'to_edma_cc' [-Wunused-function]kernel/locking/osq_lock.c:24:19: warning: unused function 'node_cpu' [-Wunused-function]kernel/locking/rtmutex.c:62:20: warning: unused function 'clear_rt_mutex_waiters' [-Wunused-function]drivers/tty/serial/samsung.c:1133:19: warning: unused function 's3c24xx_serial_getsource' [-Wunused-function]drivers/dma/at_xdmac.c:299:19: warning: unused function 'at_xdmac_csize' [-Wunused-function]drivers/tty/isicom.c:377:19: warning: unused function '__isicom_paranoia_check' [-Wunused-function]drivers/tty/serial/imx.c:300:19: warning: unused function 'is_imx21_uart' [-Wunused-function]drivers/tty/serial/imx.c:305:19: warning: unused function 'is_imx53_uart' [-Wunused-function]drivers/tty/serial/imx.c:310:19: warning: unused function 'is_imx6q_uart' [-Wunused-function]kernel/trace/ring_buffer.c:1804:1: warning: unused function '__rb_data_page_index' [-Wunused-function]kernel/time/timer.c:699:20: warning: unused function 'debug_timer_free' [-Wunused-function]mm/slub.c:1316:20: warning: unused function 'kmalloc_large_node_hook' [-Wunused-function]mm/slub.c:1945:28: warning: unused function 'tid_to_cpu' [-Wunused-function]mm/slub.c:1950:29: warning: unused function 'tid_to_event' [-Wunused-function]kernel/time/hrtimer.c:411:20: warning: unused function 'debug_hrtimer_free' [-Wunused-function]drivers/dma/pch_dma.c:166:30: warning: unused function 'chan2parent' [-Wunused-function]mm/memcontrol.c:4085:20: warning: unused function 'mem_cgroup_id_get' [-Wunused-function]kernel/trace/trace_irqsoff.c:63:19: warning: unused function 'irqsoff_display_graph' [-Wunused-function]kernel/trace/trace_sched_wakeup.c:44:19: warning: unused function 'wakeup_display_graph' [-Wunused-function]drivers/video/fbdev/neofb.c:145:20: warning: unused function 'write_le32' [-Wunused-function]drivers/clk/ti/clk-dra7-atl.c:75:19: warning: unused function 'atl_read' [-Wunused-function]drivers/video/fbdev/tridentfb.c:1129:20: warning: unused function 'shadowmode_off' [-Wunused-function]drivers/video/fbdev/arkfb.c:321:18: warning: unused function 'dac_read_reg' [-Wunused-function]drivers/video/fbdev/arkfb.c:328:20: warning: unused function 'dac_read_regs' [-Wunused-function]kernel/sched/topology.c:27:20: warning: unused function 'sched_debug' [-Wunused-function]mm/zsmalloc.c:483:20: warning: unused function 'set_zspage_inuse' [-Wunused-function]drivers/misc/hpilo.c:392:19: warning: unused function 'is_device_reset' [-Wunused-function]drivers/spi/spi-bcm63xx.c:168:19: warning: unused function 'bcm_spi_readw' [-Wunused-function]drivers/nvme/target/fc.c:150:1: warning: unused function 'nvmet_fc_iodnum' [-Wunused-function]drivers/nvme/target/fc.c:156:1: warning: unused function 'nvmet_fc_fodnum' [-Wunused-function]drivers/net/caif/caif_serial.c:137:20: warning: unused function 'debugfs_tx' [-Wunused-function]drivers/mfd/max8925-core.c:475:40: warning: unused function 'irq_to_max8925' [-Wunused-function]drivers/net/can/c_can/c_can.c:355:20: warning: unused function 'c_can_activate_all_lower_rx_msg_obj' [-Wunused-function]fs/dlm/lock.c:240:19: warning: unused function 'is_granted' [-Wunused-function]drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c:27:18: warning: unused function 'hdmi_read' [-Wunused-function]drivers/mfd/omap-usb-tll.c:139:18: warning: unused function 'usbtll_readb' [-Wunused-function]drivers/net/can/spi/mcp251x.c:283:1: warning: unused function 'mcp251x_is_2515' [-Wunused-function]drivers/rtc/rtc-cmos.c:132:19: warning: unused function 'hpet_rtc_dropped_irq' [-Wunused-function]drivers/rtc/rtc-ds1511.c:111:1: warning: unused function 'rtc_write_alarm' [-Wunused-function]drivers/net/can/at91_can.c:182:1: warning: unused function 'at91_is_sam9X5' [-Wunused-function]drivers/net/ethernet/broadcom/b44.c:201:20: warning: unused function '__b44_cam_read' [-Wunused-function]drivers/net/ethernet/atheros/atl1c/atl1c_main.c:197:20: warning: unused function 'atl1c_irq_reset' [-Wunused-function]drivers/media/dvb-frontends/stb6100.c:125:20: warning: unused function 'stb6100_normalise_regs' [-Wunused-function]drivers/net/wireless/intel/ipw2x00/ipw2100.c:436:20: warning: unused function 'write_nic_auto_inc_address' [-Wunused-function]drivers/net/wireless/intel/ipw2x00/ipw2100.c:442:20: warning: unused function 'write_nic_dword_auto_inc' [-Wunused-function]drivers/net/wireless/intel/ipw2x00/ipw2200.c:395:19: warning: unused function '_ipw_read16' [-Wunused-function]drivers/net/wireless/intel/ipw2x00/ipw2200.c:3033:19: warning: unused function 'ipw_alive' [-Wunused-function]drivers/md/raid0.c:448:19: warning: unused function 'is_io_in_chunk_boundary' [-Wunused-function]drivers/watchdog/s3c2410_wdt.c:212:35: warning: unused function 'freq_to_wdt' [-Wunused-function]drivers/watchdog/s3c2410_wdt.c:308:19: warning: unused function 's3c2410wdt_is_running' [-Wunused-function]drivers/net/ethernet/broadcom/bcmsysport.c:50:1: warning: unused function 'txchk_readl' [-Wunused-function]drivers/net/ethernet/broadcom/bcmsysport.c:50:1: warning: unused function 'txchk_writel' [-Wunused-function]drivers/net/ethernet/broadcom/bcmsysport.c:52:1: warning: unused function 'tbuf_readl' [-Wunused-function]drivers/net/ethernet/broadcom/bcmsysport.c:52:1: warning: unused function 'tbuf_writel' [-Wunused-function]drivers/net/usb/plusb.c:79:1: warning: unused function 'pl_clear_QuickLink_features' [-Wunused-function]drivers/thermal/ti-soc-thermal/ti-thermal-common.c:123:19: warning: unused function 'ti_thermal_get_temp' [-Wunused-function]drivers/net/usb/sierra_net.c:372:19: warning: unused function 'sierra_net_is_valid_addrlen' [-Wunused-function]drivers/usb/host/ehci-omap.c:79:19: warning: unused function 'ehci_read' [-Wunused-function]drivers/net/ethernet/broadcom/genet/bcmgenet.c:111:26: warning: unused function 'dmadesc_get_addr' [-Wunused-function]drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c:333:20: warning: unused function 'bnx2x_vf_vlan_credit' [-Wunused-function]drivers/isdn/hardware/mISDN/hfcmulti.c:681:1: warning: unused function 'vpm_read_address' [-Wunused-function]drivers/net/wireless/broadcom/b43legacy/radio.c:1730:5: warning: unused function 'freq_r3A_value' [-Wunused-function]drivers/net/wireless/broadcom/b43legacy/dma.c:143:19: warning: unused function 'prev_slot' [-Wunused-function]drivers/net/wireless/broadcom/b43legacy/dma.c:230:19: warning: unused function 'txring_to_priority' [-Wunused-function]drivers/net/ethernet/chelsio/cxgb3/sge.c:167:32: warning: unused function 'fl_to_qset' [-Wunused-function]drivers/net/ethernet/chelsio/cxgb4/sge.c:829:28: warning: unused function 'calc_tx_descs' [-Wunused-function]drivers/net/wireless/ath/ath10k/ce.c:236:20: warning: unused function 'ath10k_ce_error_intr_enable' [-Wunused-function]drivers/usb/host/sl811-hcd.c:587:18: warning: unused function 'checkdone' [-Wunused-function]drivers/gpu/drm/meson/meson_dw_hdmi.c:244:20: warning: unused function 'dw_hdmi_dwc_write_bits' [-Wunused-function]drivers/media/i2c/cx25840/cx25840-ir.c:148:19: warning: unused function 'ns_to_clock_divider' [-Wunused-function]drivers/media/i2c/cx25840/cx25840-ir.c:154:28: warning: unused function 'clock_divider_to_ns' [-Wunused-function]drivers/media/i2c/cx25840/cx25840-ir.c:172:19: warning: unused function 'freq_to_clock_divider' [-Wunused-function]drivers/usb/host/u132-hcd.c:224:28: warning: unused function 'udev_to_u132' [-Wunused-function]drivers/media/pci/cx25821/cx25821-core.c:350:19: warning: unused function 'i2c_slave_did_ack' [-Wunused-function]drivers/media/pci/cx23885/cx23888-ir.c:187:19: warning: unused function 'ns_to_clock_divider' [-Wunused-function]drivers/media/pci/cx23885/cx23888-ir.c:193:28: warning: unused function 'clock_divider_to_ns' [-Wunused-function]drivers/media/pci/cx23885/cx23888-ir.c:211:19: warning: unused function 'freq_to_clock_divider' [-Wunused-function]drivers/media/pci/cx18/cx18-alsa-main.c:66:23: warning: unused function 'p_to_snd_cx18_card' [-Wunused-function]drivers/media/platform/omap3isp/isp.c:488:20: warning: unused function 'isp_isr_dbg' [-Wunused-function]drivers/media/i2c/adv7604.c:399:19: warning: unused function 'avlink_read' [-Wunused-function]drivers/media/i2c/adv7604.c:406:19: warning: unused function 'avlink_write' [-Wunused-function]drivers/media/i2c/adv7604.c:440:19: warning: unused function 'infoframe_write' [-Wunused-function]drivers/media/i2c/adv7604.c:447:19: warning: unused function 'afe_read' [-Wunused-function]drivers/media/i2c/adv7604.c:480:19: warning: unused function 'edid_read' [-Wunused-function]drivers/media/i2c/adv7604.c:487:19: warning: unused function 'edid_write' [-Wunused-function]drivers/media/i2c/adv7604.c:564:19: warning: unused function 'test_write' [-Wunused-function]drivers/media/i2c/adv7604.c:595:19: warning: unused function 'vdp_read' [-Wunused-function]drivers/media/i2c/adv7604.c:602:19: warning: unused function 'vdp_write' [-Wunused-function]drivers/media/i2c/adv7842.c:270:24: warning: unused function 'hblanking' [-Wunused-function]drivers/media/i2c/adv7842.c:280:24: warning: unused function 'vblanking' [-Wunused-function]drivers/media/radio/radio-si476x.c:320:1: warning: unused function 'v4l2_dev_to_radio' [-Wunused-function]drivers/media/i2c/adv7511.c:308:20: warning: unused function 'adv7511_pktmem_wr_and_or' [-Wunused-function]drivers/media/pci/ivtv/ivtv-alsa-main.c:63:23: warning: unused function 'p_to_snd_ivtv_card' [-Wunused-function]fs/lockd/xdr.c:108:1: warning: unused function 'nlm_encode_oh' [-Wunused-function]drivers/usb/musb/musb_host.c:1561:19: warning: unused function 'musb_rx_dma_iso_cppi41' [-Wunused-function]drivers/gpu/drm/msm/mdp/mdp5/mdp5_mdss.c:40:20: warning: unused function 'mdss_write' [-Wunused-function]drivers/mmc/host/sdricoh_cs.c:118:28: warning: unused function 'sdricoh_readw' [-Wunused-function]drivers/net/wireless/ath/wil6210/txrx.c:64:19: warning: unused function 'wil_vring_is_full' [-Wunused-function]drivers/media/dvb-frontends/drxk_hard.c:171:19: warning: unused function 'MulDiv32' [-Wunused-function]drivers/net/ethernet/marvell/mv643xx_eth.c:683:22: warning: unused function 'sum16_as_be' [-Wunused-function]drivers/mmc/host/sdhci-esdhc-imx.c:241:19: warning: unused function 'is_imx6q_usdhc' [-Wunused-function]drivers/net/ethernet/marvell/mvpp2.c:3913:19: warning: unused function 'mvpp2_bm_cookie_pool_set' [-Wunused-function]drivers/media/pci/saa7134/saa7134-go7007.c:67:38: warning: unused function 'to_state' [-Wunused-function]fs/nfsd/nfs4state.c:5360:1: warning: unused function 'end_offset' [-Wunused-function]drivers/crypto/chelsio/chcr_algo.c:453:19: warning: unused function 'get_cryptoalg_subtype' [-Wunused-function]drivers/net/ethernet/intel/i40evf/i40e_adminq.c:37:20: warning: unused function 'i40e_is_nvm_update_op' [-Wunused-function]drivers/usb/serial/quatech2.c:183:19: warning: unused function 'qt2_setdevice' [-Wunused-function]drivers/media/usb/au0828/au0828-i2c.c:36:19: warning: unused function 'i2c_slave_did_write_ack' [-Wunused-function]drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c:403:19: warning: unused function 'vop_interlaced' [-Wunused-function]drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c:408:18: warning: unused function 'vop_channel' [-Wunused-function]drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c:423:18: warning: unused function 'vop_hsize' [-Wunused-function]drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c:428:18: warning: unused function 'vop_vsize' [-Wunused-function]drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c:448:19: warning: unused function 'vop_sec' [-Wunused-function]drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c:453:19: warning: unused function 'vop_usec' [-Wunused-function]drivers/net/wireless/ti/wlcore/debugfs.c:132:20: warning: unused function 'no_write_handler' [-Wunused-function]drivers/media/rc/sir_ir.c:67:28: warning: unused function 'sinp' [-Wunused-function]drivers/media/rc/sir_ir.c:72:20: warning: unused function 'soutp' [-Wunused-function]drivers/media/media-entity.c:25:27: warning: unused function 'gobj_type' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:53:1: warning: unused function 'mlxsw_afa_set_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:58:1: warning: unused function 'mlxsw_afa_set_next_action_set_ptr_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:65:1: warning: unused function 'mlxsw_afa_set_goto_g_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:77:1: warning: unused function 'mlxsw_afa_set_goto_binding_cmd_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:83:1: warning: unused function 'mlxsw_afa_set_goto_next_binding_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:88:1: warning: unused function 'mlxsw_afa_all_action_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:598:1: warning: unused function 'mlxsw_afa_vlan_vlan_tag_cmd_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:601:1: warning: unused function 'mlxsw_afa_vlan_vid_cmd_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:604:1: warning: unused function 'mlxsw_afa_vlan_vid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:607:1: warning: unused function 'mlxsw_afa_vlan_ethertype_cmd_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:612:1: warning: unused function 'mlxsw_afa_vlan_ethertype_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:615:1: warning: unused function 'mlxsw_afa_vlan_pcp_cmd_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:618:1: warning: unused function 'mlxsw_afa_vlan_pcp_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:672:1: warning: unused function 'mlxsw_afa_trapdisc_forward_action_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:711:1: warning: unused function 'mlxsw_afa_forward_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:717:1: warning: unused function 'mlxsw_afa_forward_pbs_ptr_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:722:1: warning: unused function 'mlxsw_afa_forward_in_port_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:785:1: warning: unused function 'mlxsw_afa_polcnt_counter_set_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:790:1: warning: unused function 'mlxsw_afa_polcnt_counter_index_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:832:1: warning: unused function 'mlxsw_afa_virfwd_fid_cmd_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c:837:1: warning: unused function 'mlxsw_afa_virfwd_fid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:175:1: warning: unused function 'mlxsw_emad_eth_hdr_dmac_memcpy_from' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:175:1: warning: unused function 'mlxsw_emad_eth_hdr_dmac_data' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:181:1: warning: unused function 'mlxsw_emad_eth_hdr_smac_memcpy_from' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:181:1: warning: unused function 'mlxsw_emad_eth_hdr_smac_data' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:187:1: warning: unused function 'mlxsw_emad_eth_hdr_ethertype_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:193:1: warning: unused function 'mlxsw_emad_eth_hdr_mlx_proto_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:199:1: warning: unused function 'mlxsw_emad_eth_hdr_ver_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:205:1: warning: unused function 'mlxsw_emad_op_tlv_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:211:1: warning: unused function 'mlxsw_emad_op_tlv_len_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:219:1: warning: unused function 'mlxsw_emad_op_tlv_dr_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:255:1: warning: unused function 'mlxsw_emad_op_tlv_method_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:260:1: warning: unused function 'mlxsw_emad_op_tlv_class_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:271:1: warning: unused function 'mlxsw_emad_reg_tlv_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:282:1: warning: unused function 'mlxsw_emad_end_tlv_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/core.c:288:1: warning: unused function 'mlxsw_emad_end_tlv_len_get' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:1554:20: warning: unused function 'hw_ena_intr_bit' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2128:19: warning: unused function 'port_chk_broad_storm' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2286:20: warning: unused function 'port_cfg_force_flow_ctrl' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2292:19: warning: unused function 'port_chk_back_pressure' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2298:19: warning: unused function 'port_chk_force_flow_ctrl' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2306:20: warning: unused function 'port_cfg_rx' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2312:20: warning: unused function 'port_cfg_tx' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2323:20: warning: unused function 'sw_flush_dyn_mac_table' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2334:20: warning: unused function 'port_cfg_ins_tag' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2340:20: warning: unused function 'port_cfg_rmv_tag' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2346:19: warning: unused function 'port_chk_ins_tag' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2352:19: warning: unused function 'port_chk_rmv_tag' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2358:20: warning: unused function 'port_cfg_dis_non_vid' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2364:20: warning: unused function 'port_cfg_in_filter' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2370:19: warning: unused function 'port_chk_dis_non_vid' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2376:19: warning: unused function 'port_chk_in_filter' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2419:20: warning: unused function 'sw_cfg_unk_def_deliver' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2425:19: warning: unused function 'sw_cfg_chk_unk_def_deliver' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2431:20: warning: unused function 'sw_cfg_unk_def_port' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2436:19: warning: unused function 'sw_chk_unk_def_port' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2467:19: warning: unused function 'port_chk_diffserv' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2473:19: warning: unused function 'port_chk_802_1p' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2479:19: warning: unused function 'port_chk_replace_vid' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2485:19: warning: unused function 'port_chk_prio' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2697:20: warning: unused function 'sw_get_addr' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2914:20: warning: unused function 'hw_r_phy_link_stat' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2919:20: warning: unused function 'hw_r_phy_auto_neg' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2924:20: warning: unused function 'hw_w_phy_auto_neg' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2929:20: warning: unused function 'hw_r_phy_rem_cap' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2934:20: warning: unused function 'hw_r_phy_crossover' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2939:20: warning: unused function 'hw_w_phy_crossover' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2944:20: warning: unused function 'hw_r_phy_polarity' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2949:20: warning: unused function 'hw_w_phy_polarity' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2954:20: warning: unused function 'hw_r_phy_link_md' [-Wunused-function]drivers/net/ethernet/micrel/ksz884x.c:2959:20: warning: unused function 'hw_w_phy_link_md' [-Wunused-function]drivers/media/usb/usbvision/usbvision-video.c:159:37: warning: unused function 'cd_to_usbvision' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:92:1: warning: unused function 'mlxsw_tx_hdr_version_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:99:1: warning: unused function 'mlxsw_tx_hdr_ctl_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:104:1: warning: unused function 'mlxsw_tx_hdr_proto_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:111:1: warning: unused function 'mlxsw_tx_hdr_etclass_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:116:1: warning: unused function 'mlxsw_tx_hdr_swid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:126:1: warning: unused function 'mlxsw_tx_hdr_port_mid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:131:1: warning: unused function 'mlxsw_tx_hdr_ctclass3_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:137:1: warning: unused function 'mlxsw_tx_hdr_rdq_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:142:1: warning: unused function 'mlxsw_tx_hdr_cpu_sig_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:147:1: warning: unused function 'mlxsw_tx_hdr_sig_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:152:1: warning: unused function 'mlxsw_tx_hdr_stclass_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:157:1: warning: unused function 'mlxsw_tx_hdr_emad_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchx2.c:163:1: warning: unused function 'mlxsw_tx_hdr_type_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchib.c:78:1: warning: unused function 'mlxsw_tx_v1_hdr_version_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchib.c:85:1: warning: unused function 'mlxsw_tx_v1_hdr_ctl_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchib.c:90:1: warning: unused function 'mlxsw_tx_v1_hdr_proto_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchib.c:95:1: warning: unused function 'mlxsw_tx_v1_hdr_swid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchib.c:101:1: warning: unused function 'mlxsw_tx_v1_hdr_control_tclass_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchib.c:111:1: warning: unused function 'mlxsw_tx_v1_hdr_port_mid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/switchib.c:117:1: warning: unused function 'mlxsw_tx_v1_hdr_type_get' [-Wunused-function]drivers/mailbox/pl320-ipc.c:59:20: warning: unused function 'set_destination' [-Wunused-function]drivers/mailbox/pl320-ipc.c:65:20: warning: unused function 'clear_destination' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:95:1: warning: unused function 'mlxsw_tx_hdr_version_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:102:1: warning: unused function 'mlxsw_tx_hdr_ctl_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:107:1: warning: unused function 'mlxsw_tx_hdr_proto_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:112:1: warning: unused function 'mlxsw_tx_hdr_rx_is_router_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:112:1: warning: unused function 'mlxsw_tx_hdr_rx_is_router_set' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:118:1: warning: unused function 'mlxsw_tx_hdr_fid_valid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:118:1: warning: unused function 'mlxsw_tx_hdr_fid_valid_set' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:123:1: warning: unused function 'mlxsw_tx_hdr_swid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:129:1: warning: unused function 'mlxsw_tx_hdr_control_tclass_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:134:1: warning: unused function 'mlxsw_tx_hdr_etclass_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:134:1: warning: unused function 'mlxsw_tx_hdr_etclass_set' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:144:1: warning: unused function 'mlxsw_tx_hdr_port_mid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:151:1: warning: unused function 'mlxsw_tx_hdr_fid_get' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:151:1: warning: unused function 'mlxsw_tx_hdr_fid_set' [-Wunused-function]drivers/net/ethernet/mellanox/mlxsw/spectrum.c:157:1: warning: unused function 'mlxsw_tx_hdr_type_get' [-Wunused-function]drivers/net/ethernet/microchip/encx24j600-regmap.c:23:20: warning: unused function 'is_bits_set' [-Wunused-function]drivers/vhost/vhost.c:52:1: warning: unused function 'vhost_umem_interval_tree_iter_next' [-Wunused-function]drivers/net/ethernet/myricom/myri10ge/myri10ge.c:1178:20: warning: unused function 'myri10ge_vlan_ip_csum' [-Wunused-function]fs/ocfs2/suballoc.c:2630:20: warning: unused function 'ocfs2_debug_bg' [-Wunused-function]fs/ocfs2/suballoc.c:2647:20: warning: unused function 'ocfs2_debug_suballoc_inode' [-Wunused-function]drivers/hwtracing/stm/policy.c:58:21: warning: unused function 'stp_policy_node_name' [-Wunused-function]drivers/gpu/drm/sun4i/sun4i_tv.c:281:1: warning: unused function 'drm_connector_to_sun4i_tv' [-Wunused-function]drivers/gpu/drm/vc4/vc4_vec.c:209:1: warning: unused function 'to_vc4_vec_connector' [-Wunused-function]drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c:64:37: warning: unused function 'mlx5e_am_get_profile' [-Wunused-function]fs/ocfs2/dlm/dlmrecovery.c:144:20: warning: unused function 'dlm_reset_recovery' [-Wunused-function]drivers/staging/comedi/drivers/cb_pcidas64.c:241:19: warning: unused function 'analog_trig_low_threshold_bits' [-Wunused-function]drivers/staging/comedi/drivers/cb_pcidas64.c:392:28: warning: unused function 'dma_chain_flag_bits' [-Wunused-function]drivers/net/ethernet/sun/cassini.c:252:20: warning: unused function 'cas_lock_all' [-Wunused-function]drivers/net/ethernet/sun/cassini.c:281:20: warning: unused function 'cas_unlock_all' [-Wunused-function]drivers/net/ethernet/tehuti/tehuti.c:1372:19: warning: unused function 'bdx_tx_db_size' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:114:1: warning: unused function 'cpsw_ale_get_mcast_state' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:116:1: warning: unused function 'cpsw_ale_get_super' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:118:1: warning: unused function 'cpsw_ale_get_port_num' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:119:1: warning: unused function 'cpsw_ale_get_blocked' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:120:1: warning: unused function 'cpsw_ale_get_secure' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:121:1: warning: unused function 'cpsw_ale_get_vlan_untag_force' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:122:1: warning: unused function 'cpsw_ale_get_vlan_reg_mcast' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:124:1: warning: unused function 'cpsw_ale_get_vlan_member_list' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:125:1: warning: unused function 'cpsw_ale_set_mcast' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:127:1: warning: unused function 'cpsw_ale_set_vlan_unreg_mcast_idx' [-Wunused-function]drivers/net/ethernet/ti/cpsw_ale.c:128:1: warning: unused function 'cpsw_ale_set_vlan_reg_mcast_idx' [-Wunused-function]drivers/gpu/drm/drm_mm.c:165:1: warning: unused function 'drm_mm_interval_tree_insert' [-Wunused-function]drivers/gpu/drm/drm_mm.c:165:1: warning: unused function 'drm_mm_interval_tree_iter_next' [-Wunused-function]drivers/hsi/clients/cmt_speech.c:139:20: warning: unused function 'rx_ptr_shift_too_big' [-Wunused-function]drivers/atm/idt77252.c:1790:1: warning: unused function 'idt77252_fbq_level' [-Wunused-function]drivers/scsi/cxgbi/libcxgbi.c:2244:19: warning: unused function 'csk_print_port' [-Wunused-function]drivers/scsi/cxgbi/libcxgbi.c:2255:19: warning: unused function 'csk_print_ip' [-Wunused-function]drivers/staging/lustre/lustre/llite/llite_lib.c:1156:19: warning: unused function 'lli_lsm_md_eq' [-Wunused-function]drivers/mtd/nand/mxc_nand.c:1534:19: warning: unused function 'is_imx51_nfc' [-Wunused-function]drivers/mtd/nand/mxc_nand.c:1539:19: warning: unused function 'is_imx53_nfc' [-Wunused-function]drivers/mtd/nand/vf610_nfc.c:516:19: warning: unused function 'count_written_bits' [-Wunused-function]drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:2088:18: warning: unused function 'ieee80211_SignalStrengthTranslate' [-Wunused-function]drivers/staging/rts5208/xd.c:45:19: warning: unused function 'xd_check_err_code' [-Wunused-function]drivers/pcmcia/yenta_socket.c:145:18: warning: unused function 'exca_readw' [-Wunused-function]drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_request.c:962:33: warning: unused function 'ldlm_imp2pl' [-Wunused-function]drivers/scsi/osd/osd_initiator.c:65:20: warning: unused function 'build_test' [-Wunused-function]drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:139:21: warning: unused function 'dru' [-Wunused-function]drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:144:21: warning: unused function 'ldlm_pool_slv_max' [-Wunused-function]drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:154:21: warning: unused function 'ldlm_pool_slv_min' [-Wunused-function]drivers/staging/lustre/lustre/ptlrpc/../../lustre/ldlm/ldlm_pool.c:179:19: warning: unused function 'ldlm_pool_t2gsp' [-Wunused-function]drivers/staging/lustre/lustre/ptlrpc/pack_generic.c:727:21: warning: unused function '__lustre_swab_buf' [-Wunused-function]drivers/scsi/qla2xxx/qla_nx.c:383:1: warning: unused function 'qla82xx_pci_set_crbwindow' [-Wunused-function]drivers/scsi/qla4xxx/ql4_nx.c:3652:1: warning: unused function 'flash_data_addr' [-Wunused-function]drivers/infiniband/core/cm.c:1400:19: warning: unused function 'cm_is_active_peer' [-Wunused-function]drivers/fpga/xilinx-pr-decoupler.c:40:19: warning: unused function 'xlnx_pr_decouple_read' [-Wunused-function]sound/drivers/portman2x4.c:199:18: warning: unused function 'portman_read_command' [-Wunused-function]sound/drivers/portman2x4.c:209:18: warning: unused function 'portman_read_data' [-Wunused-function]drivers/infiniband/sw/rxe/rxe_net.c:487:19: warning: unused function 'addr_same' [-Wunused-function]drivers/hwmon/nct6683.c:494:19: warning: unused function 'in_to_reg' [-Wunused-function]drivers/hwmon/sis5595.c:172:18: warning: unused function 'DIV_TO_REG' [-Wunused-function]lib/lz4/lz4_compress.c:60:25: warning: unused function 'LZ4_hash5' [-Wunused-function]sound/pci/azt3328.c:382:1: warning: unused function 'snd_azf3328_codec_outl' [-Wunused-function]drivers/hwmon/vt1211.c:211:20: warning: unused function 'superio_outb' [-Wunused-function]lib/zlib_inflate/inffast.c:31:1: warning: unused function 'get_unaligned16' [-Wunused-function]net/bluetooth/6lowpan.c:112:35: warning: unused function 'peer_lookup_ba' [-Wunused-function]net/bluetooth/6lowpan.c:917:20: warning: unused function 'bdaddr_type' [-Wunused-function]sound/soc/tegra/tegra20_das.c:41:19: warning: unused function 'tegra20_das_read' [-Wunused-function]sound/pci/trident/trident_memory.c:124:21: warning: unused function 'offset_ptr' [-Wunused-function]sound/pci/rme9652/hdspm.c:6156:19: warning: unused function 'copy_u32_le' [-Wunused-function]net/ipv6/ila/ila_xlat.c:56:29: warning: unused function '__ila_hash_secret_init' [-Wunused-function]sound/pci/ymfpci/ymfpci_main.c:48:18: warning: unused function 'snd_ymfpci_readb' [-Wunused-function]net/ipv6/ip6_gre.c:642:20: warning: unused function 'ip6gre_tnl_addr_conflict' [-Wunused-function]net/sunrpc/svcauth_unix.c:293:30: warning: unused function 'ip_map_lookup' [-Wunused-function]net/sunrpc/svcauth_unix.c:322:19: warning: unused function 'ip_map_update' [-Wunused-function]net/sched/sch_choke.c:149:20: warning: unused function 'choke_set_classid' [-Wunused-function] arch/arm/mach-omap2/cm33xx.c                       |  13 - arch/arm/mm/cache-feroceon-l2.c                    |  10 - block/blk-mq.c                                     |   6 - block/cfq-iosched.c                                |  33 +-- block/partitions/mac.c                             |   2 +- crypto/rng.c                                       |   5 - drivers/atm/idt77252.c                             |   6 - drivers/bus/omap_l3_smx.c                          |  10 - drivers/clk/ti/clk-dra7-atl.c                      |   5 - drivers/crypto/chelsio/chcr_algo.c                 |   9 - drivers/dma/at_xdmac.c                             |  11 - drivers/dma/edma.c                                 |  48 ---- drivers/dma/pch_dma.c                              |   5 - drivers/dma/pl330.c                                |  67 ----- drivers/dma/qcom/hidma.c                           |   6 - drivers/fpga/xilinx-pr-decoupler.c                 |   6 - drivers/gpio/gpio-pxa.c                            |   5 - .../gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c    |   7 - drivers/gpu/drm/meson/meson_dw_hdmi.c              |  14 - drivers/gpu/drm/msm/mdp/mdp5/mdp5_mdss.c           |   5 - drivers/gpu/drm/sun4i/sun4i_tv.c                   |   7 - drivers/gpu/drm/vc4/vc4_vec.c                      |   6 - drivers/hsi/clients/cmt_speech.c                   |   2 +- drivers/hwmon/nct6683.c                            |  11 - drivers/hwmon/sis5595.c                            |   4 - drivers/hwmon/vt1211.c                             |   6 - drivers/hwtracing/stm/policy.c                     |   5 - drivers/infiniband/core/cm.c                       |   8 - drivers/infiniband/sw/rxe/rxe_net.c                |   5 - drivers/isdn/hardware/mISDN/hfcmulti.c             |  31 --- drivers/mailbox/pl320-ipc.c                        |  12 - drivers/md/raid0.c                                 |  17 -- drivers/media/dvb-frontends/drxk_hard.c            |  10 - drivers/media/dvb-frontends/stb6100.c              |  11 - drivers/media/i2c/adv7511.c                        |  22 -- drivers/media/i2c/adv7604.c                        |  63 ----- drivers/media/i2c/adv7842.c                        |  10 - drivers/media/i2c/cx25840/cx25840-ir.c             |  20 -- drivers/media/media-entity.c                       |  16 -- drivers/media/pci/cx18/cx18-alsa-main.c            |   6 - drivers/media/pci/cx23885/cx23888-ir.c             |  20 -- drivers/media/pci/cx25821/cx25821-core.c           |   7 - drivers/media/pci/ivtv/ivtv-alsa-main.c            |   6 - drivers/media/pci/saa7134/saa7134-go7007.c         |   5 - drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c     |  30 --- drivers/media/platform/omap3isp/isp.c              |   2 +- drivers/media/radio/radio-si476x.c                 |   6 - drivers/media/rc/sir_ir.c                          |  10 - drivers/media/usb/au0828/au0828-i2c.c              |   7 - drivers/media/usb/usbvision/usbvision-video.c      |   6 - drivers/mfd/max8925-core.c                         |   6 - drivers/mfd/omap-usb-tll.c                         |   5 - drivers/misc/hpilo.c                               |   6 - drivers/mmc/host/sdhci-esdhc-imx.c                 |   5 - drivers/mmc/host/sdricoh_cs.c                      |   8 - drivers/mtd/nand/mxc_nand.c                        |  10 - drivers/mtd/nand/vf610_nfc.c                       |  15 -- drivers/net/caif/caif_serial.c                     |  13 +- drivers/net/can/at91_can.c                         |   1 - drivers/net/can/c_can/c_can.c                      |   9 - drivers/net/can/spi/mcp251x.c                      |   1 - drivers/net/ethernet/atheros/atl1c/atl1c_main.c    |  10 - drivers/net/ethernet/broadcom/b44.c                |  22 -- drivers/net/ethernet/broadcom/bcmsysport.c         |   8 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c  |  21 -- drivers/net/ethernet/broadcom/genet/bcmgenet.c     |  18 -- drivers/net/ethernet/chelsio/cxgb3/sge.c           |   5 - drivers/net/ethernet/chelsio/cxgb4/sge.c           |  12 - drivers/net/ethernet/intel/i40evf/i40e_adminq.c    |  10 - drivers/net/ethernet/marvell/mv643xx_eth.c         |   5 - drivers/net/ethernet/marvell/mvpp2.c               |  11 - drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c |   5 - drivers/net/ethernet/mellanox/mlxsw/item.h         |  36 +-- drivers/net/ethernet/micrel/ksz884x.c              | 294 --------------------- drivers/net/ethernet/microchip/encx24j600-regmap.c |   5 - drivers/net/ethernet/myricom/myri10ge/myri10ge.c   |  12 - drivers/net/ethernet/sun/cassini.c                 |  12 - drivers/net/ethernet/tehuti/tehuti.c               |   9 - drivers/net/ethernet/ti/cpsw_ale.c                 |   8 +- drivers/net/usb/plusb.c                            |   6 - drivers/net/usb/sierra_net.c                       |   5 - drivers/net/wireless/ath/ath10k/ce.c               |  10 - drivers/net/wireless/ath/wil6210/txrx.c            |   5 - drivers/net/wireless/broadcom/b43legacy/dma.c      |  20 -- drivers/net/wireless/broadcom/b43legacy/radio.c    |  17 -- drivers/net/wireless/intel/ipw2x00/ipw2100.c       |  11 - drivers/net/wireless/intel/ipw2x00/ipw2200.c       |  27 -- drivers/net/wireless/ti/wlcore/debugfs.c           |   6 - drivers/nvme/target/fc.c                           |  14 - drivers/pci/hotplug/shpchp_hpc.c                   |   5 - drivers/pcmcia/yenta_socket.c                      |   9 - drivers/phy/rockchip/phy-rockchip-pcie.c           |  15 -- drivers/pinctrl/pinctrl-st.c                       |   5 - drivers/pwm/pwm-mediatek.c                         |   6 - drivers/rtc/rtc-cmos.c                             |   5 - drivers/rtc/rtc-ds1511.c                           |   6 - drivers/scsi/cxgbi/libcxgbi.c                      |  28 -- drivers/scsi/osd/osd_initiator.c                   |   2 +- drivers/scsi/qla2xxx/qla_nx.c                      |  41 --- drivers/scsi/qla4xxx/ql4_nx.c                      |   6 - drivers/spi/spi-bcm63xx.c                          |  10 - drivers/staging/comedi/drivers/cb_pcidas64.c       |  10 - drivers/staging/lustre/lustre/ldlm/ldlm_pool.c     |  51 ---- drivers/staging/lustre/lustre/ldlm/ldlm_request.c  |   5 - drivers/staging/lustre/lustre/llite/llite_lib.c    |  14 - .../staging/lustre/lustre/ptlrpc/pack_generic.c    |  20 -- drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c  |  56 ---- drivers/staging/rts5208/xd.c                       |   7 - drivers/thermal/ti-soc-thermal/ti-thermal-common.c |   8 - drivers/tty/isicom.c                               |  12 +- drivers/tty/serial/imx.c                           |  14 - drivers/tty/serial/samsung.c                       |  26 +- drivers/usb/host/ehci-omap.c                       |   5 - drivers/usb/host/sl811-hcd.c                       |   2 + drivers/usb/host/u132-hcd.c                        |   6 - drivers/usb/musb/musb_host.c                       |  11 +- drivers/usb/serial/quatech2.c                      |   8 - drivers/video/console/fbcon.c                      |   4 +- drivers/video/fbdev/arkfb.c                        |  12 - drivers/video/fbdev/aty/aty128fb.c                 |   7 - drivers/video/fbdev/neofb.c                        |   5 - drivers/video/fbdev/tridentfb.c                    |   5 - drivers/watchdog/s3c2410_wdt.c                     |  14 +- fs/dlm/lock.c                                      |   5 - fs/lockd/xdr.c                                     |   6 - fs/nfsd/nfs4state.c                                |   9 - fs/ocfs2/dlm/dlmrecovery.c                         |   7 - fs/ocfs2/suballoc.c                                |  49 ---- include/linux/interval_tree_generic.h              |   5 +- kernel/cgroup/cpuset.c                             |  13 - kernel/cpu.c                                       |  24 -- kernel/locking/osq_lock.c                          |   2 +- kernel/locking/rtmutex.c                           |  12 +- kernel/sched/topology.c                            |   4 +- kernel/time/hrtimer.c                              |   5 - kernel/time/timer.c                                |   5 - kernel/trace/ring_buffer.c                         |   6 - kernel/trace/trace_irqsoff.c                       |   4 - kernel/trace/trace_sched_wakeup.c                  |   4 - lib/lz4/lz4defs.h                                  |   2 +- lib/zlib_inflate/inffast.c                         |   2 +- mm/memcontrol.c                                    |   5 - mm/slub.c                                          |  16 +- mm/zsmalloc.c                                      |   5 - net/bluetooth/6lowpan.c                            |  36 --- net/ipv6/ila/ila_xlat.c                            |   5 - net/ipv6/ip6_gre.c                                 |  20 -- net/sched/sch_choke.c                              |   5 - net/sunrpc/svcauth_unix.c                          |  18 -- sound/drivers/portman2x4.c                         |  10 - sound/pci/azt3328.c                                |   9 - sound/pci/rme9652/hdspm.c                          |   6 - sound/pci/trident/trident_memory.c                 |   9 - sound/pci/ymfpci/ymfpci_main.c                     |   5 - sound/soc/tegra/tegra20_das.c                      |   8 - 155 files changed, 99 insertions(+), 2009 deletions(-)diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.cindex 6f2d0aec0513..3e393c0e5d10 100644--- a/arch/arm/mach-omap2/cm33xx.c+++ b/arch/arm/mach-omap2/cm33xx.c@@ -59,19 +59,6 @@ static inline void am33xx_cm_write_reg(u32 val, u16 inst, u16 idx) 	writel_relaxed(val, cm_base + inst + idx); } -/* Read-modify-write a register in CM */-static inline u32 am33xx_cm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx)-{-	u32 v;--	v = am33xx_cm_read_reg(inst, idx);-	v &= ~mask;-	v |= bits;-	am33xx_cm_write_reg(v, inst, idx);--	return v;-}- /**  * _clkctrl_idlest - read a CM_*_CLKCTRL register; mask & shift IDLEST bitfield  * @inst: CM instance register offset (*_INST macro)diff --git a/arch/arm/mm/cache-feroceon-l2.c b/arch/arm/mm/cache-feroceon-l2.cindex 5c1b7a7b9af6..bdd64f865141 100644--- a/arch/arm/mm/cache-feroceon-l2.c+++ b/arch/arm/mm/cache-feroceon-l2.c@@ -65,11 +65,6 @@ static inline void l2_put_va(unsigned long vaddr) #endif } -static inline void l2_clean_pa(unsigned long addr)-{-	__asm__("mcr p15, 1, %0, c15, c9, 3" : : "r" (addr));-}- static inline void l2_clean_pa_range(unsigned long start, unsigned long end) { 	unsigned long va_start, va_end, flags;@@ -96,11 +91,6 @@ static inline void l2_clean_inv_pa(unsigned long addr) 	__asm__("mcr p15, 1, %0, c15, c10, 3" : : "r" (addr)); } -static inline void l2_inv_pa(unsigned long addr)-{-	__asm__("mcr p15, 1, %0, c15, c11, 3" : : "r" (addr));-}- static inline void l2_inv_pa_range(unsigned long start, unsigned long end) { 	unsigned long va_start, va_end, flags;diff --git a/block/blk-mq.c b/block/blk-mq.cindex 22438d5036a3..0330d813f696 100644--- a/block/blk-mq.c+++ b/block/blk-mq.c@@ -1377,12 +1377,6 @@ static void blk_mq_bio_to_request(struct request *rq, struct bio *bio) 	blk_account_io_start(rq, true); } -static inline bool hctx_allow_merges(struct blk_mq_hw_ctx *hctx)-{-	return (hctx->flags & BLK_MQ_F_SHOULD_MERGE) &&-		!blk_queue_nomerges(hctx->queue);-}- static inline void blk_mq_queue_io(struct blk_mq_hw_ctx *hctx, 				   struct blk_mq_ctx *ctx, 				   struct request *rq)diff --git a/block/cfq-iosched.c b/block/cfq-iosched.cindex ad5aec143403..ee109c89b5a2 100644--- a/block/cfq-iosched.c+++ b/block/cfq-iosched.c@@ -426,18 +426,18 @@ enum cfqq_state_flags { 	CFQ_CFQQ_FLAG_wait_busy,	/* Waiting for next request */ }; -#define CFQ_CFQQ_FNS(name)						\-static inline void cfq_mark_cfqq_##name(struct cfq_queue *cfqq)		\-{									\-	(cfqq)->flags |= (1 << CFQ_CFQQ_FLAG_##name);			\-}									\-static inline void cfq_clear_cfqq_##name(struct cfq_queue *cfqq)	\-{									\-	(cfqq)->flags &= ~(1 << CFQ_CFQQ_FLAG_##name);			\-}									\-static inline int cfq_cfqq_##name(const struct cfq_queue *cfqq)		\-{									\-	return ((cfqq)->flags & (1 << CFQ_CFQQ_FLAG_##name)) != 0;	\+#define CFQ_CFQQ_FNS(name)							\+static inline void __maybe_unused cfq_mark_cfqq_##name(struct cfq_queue *cfqq)	\+{										\+	(cfqq)->flags |= (1 << CFQ_CFQQ_FLAG_##name);				\+}										\+static inline void __maybe_unused cfq_clear_cfqq_##name(struct cfq_queue *cfqq)	\+{										\+	(cfqq)->flags &= ~(1 << CFQ_CFQQ_FLAG_##name);				\+}										\+static inline int __maybe_unused cfq_cfqq_##name(const struct cfq_queue *cfqq)	\+{										\+	return ((cfqq)->flags & (1 << CFQ_CFQQ_FLAG_##name)) != 0;		\ }  CFQ_CFQQ_FNS(on_rr);@@ -978,15 +978,6 @@ static inline u64 max_vdisktime(u64 min_vdisktime, u64 vdisktime) 	return min_vdisktime; } -static inline u64 min_vdisktime(u64 min_vdisktime, u64 vdisktime)-{-	s64 delta = (s64)(vdisktime - min_vdisktime);-	if (delta < 0)-		min_vdisktime = vdisktime;--	return min_vdisktime;-}- static void update_min_vdisktime(struct cfq_rb_root *st) { 	struct cfq_group *cfqg;diff --git a/block/partitions/mac.c b/block/partitions/mac.cindex 621317ac4d59..57483faddaac 100644--- a/block/partitions/mac.c+++ b/block/partitions/mac.c@@ -19,7 +19,7 @@ extern void note_bootable_part(dev_t dev, int part, int goodness);  * Code to understand MacOS partition tables.  */ -static inline void mac_fix_string(char *stg, int len)+static inline void __maybe_unused mac_fix_string(char *stg, int len) { 	int i; diff --git a/crypto/rng.c b/crypto/rng.cindex f46dac5288b9..5e8469244960 100644--- a/crypto/rng.c+++ b/crypto/rng.c@@ -33,11 +33,6 @@ struct crypto_rng *crypto_default_rng; EXPORT_SYMBOL_GPL(crypto_default_rng); static int crypto_default_rng_refcnt; -static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm)-{-	return container_of(tfm, struct crypto_rng, base);-}- int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) { 	u8 *buf = NULL;diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.cindex baea1708ed1d..8df463d95ad5 100644--- a/drivers/atm/idt77252.c+++ b/drivers/atm/idt77252.c@@ -1787,12 +1787,6 @@ set_tct(struct idt77252_dev *card, struct vc_map *vc) /*****************************************************************************/  static __inline__ int-idt77252_fbq_level(struct idt77252_dev *card, int queue)-{-	return (readl(SAR_REG_STAT) >> (16 + (queue << 2))) & 0x0f;-}--static __inline__ int idt77252_fbq_full(struct idt77252_dev *card, int queue) { 	return (readl(SAR_REG_STAT) >> (16 + (queue << 2))) == 0x0f;diff --git a/drivers/bus/omap_l3_smx.c b/drivers/bus/omap_l3_smx.cindex 360a5c0a4ee0..c4354ed65491 100644--- a/drivers/bus/omap_l3_smx.c+++ b/drivers/bus/omap_l3_smx.c@@ -53,21 +53,11 @@ static inline u32 omap3_l3_decode_addr(u64 error_addr) 	return error_addr & 0xffffffff; } -static inline unsigned omap3_l3_decode_cmd(u64 error)-{-	return (error & 0x07) >> L3_ERROR_LOG_CMD;-}- static inline enum omap3_l3_initiator_id omap3_l3_decode_initid(u64 error) { 	return (error & 0xff00) >> L3_ERROR_LOG_INITID; } -static inline unsigned omap3_l3_decode_req_info(u64 error)-{-	return (error >> 32) & 0xffff;-}- static char *omap3_l3_code_string(u8 code) { 	switch (code) {diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.cindex 13eb04f72389..6814ded5c6b4 100644--- a/drivers/clk/ti/clk-dra7-atl.c+++ b/drivers/clk/ti/clk-dra7-atl.c@@ -72,11 +72,6 @@ static inline void atl_write(struct dra7_atl_clock_info *cinfo, u32 reg, 	__raw_writel(val, cinfo->iobase + reg); } -static inline int atl_read(struct dra7_atl_clock_info *cinfo, u32 reg)-{-	return __raw_readl(cinfo->iobase + reg);-}- static int atl_clk_enable(struct clk_hw *hw) { 	struct dra7_atl_desc *cdesc = to_atl_desc(hw);diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.cindex f00e0d8bd039..f5da10907567 100644--- a/drivers/crypto/chelsio/chcr_algo.c+++ b/drivers/crypto/chelsio/chcr_algo.c@@ -450,15 +450,6 @@ static inline int get_aead_subtype(struct crypto_aead *aead) 	return chcr_crypto_alg->type & CRYPTO_ALG_SUB_TYPE_MASK; } -static inline int get_cryptoalg_subtype(struct crypto_tfm *tfm)-{-	struct crypto_alg *alg = tfm->__crt_alg;-	struct chcr_alg_template *chcr_crypto_alg =-		container_of(alg, struct chcr_alg_template, alg.crypto);--	return chcr_crypto_alg->type & CRYPTO_ALG_SUB_TYPE_MASK;-}- static inline void write_buffer_to_skb(struct sk_buff *skb, 					unsigned int *frags, 					char *bfr,diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.cindex 7d4e0bcda9af..53b7d8e146c8 100644--- a/drivers/dma/at_xdmac.c+++ b/drivers/dma/at_xdmac.c@@ -296,17 +296,6 @@ static inline int at_xdmac_chan_is_paused(struct at_xdmac_chan *atchan) 	return test_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status); } -static inline int at_xdmac_csize(u32 maxburst)-{-	int csize;--	csize = ffs(maxburst) - 1;-	if (csize > 4)-		csize = -EINVAL;--	return csize;-};- static inline u8 at_xdmac_get_dwidth(u32 cfg) { 	return (cfg & AT_XDMAC_CC_DWIDTH_MASK) >> AT_XDMAC_CC_DWIDTH_OFFSET;diff --git a/drivers/dma/edma.c b/drivers/dma/edma.cindex 3879f80a4815..647bcf45b4a8 100644--- a/drivers/dma/edma.c+++ b/drivers/dma/edma.c@@ -307,14 +307,6 @@ static inline void edma_modify(struct edma_cc *ecc, int offset, unsigned and, 	edma_write(ecc, offset, val); } -static inline void edma_and(struct edma_cc *ecc, int offset, unsigned and)-{-	unsigned val = edma_read(ecc, offset);--	val &= and;-	edma_write(ecc, offset, val);-}- static inline void edma_or(struct edma_cc *ecc, int offset, unsigned or) { 	unsigned val = edma_read(ecc, offset);@@ -341,12 +333,6 @@ static inline void edma_modify_array(struct edma_cc *ecc, int offset, int i, 	edma_modify(ecc, offset + (i << 2), and, or); } -static inline void edma_or_array(struct edma_cc *ecc, int offset, int i,-				 unsigned or)-{-	edma_or(ecc, offset + (i << 2), or);-}- static inline void edma_or_array2(struct edma_cc *ecc, int offset, int i, int j, 				  unsigned or) {@@ -359,11 +345,6 @@ static inline void edma_write_array2(struct edma_cc *ecc, int offset, int i, 	edma_write(ecc, offset + ((i * 2 + j) << 2), val); } -static inline unsigned int edma_shadow0_read(struct edma_cc *ecc, int offset)-{-	return edma_read(ecc, EDMA_SHADOW0 + offset);-}- static inline unsigned int edma_shadow0_read_array(struct edma_cc *ecc, 						   int offset, int i) {@@ -382,36 +363,12 @@ static inline void edma_shadow0_write_array(struct edma_cc *ecc, int offset, 	edma_write(ecc, EDMA_SHADOW0 + offset + (i << 2), val); } -static inline unsigned int edma_param_read(struct edma_cc *ecc, int offset,-					   int param_no)-{-	return edma_read(ecc, EDMA_PARM + offset + (param_no << 5));-}--static inline void edma_param_write(struct edma_cc *ecc, int offset,-				    int param_no, unsigned val)-{-	edma_write(ecc, EDMA_PARM + offset + (param_no << 5), val);-}- static inline void edma_param_modify(struct edma_cc *ecc, int offset, 				     int param_no, unsigned and, unsigned or) { 	edma_modify(ecc, EDMA_PARM + offset + (param_no << 5), and, or); } -static inline void edma_param_and(struct edma_cc *ecc, int offset, int param_no,-				  unsigned and)-{-	edma_and(ecc, EDMA_PARM + offset + (param_no << 5), and);-}--static inline void edma_param_or(struct edma_cc *ecc, int offset, int param_no,-				 unsigned or)-{-	edma_or(ecc, EDMA_PARM + offset + (param_no << 5), or);-}- static inline void edma_set_bits(int offset, int len, unsigned long *p) { 	for (; len > 0; len--)@@ -728,11 +685,6 @@ static void edma_free_channel(struct edma_chan *echan) 	edma_setup_interrupt(echan, false); } -static inline struct edma_cc *to_edma_cc(struct dma_device *d)-{-	return container_of(d, struct edma_cc, dma_slave);-}- static inline struct edma_chan *to_edma_chan(struct dma_chan *c) { 	return container_of(c, struct edma_chan, vchan.chan);diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.cindex f9028e9d0dfc..0166718c516a 100644--- a/drivers/dma/pch_dma.c+++ b/drivers/dma/pch_dma.c@@ -163,11 +163,6 @@ static inline struct device *chan2dev(struct dma_chan *chan) 	return &chan->dev->device; } -static inline struct device *chan2parent(struct dma_chan *chan)-{-	return chan->dev->device.parent;-}- static inline struct pch_dma_desc *pdc_first_active(struct pch_dma_chan *pd_chan) {diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.cindex 8b0da7fa520d..26a386442410 100644--- a/drivers/dma/pl330.c+++ b/drivers/dma/pl330.c@@ -538,11 +538,6 @@ struct _xfer_spec { 	struct dma_pl330_desc *desc; }; -static inline bool _queue_empty(struct pl330_thread *thrd)-{-	return thrd->req[0].desc == NULL && thrd->req[1].desc == NULL;-}- static inline bool _queue_full(struct pl330_thread *thrd) { 	return thrd->req[0].desc != NULL && thrd->req[1].desc != NULL;@@ -564,23 +559,6 @@ static inline u32 get_revision(u32 periph_id) 	return (periph_id >> PERIPH_REV_SHIFT) & PERIPH_REV_MASK; } -static inline u32 _emit_ADDH(unsigned dry_run, u8 buf[],-		enum pl330_dst da, u16 val)-{-	if (dry_run)-		return SZ_DMAADDH;--	buf[0] = CMD_DMAADDH;-	buf[0] |= (da << 1);-	buf[1] = val;-	buf[2] = val >> 8;--	PL330_DBGCMD_DUMP(SZ_DMAADDH, "\tDMAADDH %s %u\n",-		da == 1 ? "DA" : "SA", val);--	return SZ_DMAADDH;-}- static inline u32 _emit_END(unsigned dry_run, u8 buf[]) { 	if (dry_run)@@ -738,18 +716,6 @@ static inline u32 _emit_MOV(unsigned dry_run, u8 buf[], 	return SZ_DMAMOV; } -static inline u32 _emit_NOP(unsigned dry_run, u8 buf[])-{-	if (dry_run)-		return SZ_DMANOP;--	buf[0] = CMD_DMANOP;--	PL330_DBGCMD_DUMP(SZ_DMANOP, "\tDMANOP\n");--	return SZ_DMANOP;-}- static inline u32 _emit_RMB(unsigned dry_run, u8 buf[]) { 	if (dry_run)@@ -817,39 +783,6 @@ static inline u32 _emit_STP(unsigned dry_run, u8 buf[], 	return SZ_DMASTP; } -static inline u32 _emit_STZ(unsigned dry_run, u8 buf[])-{-	if (dry_run)-		return SZ_DMASTZ;--	buf[0] = CMD_DMASTZ;--	PL330_DBGCMD_DUMP(SZ_DMASTZ, "\tDMASTZ\n");--	return SZ_DMASTZ;-}--static inline u32 _emit_WFE(unsigned dry_run, u8 buf[], u8 ev,-		unsigned invalidate)-{-	if (dry_run)-		return SZ_DMAWFE;--	buf[0] = CMD_DMAWFE;--	ev &= 0x1f;-	ev <<= 3;-	buf[1] = ev;--	if (invalidate)-		buf[1] |= (1 << 1);--	PL330_DBGCMD_DUMP(SZ_DMAWFE, "\tDMAWFE %u%s\n",-		ev >> 3, invalidate ? ", I" : "");--	return SZ_DMAWFE;-}- static inline u32 _emit_WFP(unsigned dry_run, u8 buf[], 		enum pl330_cond cond, u8 peri) {diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.cindex 5072a7d306d4..744870983b8c 100644--- a/drivers/dma/qcom/hidma.c+++ b/drivers/dma/qcom/hidma.c@@ -89,12 +89,6 @@ static inline struct hidma_chan *to_hidma_chan(struct dma_chan *dmach) 	return container_of(dmach, struct hidma_chan, chan); } -static inline-struct hidma_desc *to_hidma_desc(struct dma_async_tx_descriptor *t)-{-	return container_of(t, struct hidma_desc, desc);-}- static void hidma_free(struct hidma_dev *dmadev) { 	INIT_LIST_HEAD(&dmadev->ddev.channels);diff --git a/drivers/fpga/xilinx-pr-decoupler.c b/drivers/fpga/xilinx-pr-decoupler.cindex e359930bebc8..082279c9a559 100644--- a/drivers/fpga/xilinx-pr-decoupler.c+++ b/drivers/fpga/xilinx-pr-decoupler.c@@ -37,12 +37,6 @@ static inline void xlnx_pr_decoupler_write(struct xlnx_pr_decoupler_data *d, 	writel(val, d->io_base + offset); } -static inline u32 xlnx_pr_decouple_read(const struct xlnx_pr_decoupler_data *d,-					u32 offset)-{-	return readl(d->io_base + offset);-}- static int xlnx_pr_decoupler_enable_set(struct fpga_bridge *bridge, bool enable) { 	int err;diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.cindex 832f3e46ba9f..5443656ce8d0 100644--- a/drivers/gpio/gpio-pxa.c+++ b/drivers/gpio/gpio-pxa.c@@ -174,11 +174,6 @@ static inline struct pxa_gpio_bank *gpio_to_pxabank(struct gpio_chip *c, 	return chip_to_pxachip(c)->banks + gpio / 32; } -static inline int gpio_is_pxa_type(int type)-{-	return (type & MMP_GPIO) == 0;-}- static inline int gpio_is_mmp_type(int type) { 	return (type & MMP_GPIO) != 0;diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.cindex aaf287d2e91d..e897bf3899dd 100644--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c@@ -24,13 +24,6 @@ static inline void hdmi_write(struct dw_hdmi_i2s_audio_data *audio, 	audio->write(hdmi, val, offset); } -static inline u8 hdmi_read(struct dw_hdmi_i2s_audio_data *audio, int offset)-{-	struct dw_hdmi *hdmi = audio->hdmi;--	return audio->read(hdmi, offset);-}- static int dw_hdmi_i2s_hw_params(struct device *dev, void *data, 				 struct hdmi_codec_daifmt *fmt, 				 struct hdmi_codec_params *hparms)diff --git a/drivers/gpu/drm/meson/meson_dw_hdmi.c b/drivers/gpu/drm/meson/meson_dw_hdmi.cindex 7b86eb7776b3..3e8b783b4048 100644--- a/drivers/gpu/drm/meson/meson_dw_hdmi.c+++ b/drivers/gpu/drm/meson/meson_dw_hdmi.c@@ -240,20 +240,6 @@ static inline void dw_hdmi_dwc_write(struct meson_dw_hdmi *dw_hdmi, 	spin_unlock_irqrestore(&reg_lock, flags); } -/* Helper to change specific bits in controller registers */-static inline void dw_hdmi_dwc_write_bits(struct meson_dw_hdmi *dw_hdmi,-					  unsigned int addr,-					  unsigned int mask,-					  unsigned int val)-{-	unsigned int data = dw_hdmi_dwc_read(dw_hdmi, addr);--	data &= ~mask;-	data |= val;--	dw_hdmi_dwc_write(dw_hdmi, addr, data);-}- /* Bridge */  /* Setup PHY bandwidth modes */diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_mdss.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_mdss.cindex f8f48d014978..ae3d0066a205 100644--- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_mdss.c+++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_mdss.c@@ -37,11 +37,6 @@ struct msm_mdss { 	} irqcontroller; }; -static inline void mdss_write(struct msm_mdss *mdss, u32 reg, u32 data)-{-	msm_writel(data, mdss->mmio + reg);-}- static inline u32 mdss_read(struct msm_mdss *mdss, u32 reg) { 	return msm_readl(mdss->mmio + reg);diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.cindex 338b9e5bb2a3..8dc3122e4272 100644--- a/drivers/gpu/drm/sun4i/sun4i_tv.c+++ b/drivers/gpu/drm/sun4i/sun4i_tv.c@@ -277,13 +277,6 @@ drm_encoder_to_sun4i_tv(struct drm_encoder *encoder) 			    encoder); } -static inline struct sun4i_tv *-drm_connector_to_sun4i_tv(struct drm_connector *connector)-{-	return container_of(connector, struct sun4i_tv,-			    connector);-}- /*  * FIXME: If only the drm_display_mode private field was usable, this  * could go away...diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.cindex 09c1e05765fa..49829f931151 100644--- a/drivers/gpu/drm/vc4/vc4_vec.c+++ b/drivers/gpu/drm/vc4/vc4_vec.c@@ -205,12 +205,6 @@ struct vc4_vec_connector { 	struct drm_encoder *encoder; }; -static inline struct vc4_vec_connector *-to_vc4_vec_connector(struct drm_connector *connector)-{-	return container_of(connector, struct vc4_vec_connector, base);-}- enum vc4_vec_tv_mode_id { 	VC4_VEC_TV_MODE_NTSC, 	VC4_VEC_TV_MODE_NTSC_J,diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.cindex 727f968ac1cb..4fca6c4a14e6 100644--- a/drivers/hsi/clients/cmt_speech.c+++ b/drivers/hsi/clients/cmt_speech.c@@ -136,7 +136,7 @@ static struct cs_char cs_char_data; static void cs_hsi_read_on_control(struct cs_hsi_iface *hi); static void cs_hsi_read_on_data(struct cs_hsi_iface *hi); -static inline void rx_ptr_shift_too_big(void)+static void __maybe_unused rx_ptr_shift_too_big(void) { 	BUILD_BUG_ON((1LLU << RX_PTR_MAX_SHIFT) > UINT_MAX); }diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.cindex 8b0bc4fc06e8..4dd312d33694 100644--- a/drivers/hwmon/nct6683.c+++ b/drivers/hwmon/nct6683.c@@ -491,17 +491,6 @@ static inline long in_from_reg(u16 reg, u8 src) 	return reg * scale; } -static inline u16 in_to_reg(u32 val, u8 src)-{-	int scale = 16;--	if (src == MON_SRC_VCC || src == MON_SRC_VSB || src == MON_SRC_AVSB ||-	    src == MON_SRC_VBAT)-		scale <<= 1;--	return clamp_val(DIV_ROUND_CLOSEST(val, scale), 0, 127);-}- static u16 nct6683_read(struct nct6683_data *data, u16 reg) { 	int res;diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.cindex 6d789aab54c9..7c510569d10d 100644--- a/drivers/hwmon/sis5595.c+++ b/drivers/hwmon/sis5595.c@@ -169,10 +169,6 @@ static inline s8 TEMP_TO_REG(long val)  * FAN DIV: 1, 2, 4, or 8 (defaults to 2)  * REG: 0, 1, 2, or 3 (respectively) (defaults to 1)  */-static inline u8 DIV_TO_REG(int val)-{-	return val == 8 ? 3 : val == 4 ? 2 : val == 1 ? 0 : 1;-} #define DIV_FROM_REG(val) (1 << (val))  /*diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.cindex 3a6bfa51cb94..ae88527e56dd 100644--- a/drivers/hwmon/vt1211.c+++ b/drivers/hwmon/vt1211.c@@ -208,12 +208,6 @@ struct vt1211_data { /* VT1211 logical device numbers */ #define SIO_VT1211_LDN_HWMON	0x0b	/* HW monitor */ -static inline void superio_outb(int sio_cip, int reg, int val)-{-	outb(reg, sio_cip);-	outb(val, sio_cip + 1);-}- static inline int superio_inb(int sio_cip, int reg) { 	outb(reg, sio_cip);diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.cindex 6c0ae2996326..508d29b0cf12 100644--- a/drivers/hwtracing/stm/policy.c+++ b/drivers/hwtracing/stm/policy.c@@ -55,11 +55,6 @@ void stp_policy_node_get_ranges(struct stp_policy_node *policy_node, 	*cend	= policy_node->last_channel; } -static inline char *stp_policy_node_name(struct stp_policy_node *policy_node)-{-	return policy_node->group.cg_item.ci_name ? : "<none>";-}- static inline struct stp_policy *to_stp_policy(struct config_item *item) { 	return item ?diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.cindex 1844770f3ae8..f3ea23e92e7e 100644--- a/drivers/infiniband/core/cm.c+++ b/drivers/infiniband/core/cm.c@@ -1397,14 +1397,6 @@ static int cm_issue_rej(struct cm_port *port, 	return ret; } -static inline int cm_is_active_peer(__be64 local_ca_guid, __be64 remote_ca_guid,-				    __be32 local_qpn, __be32 remote_qpn)-{-	return (be64_to_cpu(local_ca_guid) > be64_to_cpu(remote_ca_guid) ||-		((local_ca_guid == remote_ca_guid) &&-		 (be32_to_cpu(local_qpn) > be32_to_cpu(remote_qpn))));-}- static void cm_format_paths_from_req(struct cm_req_msg *req_msg, 				     struct sa_path_rec *primary_path, 				     struct sa_path_rec *alt_path)diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.cindex c3a140ed4df2..ebf193699001 100644--- a/drivers/infiniband/sw/rxe/rxe_net.c+++ b/drivers/infiniband/sw/rxe/rxe_net.c@@ -484,11 +484,6 @@ int rxe_loopback(struct sk_buff *skb) 	return rxe_rcv(skb); } -static inline int addr_same(struct rxe_dev *rxe, struct rxe_av *av)-{-	return rxe->port.port_guid == av->grh.dgid.global.interface_id;-}- struct sk_buff *rxe_init_packet(struct rxe_dev *rxe, struct rxe_av *av, 				int paylen, struct rxe_pkt_info *pkt) {diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c b/drivers/isdn/hardware/mISDN/hfcmulti.cindex c404ef0348fb..f44b11f249ad 100644--- a/drivers/isdn/hardware/mISDN/hfcmulti.c+++ b/drivers/isdn/hardware/mISDN/hfcmulti.c@@ -653,23 +653,6 @@ cpld_write_reg(struct hfc_multi *hc, unsigned char reg, unsigned char val) 	return; } -static inline unsigned char-cpld_read_reg(struct hfc_multi *hc, unsigned char reg)-{-	unsigned char bytein;--	cpld_set_reg(hc, reg);--	/* Do data pin read low byte */-	HFC_outb(hc, R_GPIO_OUT1, reg);--	enablepcibridge(hc);-	bytein = readpcibridge(hc, 1);-	disablepcibridge(hc);--	return bytein;-}- static inline void vpm_write_address(struct hfc_multi *hc, unsigned short addr) {@@ -677,20 +660,6 @@ vpm_write_address(struct hfc_multi *hc, unsigned short addr) 	cpld_write_reg(hc, 1, 0x01 & (addr >> 8)); } -static inline unsigned short-vpm_read_address(struct hfc_multi *c)-{-	unsigned short addr;-	unsigned short highbit;--	addr = cpld_read_reg(c, 0);-	highbit = cpld_read_reg(c, 1);--	addr = addr | (highbit << 8);--	return addr & 0x1ff;-}- static inline unsigned char vpm_in(struct hfc_multi *c, int which, unsigned short addr) {diff --git a/drivers/mailbox/pl320-ipc.c b/drivers/mailbox/pl320-ipc.cindex 2dbed87094d7..8217dbce93bb 100644--- a/drivers/mailbox/pl320-ipc.c+++ b/drivers/mailbox/pl320-ipc.c@@ -56,18 +56,6 @@ static DEFINE_MUTEX(ipc_m1_lock); static DECLARE_COMPLETION(ipc_completion); static ATOMIC_NOTIFIER_HEAD(ipc_notifier); -static inline void set_destination(int source, int mbox)-{-	writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxDSET(mbox));-	writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxMSET(mbox));-}--static inline void clear_destination(int source, int mbox)-{-	writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxDCLEAR(mbox));-	writel_relaxed(CHAN_MASK(source), ipc_base + IPCMxMCLEAR(mbox));-}- static void __ipc_send(int mbox, u32 *data) { 	int i;diff --git a/drivers/md/raid0.c b/drivers/md/raid0.cindex d6c0bc76e837..5c5380b2d9b3 100644--- a/drivers/md/raid0.c+++ b/drivers/md/raid0.c@@ -442,23 +442,6 @@ static void raid0_free(struct mddev *mddev, void *priv) 	kfree(conf); } -/*- * Is io distribute over 1 or more chunks ?-*/-static inline int is_io_in_chunk_boundary(struct mddev *mddev,-			unsigned int chunk_sects, struct bio *bio)-{-	if (likely(is_power_of_2(chunk_sects))) {-		return chunk_sects >=-			((bio->bi_iter.bi_sector & (chunk_sects-1))-					+ bio_sectors(bio));-	} else{-		sector_t sector = bio->bi_iter.bi_sector;-		return chunk_sects >= (sector_div(sector, chunk_sects)-						+ bio_sectors(bio));-	}-}- static void raid0_handle_discard(struct mddev *mddev, struct bio *bio) { 	struct r0conf *conf = mddev->private;diff --git a/drivers/media/dvb-frontends/drxk_hard.c b/drivers/media/dvb-frontends/drxk_hard.cindex 48a8aad47a74..a7c042cbb2ba 100644--- a/drivers/media/dvb-frontends/drxk_hard.c+++ b/drivers/media/dvb-frontends/drxk_hard.c@@ -168,16 +168,6 @@ if (debug >= level)							\ } while (0)  -static inline u32 MulDiv32(u32 a, u32 b, u32 c)-{-	u64 tmp64;--	tmp64 = (u64) a * (u64) b;-	do_div(tmp64, c);--	return (u32) tmp64;-}- static inline u32 Frac28a(u32 a, u32 c) { 	int i = 0;diff --git a/drivers/media/dvb-frontends/stb6100.c b/drivers/media/dvb-frontends/stb6100.cindex 675dffe1ef20..2036f1a8ddf1 100644--- a/drivers/media/dvb-frontends/stb6100.c+++ b/drivers/media/dvb-frontends/stb6100.c@@ -119,17 +119,6 @@ static const struct stb6100_regmask stb6100_template[] = { 	[STB6100_TEST3]		= { 0x00, 0xde }, }; -/*- * Currently unused. Some boards might need it in the future- */-static inline void stb6100_normalise_regs(u8 regs[])-{-	int i;--	for (i = 0; i < STB6100_NUMREGS; i++)-		regs[i] = (regs[i] & stb6100_template[i].mask) | stb6100_template[i].set;-}- static int stb6100_read_regs(struct stb6100_state *state, u8 regs[]) { 	int rc;diff --git a/drivers/media/i2c/adv7511.c b/drivers/media/i2c/adv7511.cindex ccc478605643..7503ceeb1905 100644--- a/drivers/media/i2c/adv7511.c+++ b/drivers/media/i2c/adv7511.c@@ -288,28 +288,6 @@ static int adv7511_pktmem_rd(struct v4l2_subdev *sd, u8 reg) 	return adv_smbus_read_byte_data(state->i2c_pktmem, reg); } -static int adv7511_pktmem_wr(struct v4l2_subdev *sd, u8 reg, u8 val)-{-	struct adv7511_state *state = get_adv7511_state(sd);-	int ret;-	int i;--	for (i = 0; i < 3; i++) {-		ret = i2c_smbus_write_byte_data(state->i2c_pktmem, reg, val);-		if (ret == 0)-			return 0;-	}-	v4l2_err(sd, "%s: i2c write error\n", __func__);-	return ret;-}--/* To set specific bits in the register, a clear-mask is given (to be AND-ed),-   and then the value-mask (to be OR-ed). */-static inline void adv7511_pktmem_wr_and_or(struct v4l2_subdev *sd, u8 reg, u8 clr_mask, u8 val_mask)-{-	adv7511_pktmem_wr(sd, reg, (adv7511_pktmem_rd(sd, reg) & clr_mask) | val_mask);-}- static inline bool adv7511_have_hotplug(struct v4l2_subdev *sd) { 	return adv7511_rd(sd, 0x42) & MASK_ADV7511_HPD_DETECT;diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.cindex 131e0d262047..ffa97e49619c 100644--- a/drivers/media/i2c/adv7604.c+++ b/drivers/media/i2c/adv7604.c@@ -396,20 +396,6 @@ static inline int io_write_clr_set(struct v4l2_subdev *sd, u8 reg, u8 mask, 	return io_write(sd, reg, (io_read(sd, reg) & ~mask) | val); } -static inline int avlink_read(struct v4l2_subdev *sd, u8 reg)-{-	struct adv76xx_state *state = to_state(sd);--	return adv76xx_read_check(state, ADV7604_PAGE_AVLINK, reg);-}--static inline int avlink_write(struct v4l2_subdev *sd, u8 reg, u8 val)-{-	struct adv76xx_state *state = to_state(sd);--	return regmap_write(state->regmap[ADV7604_PAGE_AVLINK], reg, val);-}- static inline int cec_read(struct v4l2_subdev *sd, u8 reg) { 	struct adv76xx_state *state = to_state(sd);@@ -437,20 +423,6 @@ static inline int infoframe_read(struct v4l2_subdev *sd, u8 reg) 	return adv76xx_read_check(state, ADV76XX_PAGE_INFOFRAME, reg); } -static inline int infoframe_write(struct v4l2_subdev *sd, u8 reg, u8 val)-{-	struct adv76xx_state *state = to_state(sd);--	return regmap_write(state->regmap[ADV76XX_PAGE_INFOFRAME], reg, val);-}--static inline int afe_read(struct v4l2_subdev *sd, u8 reg)-{-	struct adv76xx_state *state = to_state(sd);--	return adv76xx_read_check(state, ADV76XX_PAGE_AFE, reg);-}- static inline int afe_write(struct v4l2_subdev *sd, u8 reg, u8 val) { 	struct adv76xx_state *state = to_state(sd);@@ -477,20 +449,6 @@ static inline int rep_write_clr_set(struct v4l2_subdev *sd, u8 reg, u8 mask, u8 	return rep_write(sd, reg, (rep_read(sd, reg) & ~mask) | val); } -static inline int edid_read(struct v4l2_subdev *sd, u8 reg)-{-	struct adv76xx_state *state = to_state(sd);--	return adv76xx_read_check(state, ADV76XX_PAGE_EDID, reg);-}--static inline int edid_write(struct v4l2_subdev *sd, u8 reg, u8 val)-{-	struct adv76xx_state *state = to_state(sd);--	return regmap_write(state->regmap[ADV76XX_PAGE_EDID], reg, val);-}- static inline int edid_write_block(struct v4l2_subdev *sd, 					unsigned int total_len, const u8 *val) {@@ -561,13 +519,6 @@ static inline int hdmi_write_clr_set(struct v4l2_subdev *sd, u8 reg, u8 mask, u8 	return hdmi_write(sd, reg, (hdmi_read(sd, reg) & ~mask) | val); } -static inline int test_write(struct v4l2_subdev *sd, u8 reg, u8 val)-{-	struct adv76xx_state *state = to_state(sd);--	return regmap_write(state->regmap[ADV76XX_PAGE_TEST], reg, val);-}- static inline int cp_read(struct v4l2_subdev *sd, u8 reg) { 	struct adv76xx_state *state = to_state(sd);@@ -592,20 +543,6 @@ static inline int cp_write_clr_set(struct v4l2_subdev *sd, u8 reg, u8 mask, u8 v 	return cp_write(sd, reg, (cp_read(sd, reg) & ~mask) | val); } -static inline int vdp_read(struct v4l2_subdev *sd, u8 reg)-{-	struct adv76xx_state *state = to_state(sd);--	return adv76xx_read_check(state, ADV7604_PAGE_VDP, reg);-}--static inline int vdp_write(struct v4l2_subdev *sd, u8 reg, u8 val)-{-	struct adv76xx_state *state = to_state(sd);--	return regmap_write(state->regmap[ADV7604_PAGE_VDP], reg, val);-}- #define ADV76XX_REG(page, offset)	(((page) << 8) | (offset)) #define ADV76XX_REG_SEQ_TERM		0xffff diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.cindex 303effda1a2e..75f1019ac8d1 100644--- a/drivers/media/i2c/adv7842.c+++ b/drivers/media/i2c/adv7842.c@@ -267,21 +267,11 @@ static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) 	return &container_of(ctrl->handler, struct adv7842_state, hdl)->sd; } -static inline unsigned hblanking(const struct v4l2_bt_timings *t)-{-	return V4L2_DV_BT_BLANKING_WIDTH(t);-}- static inline unsigned htotal(const struct v4l2_bt_timings *t) { 	return V4L2_DV_BT_FRAME_WIDTH(t); } -static inline unsigned vblanking(const struct v4l2_bt_timings *t)-{-	return V4L2_DV_BT_BLANKING_HEIGHT(t);-}- static inline unsigned vtotal(const struct v4l2_bt_timings *t) { 	return V4L2_DV_BT_FRAME_HEIGHT(t);diff --git a/drivers/media/i2c/cx25840/cx25840-ir.c b/drivers/media/i2c/cx25840/cx25840-ir.cindex 9b65c7d2fa84..24db17c48a8c 100644--- a/drivers/media/i2c/cx25840/cx25840-ir.c+++ b/drivers/media/i2c/cx25840/cx25840-ir.c@@ -145,19 +145,6 @@ static inline u16 count_to_clock_divider(unsigned int d) 	return (u16) d; } -static inline u16 ns_to_clock_divider(unsigned int ns)-{-	return count_to_clock_divider(-		DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000));-}--static inline unsigned int clock_divider_to_ns(unsigned int divider)-{-	/* Period of the Rx or Tx clock in ns */-	return DIV_ROUND_CLOSEST((divider + 1) * 1000,-				 CX25840_IR_REFCLK_FREQ / 1000000);-}- static inline u16 carrier_freq_to_clock_divider(unsigned int freq) { 	return count_to_clock_divider(@@ -169,13 +156,6 @@ static inline unsigned int clock_divider_to_carrier_freq(unsigned int divider) 	return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16); } -static inline u16 freq_to_clock_divider(unsigned int freq,-					unsigned int rollovers)-{-	return count_to_clock_divider(-		   DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers));-}- static inline unsigned int clock_divider_to_freq(unsigned int divider, 						 unsigned int rollovers) {diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.cindex bc44193efa47..efd3fbb6752f 100644--- a/drivers/media/media-entity.c+++ b/drivers/media/media-entity.c@@ -22,22 +22,6 @@ #include <media/media-entity.h> #include <media/media-device.h> -static inline const char *gobj_type(enum media_gobj_type type)-{-	switch (type) {-	case MEDIA_GRAPH_ENTITY:-		return "entity";-	case MEDIA_GRAPH_PAD:-		return "pad";-	case MEDIA_GRAPH_LINK:-		return "link";-	case MEDIA_GRAPH_INTF_DEVNODE:-		return "intf-devnode";-	default:-		return "unknown";-	}-}- static inline const char *intf_type(struct media_interface *intf) { 	switch (intf->type) {diff --git a/drivers/media/pci/cx18/cx18-alsa-main.c b/drivers/media/pci/cx18/cx18-alsa-main.cindex 2531e4b81b60..b3ecd4a30e84 100644--- a/drivers/media/pci/cx18/cx18-alsa-main.c+++ b/drivers/media/pci/cx18/cx18-alsa-main.c@@ -62,12 +62,6 @@ struct snd_cx18_card *to_snd_cx18_card(struct v4l2_device *v4l2_dev) 	return to_cx18(v4l2_dev)->alsa; } -static inline-struct snd_cx18_card *p_to_snd_cx18_card(struct v4l2_device **v4l2_dev)-{-	return container_of(v4l2_dev, struct snd_cx18_card, v4l2_dev);-}- static void snd_cx18_card_free(struct snd_cx18_card *cxsc) { 	if (cxsc == NULL)diff --git a/drivers/media/pci/cx23885/cx23888-ir.c b/drivers/media/pci/cx23885/cx23888-ir.cindex 040323b0f945..3d6b3658a6dd 100644--- a/drivers/media/pci/cx23885/cx23888-ir.c+++ b/drivers/media/pci/cx23885/cx23888-ir.c@@ -184,19 +184,6 @@ static inline u16 count_to_clock_divider(unsigned int d) 	return (u16) d; } -static inline u16 ns_to_clock_divider(unsigned int ns)-{-	return count_to_clock_divider(-		DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000));-}--static inline unsigned int clock_divider_to_ns(unsigned int divider)-{-	/* Period of the Rx or Tx clock in ns */-	return DIV_ROUND_CLOSEST((divider + 1) * 1000,-				 CX23888_IR_REFCLK_FREQ / 1000000);-}- static inline u16 carrier_freq_to_clock_divider(unsigned int freq) { 	return count_to_clock_divider(@@ -208,13 +195,6 @@ static inline unsigned int clock_divider_to_carrier_freq(unsigned int divider) 	return DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, (divider + 1) * 16); } -static inline u16 freq_to_clock_divider(unsigned int freq,-					unsigned int rollovers)-{-	return count_to_clock_divider(-		   DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, freq * rollovers));-}- static inline unsigned int clock_divider_to_freq(unsigned int divider, 						 unsigned int rollovers) {diff --git a/drivers/media/pci/cx25821/cx25821-core.c b/drivers/media/pci/cx25821/cx25821-core.cindex fbc0229183bd..810d123e1470 100644--- a/drivers/media/pci/cx25821/cx25821-core.c+++ b/drivers/media/pci/cx25821/cx25821-core.c@@ -347,13 +347,6 @@ static int cx25821_risc_decode(u32 risc) 	return incr[risc >> 28] ? incr[risc >> 28] : 1; } -static inline int i2c_slave_did_ack(struct i2c_adapter *i2c_adap)-{-	struct cx25821_i2c *bus = i2c_adap->algo_data;-	struct cx25821_dev *dev = bus->dev;-	return cx_read(bus->reg_stat) & 0x01;-}- static void cx25821_registers_init(struct cx25821_dev *dev) { 	u32 tmp;diff --git a/drivers/media/pci/ivtv/ivtv-alsa-main.c b/drivers/media/pci/ivtv/ivtv-alsa-main.cindex 029f52733f70..859e48f745e7 100644--- a/drivers/media/pci/ivtv/ivtv-alsa-main.c+++ b/drivers/media/pci/ivtv/ivtv-alsa-main.c@@ -59,12 +59,6 @@ struct snd_ivtv_card *to_snd_ivtv_card(struct v4l2_device *v4l2_dev) 	return to_ivtv(v4l2_dev)->alsa; } -static inline-struct snd_ivtv_card *p_to_snd_ivtv_card(struct v4l2_device **v4l2_dev)-{-	return container_of(v4l2_dev, struct snd_ivtv_card, v4l2_dev);-}- static void snd_ivtv_card_free(struct snd_ivtv_card *itvsc) { 	if (itvsc == NULL)diff --git a/drivers/media/pci/saa7134/saa7134-go7007.c b/drivers/media/pci/saa7134/saa7134-go7007.cindex 2799538e2d7e..e2c6527ba6de 100644--- a/drivers/media/pci/saa7134/saa7134-go7007.c+++ b/drivers/media/pci/saa7134/saa7134-go7007.c@@ -64,11 +64,6 @@ struct saa7134_go7007 { 	dma_addr_t bottom_dma; }; -static inline struct saa7134_go7007 *to_state(struct v4l2_subdev *sd)-{-	return container_of(sd, struct saa7134_go7007, sd);-}- static const struct go7007_board_info board_voyager = { 	.flags		 = 0, 	.sensor_flags	 = GO7007_SENSOR_656 |diff --git a/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c b/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.cindex 25f9f2ebff1d..3d10be67fada 100644--- a/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c+++ b/drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c@@ -400,16 +400,6 @@ static int solo_send_desc(struct solo_enc_dev *solo_enc, int skip, }  /* Extract values from VOP header - VE_STATUSxx */-static inline int vop_interlaced(const vop_header *vh)-{-	return (__le32_to_cpu((*vh)[0]) >> 30) & 1;-}--static inline u8 vop_channel(const vop_header *vh)-{-	return (__le32_to_cpu((*vh)[0]) >> 24) & 0x1F;-}- static inline u8 vop_type(const vop_header *vh) { 	return (__le32_to_cpu((*vh)[0]) >> 22) & 3;@@ -420,16 +410,6 @@ static inline u32 vop_mpeg_size(const vop_header *vh) 	return __le32_to_cpu((*vh)[0]) & 0xFFFFF; } -static inline u8 vop_hsize(const vop_header *vh)-{-	return (__le32_to_cpu((*vh)[1]) >> 8) & 0xFF;-}--static inline u8 vop_vsize(const vop_header *vh)-{-	return __le32_to_cpu((*vh)[1]) & 0xFF;-}- static inline u32 vop_mpeg_offset(const vop_header *vh) { 	return __le32_to_cpu((*vh)[2]);@@ -445,16 +425,6 @@ static inline u32 vop_jpeg_size(const vop_header *vh) 	return __le32_to_cpu((*vh)[4]) & 0xFFFFF; } -static inline u32 vop_sec(const vop_header *vh)-{-	return __le32_to_cpu((*vh)[5]);-}--static inline u32 vop_usec(const vop_header *vh)-{-	return __le32_to_cpu((*vh)[6]);-}- static int solo_fill_jpeg(struct solo_enc_dev *solo_enc, 			  struct vb2_buffer *vb, const vop_header *vh) {diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.cindex 0d984a28a003..cdcb0d747590 100644--- a/drivers/media/platform/omap3isp/isp.c+++ b/drivers/media/platform/omap3isp/isp.c@@ -485,7 +485,7 @@ void omap3isp_hist_dma_done(struct isp_device *isp) 	} } -static inline void isp_isr_dbg(struct isp_device *isp, u32 irqstatus)+static void __maybe_unused isp_isr_dbg(struct isp_device *isp, u32 irqstatus) { 	static const char *name[] = { 		"CSIA_IRQ",diff --git a/drivers/media/radio/radio-si476x.c b/drivers/media/radio/radio-si476x.cindex 271f725b17e8..ab5029d749b1 100644--- a/drivers/media/radio/radio-si476x.c+++ b/drivers/media/radio/radio-si476x.c@@ -317,12 +317,6 @@ struct si476x_radio { };  static inline struct si476x_radio *-v4l2_dev_to_radio(struct v4l2_device *d)-{-	return container_of(d, struct si476x_radio, v4l2dev);-}--static inline struct si476x_radio * v4l2_ctrl_handler_to_radio(struct v4l2_ctrl_handler *d) { 	return container_of(d, struct si476x_radio, ctrl_handler);diff --git a/drivers/media/rc/sir_ir.c b/drivers/media/rc/sir_ir.cindex 90a5f8fd5eea..d6a75e96f4a8 100644--- a/drivers/media/rc/sir_ir.c+++ b/drivers/media/rc/sir_ir.c@@ -64,16 +64,6 @@ static void drop_hardware(void); static int init_port(void); static void drop_port(void); -static inline unsigned int sinp(int offset)-{-	return inb(io + offset);-}--static inline void soutp(int offset, int value)-{-	outb(value, io + offset);-}- /* SECTION: Communication with user-space */ static int sir_tx_ir(struct rc_dev *dev, unsigned int *tx_buf, 		     unsigned int count)diff --git a/drivers/media/usb/au0828/au0828-i2c.c b/drivers/media/usb/au0828/au0828-i2c.cindex 42b352bb4f02..7401fc0df1ad 100644--- a/drivers/media/usb/au0828/au0828-i2c.c+++ b/drivers/media/usb/au0828/au0828-i2c.c@@ -33,13 +33,6 @@ MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); #define I2C_WAIT_DELAY 25 #define I2C_WAIT_RETRY 1000 -static inline int i2c_slave_did_write_ack(struct i2c_adapter *i2c_adap)-{-	struct au0828_dev *dev = i2c_adap->algo_data;-	return au0828_read(dev, AU0828_I2C_STATUS_201) &-		AU0828_I2C_STATUS_NO_WRITE_ACK ? 0 : 1;-}- static inline int i2c_slave_did_read_ack(struct i2c_adapter *i2c_adap) { 	struct au0828_dev *dev = i2c_adap->algo_data;diff --git a/drivers/media/usb/usbvision/usbvision-video.c b/drivers/media/usb/usbvision/usbvision-video.cindex f9c3325aa4d4..b8740043d6d4 100644--- a/drivers/media/usb/usbvision/usbvision-video.c+++ b/drivers/media/usb/usbvision/usbvision-video.c@@ -156,12 +156,6 @@ MODULE_ALIAS(DRIVER_ALIAS);  #define YES_NO(x) ((x) ? "Yes" : "No") -static inline struct usb_usbvision *cd_to_usbvision(struct device *cd)-{-	struct video_device *vdev = to_video_device(cd);-	return video_get_drvdata(vdev);-}- static ssize_t show_version(struct device *cd, 			    struct device_attribute *attr, char *buf) {diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.cindex fd8b15cd84fd..2202d5ae82b2 100644--- a/drivers/mfd/max8925-core.c+++ b/drivers/mfd/max8925-core.c@@ -472,12 +472,6 @@ static struct max8925_irq_data max8925_irqs[] = { 	}, }; -static inline struct max8925_irq_data *irq_to_max8925(struct max8925_chip *chip,-						      int irq)-{-	return &max8925_irqs[irq - chip->irq_base];-}- static irqreturn_t max8925_irq(int irq, void *data) { 	struct max8925_chip *chip = data;diff --git a/drivers/mfd/omap-usb-tll.c b/drivers/mfd/omap-usb-tll.cindex 6f5300b0eb31..085e6dba65f3 100644--- a/drivers/mfd/omap-usb-tll.c+++ b/drivers/mfd/omap-usb-tll.c@@ -136,11 +136,6 @@ static inline void usbtll_writeb(void __iomem *base, u8 reg, u8 val) 	writeb_relaxed(val, base + reg); } -static inline u8 usbtll_readb(void __iomem *base, u8 reg)-{-	return readb_relaxed(base + reg);-}- /*-------------------------------------------------------------------------*/  static bool is_ohci_port(enum usbhs_omap_port_mode pmode)diff --git a/drivers/misc/hpilo.c b/drivers/misc/hpilo.cindex fea8ff40440f..5105c862e67c 100644--- a/drivers/misc/hpilo.c+++ b/drivers/misc/hpilo.c@@ -389,12 +389,6 @@ static inline int is_db_reset(int db_out) 	return db_out & (1 << DB_RESET); } -static inline int is_device_reset(struct ilo_hwinfo *hw)-{-	/* check for global reset condition */-	return is_db_reset(get_device_outbound(hw));-}- static inline void clear_pending_db(struct ilo_hwinfo *hw, int clr) { 	iowrite32(clr, &hw->mmio_vaddr[DB_OUT]);diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.cindex cdbedbc0a554..63c08401ce4c 100644--- a/drivers/mmc/host/sdhci-esdhc-imx.c+++ b/drivers/mmc/host/sdhci-esdhc-imx.c@@ -238,11 +238,6 @@ static inline int is_imx53_esdhc(struct pltfm_imx_data *data) 	return data->socdata == &esdhc_imx53_data; } -static inline int is_imx6q_usdhc(struct pltfm_imx_data *data)-{-	return data->socdata == &usdhc_imx6q_data;-}- static inline int esdhc_is_usdhc(struct pltfm_imx_data *data) { 	return !!(data->socdata->flags & ESDHC_FLAG_USDHC);diff --git a/drivers/mmc/host/sdricoh_cs.c b/drivers/mmc/host/sdricoh_cs.cindex 70cb00aa79a0..5b0755f2a774 100644--- a/drivers/mmc/host/sdricoh_cs.c+++ b/drivers/mmc/host/sdricoh_cs.c@@ -115,14 +115,6 @@ static inline void sdricoh_writel(struct sdricoh_host *host, unsigned int reg,  } -static inline unsigned int sdricoh_readw(struct sdricoh_host *host,-					 unsigned int reg)-{-	unsigned int value = readw(host->iobase + reg);-	dev_vdbg(host->dev, "rb %x 0x%x\n", reg, value);-	return value;-}- static inline void sdricoh_writew(struct sdricoh_host *host, unsigned int reg, 					 unsigned short value) {diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.cindex a764d5ca7536..84d8dcdf54b2 100644--- a/drivers/mtd/nand/mxc_nand.c+++ b/drivers/mtd/nand/mxc_nand.c@@ -1531,16 +1531,6 @@ static inline int is_imx25_nfc(struct mxc_nand_host *host) 	return host->devtype_data == &imx25_nand_devtype_data; } -static inline int is_imx51_nfc(struct mxc_nand_host *host)-{-	return host->devtype_data == &imx51_nand_devtype_data;-}--static inline int is_imx53_nfc(struct mxc_nand_host *host)-{-	return host->devtype_data == &imx53_nand_devtype_data;-}- static const struct platform_device_id mxcnd_devtype[] = { 	{ 		.name = "imx21-nand",diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.cindex 744ab10e8962..479f41bb7b59 100644--- a/drivers/mtd/nand/vf610_nfc.c+++ b/drivers/mtd/nand/vf610_nfc.c@@ -512,21 +512,6 @@ static void vf610_nfc_select_chip(struct mtd_info *mtd, int chip) 	vf610_nfc_write(nfc, NFC_ROW_ADDR, tmp); } -/* Count the number of 0's in buff up to max_bits */-static inline int count_written_bits(uint8_t *buff, int size, int max_bits)-{-	uint32_t *buff32 = (uint32_t *)buff;-	int k, written_bits = 0;--	for (k = 0; k < (size / 4); k++) {-		written_bits += hweight32(~buff32[k]);-		if (unlikely(written_bits > max_bits))-			break;-	}--	return written_bits;-}- static inline int vf610_nfc_correct_data(struct mtd_info *mtd, uint8_t *dat, 					 uint8_t *oob, int page) {diff --git a/drivers/net/caif/caif_serial.c b/drivers/net/caif/caif_serial.cindex c2dea4916e5d..8c985142624a 100644--- a/drivers/net/caif/caif_serial.c+++ b/drivers/net/caif/caif_serial.c@@ -134,14 +134,7 @@ static inline void debugfs_rx(struct ser_device *ser, const u8 *data, int size) 	ser->rx_blob.size = size; } -static inline void debugfs_tx(struct ser_device *ser, const u8 *data, int size)-{-	if (size > sizeof(ser->tx_data))-		size = sizeof(ser->tx_data);-	memcpy(ser->tx_data, data, size);-	ser->tx_blob.data = ser->tx_data;-	ser->tx_blob.size = size;-}+ #else static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) {@@ -159,10 +152,6 @@ static inline void debugfs_rx(struct ser_device *ser, const u8 *data, int size) { } -static inline void debugfs_tx(struct ser_device *ser, const u8 *data, int size)-{-}- #endif  static void ldisc_receive(struct tty_struct *tty, const u8 *data,diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.cindex 0e0df0ba288c..9838e4b214f6 100644--- a/drivers/net/can/at91_can.c+++ b/drivers/net/can/at91_can.c@@ -179,7 +179,6 @@ static inline int at91_is_sam##_model(const struct at91_priv *priv) \ }  AT91_IS(9263);-AT91_IS(9X5);  static inline unsigned int get_mb_rx_first(const struct at91_priv *priv) {diff --git a/drivers/net/can/c_can/c_can.c b/drivers/net/can/c_can/c_can.cindex 606b7d8ffe13..831f32947c1d 100644--- a/drivers/net/can/c_can/c_can.c+++ b/drivers/net/can/c_can/c_can.c@@ -352,15 +352,6 @@ static void c_can_setup_tx_object(struct net_device *dev, int iface, 	} } -static inline void c_can_activate_all_lower_rx_msg_obj(struct net_device *dev,-						       int iface)-{-	int i;--	for (i = C_CAN_MSG_OBJ_RX_FIRST; i <= C_CAN_MSG_RX_LOW_LAST; i++)-		c_can_object_get(dev, iface, i, IF_COMM_CLR_NEWDAT);-}- static int c_can_handle_lost_msg_obj(struct net_device *dev, 				     int iface, int objno, u32 ctrl) {diff --git a/drivers/net/can/spi/mcp251x.c b/drivers/net/can/spi/mcp251x.cindex f3f05fea8e1f..b9816a12d9f7 100644--- a/drivers/net/can/spi/mcp251x.c+++ b/drivers/net/can/spi/mcp251x.c@@ -280,7 +280,6 @@ static inline int mcp251x_is_##_model(struct spi_device *spi) \ }  MCP251X_IS(2510);-MCP251X_IS(2515);  static void mcp251x_clean(struct net_device *net) {diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.cindex 7e913d8331c3..3b41b6e4c287 100644--- a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c+++ b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c@@ -190,16 +190,6 @@ static inline void atl1c_irq_disable(struct atl1c_adapter *adapter) 	synchronize_irq(adapter->pdev->irq); } -/**- * atl1c_irq_reset - reset interrupt confiure on the NIC- * @adapter: board private structure- */-static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)-{-	atomic_set(&adapter->irq_sem, 1);-	atl1c_irq_enable(adapter);-}- /*  * atl1c_wait_until_idle - wait up to AT_HW_MAX_IDLE_DELAY reads  * of the idle status register until the device is actually idlediff --git a/drivers/net/ethernet/broadcom/b44.c b/drivers/net/ethernet/broadcom/b44.cindex 5b95bb48ce97..e1cf25994956 100644--- a/drivers/net/ethernet/broadcom/b44.c+++ b/drivers/net/ethernet/broadcom/b44.c@@ -198,28 +198,6 @@ static int b44_wait_bit(struct b44 *bp, unsigned long reg, 	return 0; } -static inline void __b44_cam_read(struct b44 *bp, unsigned char *data, int index)-{-	u32 val;--	bw32(bp, B44_CAM_CTRL, (CAM_CTRL_READ |-			    (index << CAM_CTRL_INDEX_SHIFT)));--	b44_wait_bit(bp, B44_CAM_CTRL, CAM_CTRL_BUSY, 100, 1);--	val = br32(bp, B44_CAM_DATA_LO);--	data[2] = (val >> 24) & 0xFF;-	data[3] = (val >> 16) & 0xFF;-	data[4] = (val >> 8) & 0xFF;-	data[5] = (val >> 0) & 0xFF;--	val = br32(bp, B44_CAM_DATA_HI);--	data[0] = (val >> 8) & 0xFF;-	data[1] = (val >> 0) & 0xFF;-}- static inline void __b44_cam_write(struct b44 *bp, unsigned char *data, int index) { 	u32 val;diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c b/drivers/net/ethernet/broadcom/bcmsysport.cindex 099b374c1b17..024f97d988c6 100644--- a/drivers/net/ethernet/broadcom/bcmsysport.c+++ b/drivers/net/ethernet/broadcom/bcmsysport.c@@ -29,13 +29,15 @@ #include "bcmsysport.h"  /* I/O accessors register helpers */-#define BCM_SYSPORT_IO_MACRO(name, offset) \-static inline u32 name##_readl(struct bcm_sysport_priv *priv, u32 off)	\+#define BCM_SYSPORT_IO_MACRO(name, offset)				\+static inline u32 __maybe_unused					\+name##_readl(struct bcm_sysport_priv *priv, u32 off)			\ {									\ 	u32 reg = __raw_readl(priv->base + offset + off);		\ 	return reg;							\ }									\-static inline void name##_writel(struct bcm_sysport_priv *priv,		\+static inline void __maybe_unused					\+name##_writel(struct bcm_sysport_priv *priv,				\ 				  u32 val, u32 off)			\ {									\ 	__raw_writel(val, priv->base + offset + off);			\diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.cindex bdfd53b46bc5..89796501f804 100644--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c@@ -330,27 +330,6 @@ bnx2x_vf_set_igu_info(struct bnx2x *bp, u8 igu_sb_id, u8 abs_vfid) 	BP_VFDB(bp)->vf_sbs_pool++; } -static inline void bnx2x_vf_vlan_credit(struct bnx2x *bp,-					struct bnx2x_vlan_mac_obj *obj,-					atomic_t *counter)-{-	struct list_head *pos;-	int read_lock;-	int cnt = 0;--	read_lock = bnx2x_vlan_mac_h_read_lock(bp, obj);-	if (read_lock)-		DP(BNX2X_MSG_SP, "Failed to take vlan mac read head; continuing anyway\n");--	list_for_each(pos, &obj->head)-		cnt++;--	if (!read_lock)-		bnx2x_vlan_mac_h_read_unlock(bp, obj);--	atomic_set(counter, cnt);-}- static int bnx2x_vf_vlan_mac_clear(struct bnx2x *bp, struct bnx2x_virtf *vf, 				   int qid, bool drv_only, int type) {diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.cindex a205a9ff9e17..2da327182adb 100644--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c@@ -108,24 +108,6 @@ static inline void dmadesc_set(struct bcmgenet_priv *priv, 	dmadesc_set_length_status(priv, d, val); } -static inline dma_addr_t dmadesc_get_addr(struct bcmgenet_priv *priv,-					  void __iomem *d)-{-	dma_addr_t addr;--	addr = __raw_readl(d + DMA_DESC_ADDRESS_LO);--	/* Register writes to GISB bus can take couple hundred nanoseconds-	 * and are done for each packet, save these expensive writes unless-	 * the platform is explicitly configured for 64-bits/LPAE.-	 */-#ifdef CONFIG_PHYS_ADDR_T_64BIT-	if (priv->hw_params->flags & GENET_HAS_40BITS)-		addr |= (u64)__raw_readl(d + DMA_DESC_ADDRESS_HI) << 32;-#endif-	return addr;-}- #define GENET_VER_FMT	"%1d.%1d EPHY: 0x%04x"  #define GENET_MSG_DEFAULT	(NETIF_MSG_DRV | NETIF_MSG_PROBE | \diff --git a/drivers/net/ethernet/chelsio/cxgb3/sge.c b/drivers/net/ethernet/chelsio/cxgb3/sge.cindex 1b9d154f1149..6fd3f5fe469c 100644--- a/drivers/net/ethernet/chelsio/cxgb3/sge.c+++ b/drivers/net/ethernet/chelsio/cxgb3/sge.c@@ -164,11 +164,6 @@ static u8 flit_desc_map[] = { #endif }; -static inline struct sge_qset *fl_to_qset(const struct sge_fl *q, int qidx)-{-	return container_of(q, struct sge_qset, fl[qidx]);-}- static inline struct sge_qset *rspq_to_qset(const struct sge_rspq *q) { 	return container_of(q, struct sge_qset, rspq);diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.cindex f05f0d400324..25907ff5b8b6 100644--- a/drivers/net/ethernet/chelsio/cxgb4/sge.c+++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c@@ -820,18 +820,6 @@ static inline unsigned int calc_tx_flits(const struct sk_buff *skb) }  /**- *	calc_tx_descs - calculate the number of Tx descriptors for a packet- *	@skb: the packet- *- *	Returns the number of Tx descriptors needed for the given Ethernet- *	packet, including the needed WR and CPL headers.- */-static inline unsigned int calc_tx_descs(const struct sk_buff *skb)-{-	return flits_to_desc(calc_tx_flits(skb));-}--/**  *	write_sgl - populate a scatter/gather list for a packet  *	@skb: the packet  *	@q: the Tx queue we are writing intodiff --git a/drivers/net/ethernet/intel/i40evf/i40e_adminq.c b/drivers/net/ethernet/intel/i40evf/i40e_adminq.cindex 8b0d4b255dea..d38365ffcf41 100644--- a/drivers/net/ethernet/intel/i40evf/i40e_adminq.c+++ b/drivers/net/ethernet/intel/i40evf/i40e_adminq.c@@ -31,16 +31,6 @@ #include "i40e_prototype.h"  /**- * i40e_is_nvm_update_op - return true if this is an NVM update operation- * @desc: API request descriptor- **/-static inline bool i40e_is_nvm_update_op(struct i40e_aq_desc *desc)-{-	return (desc->opcode == i40e_aqc_opc_nvm_erase) ||-	       (desc->opcode == i40e_aqc_opc_nvm_update);-}--/**  *  i40e_adminq_init_regs - Initialize AdminQ registers  *  @hw: pointer to the hardware structure  *diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.cindex 25642dee49d3..6cd900372831 100644--- a/drivers/net/ethernet/marvell/mv643xx_eth.c+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c@@ -680,11 +680,6 @@ static inline unsigned int has_tiny_unaligned_frags(struct sk_buff *skb) 	return 0; } -static inline __be16 sum16_as_be(__sum16 sum)-{-	return (__force __be16)sum;-}- static int skb_tx_csum(struct mv643xx_eth_private *mp, struct sk_buff *skb, 		       u16 *l4i_chk, u32 *command, int length) {diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.cindex 9b875d776b29..3f67be3ca1e9 100644--- a/drivers/net/ethernet/marvell/mvpp2.c+++ b/drivers/net/ethernet/marvell/mvpp2.c@@ -3909,17 +3909,6 @@ static void *mvpp2_buf_alloc(struct mvpp2_port *port, 	return data; } -/* Set pool number in a BM cookie */-static inline u32 mvpp2_bm_cookie_pool_set(u32 cookie, int pool)-{-	u32 bm;--	bm = cookie & ~(0xFF << MVPP2_BM_COOKIE_POOL_OFFS);-	bm |= ((pool & 0xFF) << MVPP2_BM_COOKIE_POOL_OFFS);--	return bm;-}- /* Get pool number from a BM cookie */ static inline int mvpp2_bm_cookie_pool_get(unsigned long cookie) {diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.cindex 02dd3a95ed8f..dcc781238b37 100644--- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx_am.c@@ -61,11 +61,6 @@ profile[MLX5_CQ_PERIOD_NUM_MODES][MLX5E_PARAMS_AM_NUM_PROFILES] = { 	MLX5_AM_CQE_PROFILES, }; -static inline struct mlx5e_cq_moder mlx5e_am_get_profile(u8 cq_period_mode, int ix)-{-	return profile[cq_period_mode][ix];-}- struct mlx5e_cq_moder mlx5e_am_get_def_profile(u8 rx_cq_period_mode) { 	int default_profile_ix;diff --git a/drivers/net/ethernet/mellanox/mlxsw/item.h b/drivers/net/ethernet/mellanox/mlxsw/item.hindex 28427f0758c7..3097dc07cb46 100644--- a/drivers/net/ethernet/mellanox/mlxsw/item.h+++ b/drivers/net/ethernet/mellanox/mlxsw/item.h@@ -384,11 +384,13 @@ static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = {			\ 	.size = {.bits = _sizebits,},						\ 	.name = #_type "_" #_cname "_" #_iname,					\ };										\-static inline u32 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf)	\+static inline u32 __maybe_unused						\+mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf)			\ {										\ 	return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname), 0);	\ }										\-static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u32 val)\+static inline void __maybe_unused						\+mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u32 val)			\ {										\ 	__mlxsw_item_set32(buf, &__ITEM_NAME(_type, _cname, _iname), 0, val);	\ }@@ -404,13 +406,13 @@ static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = {			\ 	.size = {.bits = _sizebits,},						\ 	.name = #_type "_" #_cname "_" #_iname,					\ };										\-static inline u32								\+static inline u32 __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, unsigned short index)\ {										\ 	return __mlxsw_item_get32(buf, &__ITEM_NAME(_type, _cname, _iname),	\ 				  index);					\ }										\-static inline void								\+static inline void __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, unsigned short index,	\ 					  u32 val)				\ {										\@@ -425,11 +427,13 @@ static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = {			\ 	.size = {.bits = _sizebits,},						\ 	.name = #_type "_" #_cname "_" #_iname,					\ };										\-static inline u64 mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf)	\+static inline u64 __maybe_unused						\+mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf)			\ {										\ 	return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname), 0);	\ }										\-static inline void mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u64 val)\+static inline void __maybe_unused						\+mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u64 val)			\ {										\ 	__mlxsw_item_set64(buf, &__ITEM_NAME(_type, _cname, _iname), 0,	val);	\ }@@ -445,13 +449,13 @@ static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = {			\ 	.size = {.bits = _sizebits,},						\ 	.name = #_type "_" #_cname "_" #_iname,					\ };										\-static inline u64								\+static inline u64 __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, unsigned short index)\ {										\ 	return __mlxsw_item_get64(buf, &__ITEM_NAME(_type, _cname, _iname),	\ 				  index);					\ }										\-static inline void								\+static inline void __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, unsigned short index,	\ 					  u64 val)				\ {										\@@ -465,19 +469,19 @@ static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = {			\ 	.size = {.bytes = _sizebytes,},						\ 	.name = #_type "_" #_cname "_" #_iname,					\ };										\-static inline void								\+static inline void __maybe_unused 						\ mlxsw_##_type##_##_cname##_##_iname##_memcpy_from(const char *buf, char *dst)	\ {										\ 	__mlxsw_item_memcpy_from(buf, dst,					\ 				 &__ITEM_NAME(_type, _cname, _iname), 0);	\ }										\-static inline void								\+static inline void __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_memcpy_to(char *buf, const char *src)	\ {										\ 	__mlxsw_item_memcpy_to(buf, src,					\ 			       &__ITEM_NAME(_type, _cname, _iname), 0);		\ }										\-static inline char *								\+static inline char * __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_data(char *buf)				\ {										\ 	return __mlxsw_item_data(buf, &__ITEM_NAME(_type, _cname, _iname), 0);	\@@ -492,7 +496,7 @@ static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = {			\ 	.size = {.bytes = _sizebytes,},						\ 	.name = #_type "_" #_cname "_" #_iname,					\ };										\-static inline void								\+static inline void __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_memcpy_from(const char *buf,		\ 						  unsigned short index,		\ 						  char *dst)			\@@ -500,7 +504,7 @@ mlxsw_##_type##_##_cname##_##_iname##_memcpy_from(const char *buf,		\ 	__mlxsw_item_memcpy_from(buf, dst,					\ 				 &__ITEM_NAME(_type, _cname, _iname), index);	\ }										\-static inline void								\+static inline void __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_memcpy_to(char *buf,			\ 						unsigned short index,		\ 						const char *src)		\@@ -508,7 +512,7 @@ mlxsw_##_type##_##_cname##_##_iname##_memcpy_to(char *buf,			\ 	__mlxsw_item_memcpy_to(buf, src,					\ 			       &__ITEM_NAME(_type, _cname, _iname), index);	\ }										\-static inline char *								\+static inline char * __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_data(char *buf, unsigned short index)	\ {										\ 	return __mlxsw_item_data(buf,						\@@ -523,14 +527,14 @@ static struct mlxsw_item __ITEM_NAME(_type, _cname, _iname) = {			\ 	.size = {.bytes = _sizebytes,},						\ 	.name = #_type "_" #_cname "_" #_iname,					\ };										\-static inline u8								\+static inline u8 __maybe_unused							\ mlxsw_##_type##_##_cname##_##_iname##_get(const char *buf, u16 index)		\ {										\ 	return __mlxsw_item_bit_array_get(buf,					\ 					  &__ITEM_NAME(_type, _cname, _iname),	\ 					  index);				\ }										\-static inline void								\+static inline void __maybe_unused						\ mlxsw_##_type##_##_cname##_##_iname##_set(char *buf, u16 index, u8 val)		\ {										\ 	return __mlxsw_item_bit_array_set(buf,					\diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.cindex ee1c78abab0b..0b9dcd884b25 100644--- a/drivers/net/ethernet/micrel/ksz884x.c+++ b/drivers/net/ethernet/micrel/ksz884x.c@@ -1551,15 +1551,6 @@ static void hw_turn_on_intr(struct ksz_hw *hw, u32 bit) 		hw_set_intr(hw, hw->intr_mask); } -static inline void hw_ena_intr_bit(struct ksz_hw *hw, uint interrupt)-{-	u32 read_intr;--	read_intr = readl(hw->io + KS884X_INTERRUPTS_ENABLE);-	hw->intr_set = read_intr | interrupt;-	writel(hw->intr_set, hw->io + KS884X_INTERRUPTS_ENABLE);-}- static inline void hw_read_intr(struct ksz_hw *hw, uint *status) { 	*status = readl(hw->io + KS884X_INTERRUPTS_STATUS);@@ -1928,29 +1919,6 @@ static void port_init_cnt(struct ksz_hw *hw, int port)  */  /**- * port_chk - check port register bits- * @hw: 	The hardware instance.- * @port:	The port index.- * @offset:	The offset of the port register.- * @bits:	The data bits to check.- *- * This function checks whether the specified bits of the port register are set- * or not.- *- * Return 0 if the bits are not set.- */-static int port_chk(struct ksz_hw *hw, int port, int offset, u16 bits)-{-	u32 addr;-	u16 data;--	PORT_CTRL_ADDR(port, addr);-	addr += offset;-	data = readw(hw->io + addr);-	return (data & bits) == bits;-}--/**  * port_cfg - set port register bits  * @hw: 	The hardware instance.  * @port:	The port index.@@ -1977,53 +1945,6 @@ static void port_cfg(struct ksz_hw *hw, int port, int offset, u16 bits, }  /**- * port_chk_shift - check port bit- * @hw: 	The hardware instance.- * @port:	The port index.- * @offset:	The offset of the register.- * @shift:	Number of bits to shift.- *- * This function checks whether the specified port is set in the register or- * not.- *- * Return 0 if the port is not set.- */-static int port_chk_shift(struct ksz_hw *hw, int port, u32 addr, int shift)-{-	u16 data;-	u16 bit = 1 << port;--	data = readw(hw->io + addr);-	data >>= shift;-	return (data & bit) == bit;-}--/**- * port_cfg_shift - set port bit- * @hw: 	The hardware instance.- * @port:	The port index.- * @offset:	The offset of the register.- * @shift:	Number of bits to shift.- * @set:	The flag indicating whether the port is to be set or not.- *- * This routine sets or resets the specified port in the register.- */-static void port_cfg_shift(struct ksz_hw *hw, int port, u32 addr, int shift,-	int set)-{-	u16 data;-	u16 bits = 1 << port;--	data = readw(hw->io + addr);-	bits <<= shift;-	if (set)-		data |= bits;-	else-		data &= ~bits;-	writew(data, hw->io + addr);-}--/**  * port_r8 - read byte from port register  * @hw: 	The hardware instance.  * @port:	The port index.@@ -2125,12 +2046,6 @@ static inline void port_cfg_broad_storm(struct ksz_hw *hw, int p, int set) 		KS8842_PORT_CTRL_1_OFFSET, PORT_BROADCAST_STORM, set); } -static inline int port_chk_broad_storm(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_BROADCAST_STORM);-}- /* Driver set switch broadcast storm protection at 10% rate. */ #define BROADCAST_STORM_PROTECTION_RATE	10 @@ -2283,102 +2198,6 @@ static inline void port_cfg_back_pressure(struct ksz_hw *hw, int p, int set) 		KS8842_PORT_CTRL_2_OFFSET, PORT_BACK_PRESSURE, set); } -static inline void port_cfg_force_flow_ctrl(struct ksz_hw *hw, int p, int set)-{-	port_cfg(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_FORCE_FLOW_CTRL, set);-}--static inline int port_chk_back_pressure(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_BACK_PRESSURE);-}--static inline int port_chk_force_flow_ctrl(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_FORCE_FLOW_CTRL);-}--/* Spanning Tree */--static inline void port_cfg_rx(struct ksz_hw *hw, int p, int set)-{-	port_cfg(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_RX_ENABLE, set);-}--static inline void port_cfg_tx(struct ksz_hw *hw, int p, int set)-{-	port_cfg(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_TX_ENABLE, set);-}--static inline void sw_cfg_fast_aging(struct ksz_hw *hw, int set)-{-	sw_cfg(hw, KS8842_SWITCH_CTRL_1_OFFSET, SWITCH_FAST_AGING, set);-}--static inline void sw_flush_dyn_mac_table(struct ksz_hw *hw)-{-	if (!(hw->overrides & FAST_AGING)) {-		sw_cfg_fast_aging(hw, 1);-		mdelay(1);-		sw_cfg_fast_aging(hw, 0);-	}-}--/* VLAN */--static inline void port_cfg_ins_tag(struct ksz_hw *hw, int p, int insert)-{-	port_cfg(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_INSERT_TAG, insert);-}--static inline void port_cfg_rmv_tag(struct ksz_hw *hw, int p, int remove)-{-	port_cfg(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_REMOVE_TAG, remove);-}--static inline int port_chk_ins_tag(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_INSERT_TAG);-}--static inline int port_chk_rmv_tag(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_REMOVE_TAG);-}--static inline void port_cfg_dis_non_vid(struct ksz_hw *hw, int p, int set)-{-	port_cfg(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_DISCARD_NON_VID, set);-}--static inline void port_cfg_in_filter(struct ksz_hw *hw, int p, int set)-{-	port_cfg(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_INGRESS_VLAN_FILTER, set);-}--static inline int port_chk_dis_non_vid(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_DISCARD_NON_VID);-}--static inline int port_chk_in_filter(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_INGRESS_VLAN_FILTER);-}- /* Mirroring */  static inline void port_cfg_mirror_sniffer(struct ksz_hw *hw, int p, int set)@@ -2416,28 +2235,6 @@ static void sw_init_mirror(struct ksz_hw *hw) 	sw_cfg_mirror_rx_tx(hw, 0); } -static inline void sw_cfg_unk_def_deliver(struct ksz_hw *hw, int set)-{-	sw_cfg(hw, KS8842_SWITCH_CTRL_7_OFFSET,-		SWITCH_UNK_DEF_PORT_ENABLE, set);-}--static inline int sw_cfg_chk_unk_def_deliver(struct ksz_hw *hw)-{-	return sw_chk(hw, KS8842_SWITCH_CTRL_7_OFFSET,-		SWITCH_UNK_DEF_PORT_ENABLE);-}--static inline void sw_cfg_unk_def_port(struct ksz_hw *hw, int port, int set)-{-	port_cfg_shift(hw, port, KS8842_SWITCH_CTRL_7_OFFSET, 0, set);-}--static inline int sw_chk_unk_def_port(struct ksz_hw *hw, int port)-{-	return port_chk_shift(hw, port, KS8842_SWITCH_CTRL_7_OFFSET, 0);-}- /* Priority */  static inline void port_cfg_diffserv(struct ksz_hw *hw, int p, int set)@@ -2464,30 +2261,6 @@ static inline void port_cfg_prio(struct ksz_hw *hw, int p, int set) 		KS8842_PORT_CTRL_1_OFFSET, PORT_PRIO_QUEUE_ENABLE, set); } -static inline int port_chk_diffserv(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_DIFFSERV_ENABLE);-}--static inline int port_chk_802_1p(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_802_1P_ENABLE);-}--static inline int port_chk_replace_vid(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_2_OFFSET, PORT_USER_PRIORITY_CEILING);-}--static inline int port_chk_prio(struct ksz_hw *hw, int p)-{-	return port_chk(hw, p,-		KS8842_PORT_CTRL_1_OFFSET, PORT_PRIO_QUEUE_ENABLE);-}- /**  * sw_dis_diffserv - disable switch DiffServ priority  * @hw: 	The hardware instance.@@ -2688,23 +2461,6 @@ static void sw_cfg_port_base_vlan(struct ksz_hw *hw, int port, u8 member) }  /**- * sw_get_addr - get the switch MAC address.- * @hw: 	The hardware instance.- * @mac_addr:	Buffer to store the MAC address.- *- * This function retrieves the MAC address of the switch.- */-static inline void sw_get_addr(struct ksz_hw *hw, u8 *mac_addr)-{-	int i;--	for (i = 0; i < 6; i += 2) {-		mac_addr[i] = readb(hw->io + KS8842_MAC_ADDR_0_OFFSET + i);-		mac_addr[1 + i] = readb(hw->io + KS8842_MAC_ADDR_1_OFFSET + i);-	}-}--/**  * sw_set_addr - configure switch MAC address  * @hw: 	The hardware instance.  * @mac_addr:	The MAC address.@@ -2911,56 +2667,6 @@ static inline void hw_w_phy_ctrl(struct ksz_hw *hw, int phy, u16 data) 	writew(data, hw->io + phy + KS884X_PHY_CTRL_OFFSET); } -static inline void hw_r_phy_link_stat(struct ksz_hw *hw, int phy, u16 *data)-{-	*data = readw(hw->io + phy + KS884X_PHY_STATUS_OFFSET);-}--static inline void hw_r_phy_auto_neg(struct ksz_hw *hw, int phy, u16 *data)-{-	*data = readw(hw->io + phy + KS884X_PHY_AUTO_NEG_OFFSET);-}--static inline void hw_w_phy_auto_neg(struct ksz_hw *hw, int phy, u16 data)-{-	writew(data, hw->io + phy + KS884X_PHY_AUTO_NEG_OFFSET);-}--static inline void hw_r_phy_rem_cap(struct ksz_hw *hw, int phy, u16 *data)-{-	*data = readw(hw->io + phy + KS884X_PHY_REMOTE_CAP_OFFSET);-}--static inline void hw_r_phy_crossover(struct ksz_hw *hw, int phy, u16 *data)-{-	*data = readw(hw->io + phy + KS884X_PHY_CTRL_OFFSET);-}--static inline void hw_w_phy_crossover(struct ksz_hw *hw, int phy, u16 data)-{-	writew(data, hw->io + phy + KS884X_PHY_CTRL_OFFSET);-}--static inline void hw_r_phy_polarity(struct ksz_hw *hw, int phy, u16 *data)-{-	*data = readw(hw->io + phy + KS884X_PHY_PHY_CTRL_OFFSET);-}--static inline void hw_w_phy_polarity(struct ksz_hw *hw, int phy, u16 data)-{-	writew(data, hw->io + phy + KS884X_PHY_PHY_CTRL_OFFSET);-}--static inline void hw_r_phy_link_md(struct ksz_hw *hw, int phy, u16 *data)-{-	*data = readw(hw->io + phy + KS884X_PHY_LINK_MD_OFFSET);-}--static inline void hw_w_phy_link_md(struct ksz_hw *hw, int phy, u16 data)-{-	writew(data, hw->io + phy + KS884X_PHY_LINK_MD_OFFSET);-}- /**  * hw_r_phy - read data from PHY register  * @hw: 	The hardware instance.diff --git a/drivers/net/ethernet/microchip/encx24j600-regmap.c b/drivers/net/ethernet/microchip/encx24j600-regmap.cindex 44bb04d4d21b..d5031376d5ff 100644--- a/drivers/net/ethernet/microchip/encx24j600-regmap.c+++ b/drivers/net/ethernet/microchip/encx24j600-regmap.c@@ -20,11 +20,6 @@  #include "encx24j600_hw.h" -static inline bool is_bits_set(int value, int mask)-{-	return (value & mask) == mask;-}- static int encx24j600_switch_bank(struct encx24j600_context *ctx, 				  int bank) {diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.cindex b171ed2015fe..08423700ee11 100644--- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c+++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c@@ -1175,18 +1175,6 @@ myri10ge_submit_8rx(struct mcp_kreq_ether_recv __iomem * dst, 	mb(); } -static inline void myri10ge_vlan_ip_csum(struct sk_buff *skb, __wsum hw_csum)-{-	struct vlan_hdr *vh = (struct vlan_hdr *)(skb->data);--	if ((skb->protocol == htons(ETH_P_8021Q)) &&-	    (vh->h_vlan_encapsulated_proto == htons(ETH_P_IP) ||-	     vh->h_vlan_encapsulated_proto == htons(ETH_P_IPV6))) {-		skb->csum = hw_csum;-		skb->ip_summed = CHECKSUM_COMPLETE;-	}-}- static void myri10ge_alloc_rx_pages(struct myri10ge_priv *mgp, struct myri10ge_rx_buf *rx, 			int bytes, int watchdog)diff --git a/drivers/net/ethernet/sun/cassini.c b/drivers/net/ethernet/sun/cassini.cindex e8d5ac851701..41178f17fd12 100644--- a/drivers/net/ethernet/sun/cassini.c+++ b/drivers/net/ethernet/sun/cassini.c@@ -249,12 +249,6 @@ static inline void cas_lock_tx(struct cas *cp) 		spin_lock_nested(&cp->tx_lock[i], i); } -static inline void cas_lock_all(struct cas *cp)-{-	spin_lock_irq(&cp->lock);-	cas_lock_tx(cp);-}- /* WTZ: QA was finding deadlock problems with the previous  * versions after long test runs with multiple cards per machine.  * See if replacing cas_lock_all with safer versions helps. The@@ -278,12 +272,6 @@ static inline void cas_unlock_tx(struct cas *cp) 		spin_unlock(&cp->tx_lock[i - 1]); } -static inline void cas_unlock_all(struct cas *cp)-{-	cas_unlock_tx(cp);-	spin_unlock_irq(&cp->lock);-}- #define cas_unlock_all_restore(cp, flags) \ do { \ 	struct cas *xxxcp = (cp); \diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.cindex 711fbbbc4b1f..7b4bea11dd39 100644--- a/drivers/net/ethernet/tehuti/tehuti.c+++ b/drivers/net/ethernet/tehuti/tehuti.c@@ -1369,15 +1369,6 @@ static void print_rxfd(struct rxf_desc *rxfd) /*************************************************************************  *     Tx DB                                                             *  *************************************************************************/-static inline int bdx_tx_db_size(struct txdb *db)-{-	int taken = db->wptr - db->rptr;-	if (taken < 0)-		taken = db->size + 1 + taken;	/* (size + 1) equals memsz */--	return db->size - taken;-}- /**  * __bdx_tx_db_ptr_next - helper function, increment read/write pointer + wrap  * @db: tx data basediff --git a/drivers/net/ethernet/ti/cpsw_ale.c b/drivers/net/ethernet/ti/cpsw_ale.cindex ddd43e09111e..29511f2d785a 100644--- a/drivers/net/ethernet/ti/cpsw_ale.c+++ b/drivers/net/ethernet/ti/cpsw_ale.c@@ -89,21 +89,21 @@ static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits, }  #define DEFINE_ALE_FIELD(name, start, bits)				\-static inline int cpsw_ale_get_##name(u32 *ale_entry)			\+static inline int __maybe_unused cpsw_ale_get_##name(u32 *ale_entry)	\ {									\ 	return cpsw_ale_get_field(ale_entry, start, bits);		\ }									\-static inline void cpsw_ale_set_##name(u32 *ale_entry, u32 value)	\+static inline void __maybe_unused cpsw_ale_set_##name(u32 *ale_entry, u32 value)	\ {									\ 	cpsw_ale_set_field(ale_entry, start, bits, value);		\ }  #define DEFINE_ALE_FIELD1(name, start)					\-static inline int cpsw_ale_get_##name(u32 *ale_entry, u32 bits)		\+static inline int __maybe_unused cpsw_ale_get_##name(u32 *ale_entry, u32 bits)		\ {									\ 	return cpsw_ale_get_field(ale_entry, start, bits);		\ }									\-static inline void cpsw_ale_set_##name(u32 *ale_entry, u32 value,	\+static inline void __maybe_unused cpsw_ale_set_##name(u32 *ale_entry, u32 value,	\ 		u32 bits)						\ {									\ 	cpsw_ale_set_field(ale_entry, start, bits, value);		\diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.cindex 6fe59373cba9..a71d931e2355 100644--- a/drivers/net/usb/plusb.c+++ b/drivers/net/usb/plusb.c@@ -76,12 +76,6 @@ pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index) }  static inline int-pl_clear_QuickLink_features(struct usbnet *dev, int val)-{-	return pl_vendor_req(dev, 1, (u8) val, 0);-}--static inline int pl_set_QuickLink_features(struct usbnet *dev, int val) { 	return pl_vendor_req(dev, 3, (u8) val, 0);diff --git a/drivers/net/usb/sierra_net.c b/drivers/net/usb/sierra_net.cindex 2110ab3513f0..dd912b862785 100644--- a/drivers/net/usb/sierra_net.c+++ b/drivers/net/usb/sierra_net.c@@ -369,11 +369,6 @@ static void sierra_net_set_ctx_index(struct sierra_net_data *priv, u8 ctx_ix) 		cpu_to_be16(SIERRA_NET_HIP_EXT_IP_OUT_ID); } -static inline int sierra_net_is_valid_addrlen(u8 len)-{-	return len == sizeof(struct in_addr);-}- static int sierra_net_parse_lsi(struct usbnet *dev, char *data, int datalen) { 	struct lsi_umts *lsi = (struct lsi_umts *)data;diff --git a/drivers/net/wireless/ath/ath10k/ce.c b/drivers/net/wireless/ath/ath10k/ce.cindex ee1090ca2eac..5c71fa47fd0f 100644--- a/drivers/net/wireless/ath/ath10k/ce.c+++ b/drivers/net/wireless/ath/ath10k/ce.c@@ -233,16 +233,6 @@ static inline void ath10k_ce_watermark_intr_disable(struct ath10k *ar, 			   host_ie_addr & ~CE_WATERMARK_MASK); } -static inline void ath10k_ce_error_intr_enable(struct ath10k *ar,-					       u32 ce_ctrl_addr)-{-	u32 misc_ie_addr = ath10k_pci_read32(ar,-					     ce_ctrl_addr + MISC_IE_ADDRESS);--	ath10k_pci_write32(ar, ce_ctrl_addr + MISC_IE_ADDRESS,-			   misc_ie_addr | CE_ERROR_MASK);-}- static inline void ath10k_ce_error_intr_disable(struct ath10k *ar, 						u32 ce_ctrl_addr) {diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.cindex edab4c0a900f..57b727a67c19 100644--- a/drivers/net/wireless/ath/wil6210/txrx.c+++ b/drivers/net/wireless/ath/wil6210/txrx.c@@ -61,11 +61,6 @@ static inline void wil_vring_advance_head(struct vring *vring, int n) 	vring->swhead = (vring->swhead + n) % vring->size; } -static inline int wil_vring_is_full(struct vring *vring)-{-	return wil_vring_next_tail(vring) == vring->swhead;-}- /* Used space in Tx Vring */ static inline int wil_vring_used_tx(struct vring *vring) {diff --git a/drivers/net/wireless/broadcom/b43legacy/dma.c b/drivers/net/wireless/broadcom/b43legacy/dma.cindex f9dd892b9f27..f47cf8d07a12 100644--- a/drivers/net/wireless/broadcom/b43legacy/dma.c+++ b/drivers/net/wireless/broadcom/b43legacy/dma.c@@ -140,14 +140,6 @@ static inline int next_slot(struct b43legacy_dmaring *ring, int slot) 	return slot + 1; } -static inline int prev_slot(struct b43legacy_dmaring *ring, int slot)-{-	B43legacy_WARN_ON(!(slot >= 0 && slot <= ring->nr_slots - 1));-	if (slot == 0)-		return ring->nr_slots - 1;-	return slot - 1;-}- #ifdef CONFIG_B43LEGACY_DEBUG static void update_max_used_slots(struct b43legacy_dmaring *ring, 				  int current_used_slots)@@ -226,18 +218,6 @@ return dev->dma.tx_ring1; 	return ring; } -/* Bcm4301-ring to mac80211-queue mapping */-static inline int txring_to_priority(struct b43legacy_dmaring *ring)-{-	static const u8 idx_to_prio[] =-		{ 3, 2, 1, 0, 4, 5, };--/*FIXME: have only one queue, for now */-return 0;--	return idx_to_prio[ring->index];-}-  static u16 b43legacy_dmacontroller_base(enum b43legacy_dmatype type, 					int controller_idx)diff --git a/drivers/net/wireless/broadcom/b43legacy/radio.c b/drivers/net/wireless/broadcom/b43legacy/radio.cindex 9501420340a9..c03a1d953894 100644--- a/drivers/net/wireless/broadcom/b43legacy/radio.c+++ b/drivers/net/wireless/broadcom/b43legacy/radio.c@@ -1726,23 +1726,6 @@ u16 b43legacy_radio_init2050(struct b43legacy_wldev *dev) 	return ret; } -static inline-u16 freq_r3A_value(u16 frequency)-{-	u16 value;--	if (frequency < 5091)-		value = 0x0040;-	else if (frequency < 5321)-		value = 0x0000;-	else if (frequency < 5806)-		value = 0x0080;-	else-		value = 0x0040;--	return value;-}- int b43legacy_radio_selectchannel(struct b43legacy_wldev *dev, 				  u8 channel, 				  int synthetic_pu_workaround)diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.cindex f922859acf40..350ee871a1fb 100644--- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c+++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c@@ -433,17 +433,6 @@ static inline void write_nic_byte(struct net_device *dev, u32 addr, u8 val) 	write_register_byte(dev, IPW_REG_INDIRECT_ACCESS_DATA, val); } -static inline void write_nic_auto_inc_address(struct net_device *dev, u32 addr)-{-	write_register(dev, IPW_REG_AUTOINCREMENT_ADDRESS,-		       addr & IPW_REG_INDIRECT_ADDR_MASK);-}--static inline void write_nic_dword_auto_inc(struct net_device *dev, u32 val)-{-	write_register(dev, IPW_REG_AUTOINCREMENT_DATA, val);-}- static void write_nic_memory(struct net_device *dev, u32 addr, u32 len, 				    const u8 * buf) {diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.cindex bbc579b647b6..aa1552cfe97c 100644--- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c+++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c@@ -391,19 +391,6 @@ static inline u8 _ipw_read8(struct ipw_priv *ipw, unsigned long ofs) 	_ipw_read8(ipw, ofs); \ }) -/* 16-bit direct read (low 4K) */-static inline u16 _ipw_read16(struct ipw_priv *ipw, unsigned long ofs)-{-	return readw(ipw->hw_base + ofs);-}--/* alias to 16-bit direct read (low 4K of SRAM/regs), with debug wrapper */-#define ipw_read16(ipw, ofs) ({ \-	IPW_DEBUG_IO("%s %d: read_direct16(0x%08X)\n", __FILE__, __LINE__, \-			(u32)(ofs)); \-	_ipw_read16(ipw, ofs); \-})- /* 32-bit direct read (low 4K) */ static inline u32 _ipw_read32(struct ipw_priv *ipw, unsigned long ofs) {@@ -3021,20 +3008,6 @@ static void ipw_remove_current_network(struct ipw_priv *priv) 	spin_unlock_irqrestore(&priv->ieee->lock, flags); } -/**- * Check that card is still alive.- * Reads debug register from domain0.- * If card is present, pre-defined value should- * be found there.- *- * @param priv- * @return 1 if card is present, 0 otherwise- */-static inline int ipw_alive(struct ipw_priv *priv)-{-	return ipw_read32(priv, 0x90) == 0xd55555d5;-}- /* timeout in msec, attempted in 10-msec quanta */ static int ipw_poll_bit(struct ipw_priv *priv, u32 addr, u32 mask, 			       int timeout)diff --git a/drivers/net/wireless/ti/wlcore/debugfs.c b/drivers/net/wireless/ti/wlcore/debugfs.cindex a2cb408be8aa..9a4a05728ed2 100644--- a/drivers/net/wireless/ti/wlcore/debugfs.c+++ b/drivers/net/wireless/ti/wlcore/debugfs.c@@ -129,12 +129,6 @@ static void chip_op_handler(struct wl1271 *wl, unsigned long value, }  -static inline void no_write_handler(struct wl1271 *wl,-				    unsigned long value,-				    unsigned long param)-{-}- #define WL12XX_CONF_DEBUGFS(param, conf_sub_struct,			\ 			    min_val, max_val, write_handler_locked,	\ 			    write_handler_arg)				\diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.cindex 2006fae61980..ac5d126ef85f 100644--- a/drivers/nvme/target/fc.c+++ b/drivers/nvme/target/fc.c@@ -145,20 +145,6 @@ struct nvmet_fc_tgt_assoc { 	struct kref			ref; }; --static inline int-nvmet_fc_iodnum(struct nvmet_fc_ls_iod *iodptr)-{-	return (iodptr - iodptr->tgtport->iod);-}--static inline int-nvmet_fc_fodnum(struct nvmet_fc_fcp_iod *fodptr)-{-	return (fodptr - fodptr->queue->fod);-}-- /*  * Association and Connection IDs:  *diff --git a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.cindex de0ea474fb73..f2894646a26e 100644--- a/drivers/pci/hotplug/shpchp_hpc.c+++ b/drivers/pci/hotplug/shpchp_hpc.c@@ -188,11 +188,6 @@ static inline u8 shpc_readb(struct controller *ctrl, int reg) 	return readb(ctrl->creg + reg); } -static inline void shpc_writeb(struct controller *ctrl, int reg, u8 val)-{-	writeb(val, ctrl->creg + reg);-}- static inline u16 shpc_readw(struct controller *ctrl, int reg) { 	return readw(ctrl->creg + reg);diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.cindex 5d6d9b1549bc..f6f535f78672 100644--- a/drivers/pcmcia/yenta_socket.c+++ b/drivers/pcmcia/yenta_socket.c@@ -142,15 +142,6 @@ static inline u8 exca_readb(struct yenta_socket *socket, unsigned reg) 	return val; } -static inline u8 exca_readw(struct yenta_socket *socket, unsigned reg)-{-	u16 val;-	val = readb(socket->base + 0x800 + reg);-	val |= readb(socket->base + 0x800 + reg + 1) << 8;-	debug("%04x %04x\n", socket, reg, val);-	return val;-}- static inline void exca_writeb(struct yenta_socket *socket, unsigned reg, u8 val) { 	debug("%04x %02x\n", socket, reg, val);diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.cindex 6904633cad68..61ad25f06b8c 100644--- a/drivers/phy/rockchip/phy-rockchip-pcie.c+++ b/drivers/phy/rockchip/phy-rockchip-pcie.c@@ -99,21 +99,6 @@ static inline void phy_wr_cfg(struct rockchip_pcie_phy *rk_phy, 				   PHY_CFG_WR_SHIFT)); } -static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy,-			     u32 addr)-{-	u32 val;--	regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf,-		     HIWORD_UPDATE(addr,-				   PHY_CFG_RD_MASK,-				   PHY_CFG_ADDR_SHIFT));-	regmap_read(rk_phy->reg_base,-		    rk_phy->phy_data->pcie_status,-		    &val);-	return val;-}- static int rockchip_pcie_phy_power_off(struct phy *phy) { 	struct rockchip_pcie_phy *rk_phy = phy_get_drvdata(phy);diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.cindex 3ae8066bc127..b1e05ef3c2c1 100644--- a/drivers/pinctrl/pinctrl-st.c+++ b/drivers/pinctrl/pinctrl-st.c@@ -372,11 +372,6 @@ static struct st_pio_control *st_get_pio_control( }  /* Low level functions.. */-static inline int st_gpio_bank(int gpio)-{-	return gpio/ST_GPIO_PINS_PER_BANK;-}- static inline int st_gpio_pin(int gpio) { 	return gpio%ST_GPIO_PINS_PER_BANK;diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.cindex 5c11bc708a3c..8b1088093027 100644--- a/drivers/pwm/pwm-mediatek.c+++ b/drivers/pwm/pwm-mediatek.c@@ -61,12 +61,6 @@ static inline struct mtk_pwm_chip *to_mtk_pwm_chip(struct pwm_chip *chip) 	return container_of(chip, struct mtk_pwm_chip, chip); } -static inline u32 mtk_pwm_readl(struct mtk_pwm_chip *chip, unsigned int num,-				unsigned int offset)-{-	return readl(chip->regs + 0x10 + (num * 0x40) + offset);-}- static inline void mtk_pwm_writel(struct mtk_pwm_chip *chip, 				  unsigned int num, unsigned int offset, 				  u32 value)diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.cindex 9dca53df3584..30997afe85f7 100644--- a/drivers/rtc/rtc-cmos.c+++ b/drivers/rtc/rtc-cmos.c@@ -129,11 +129,6 @@ static inline int hpet_set_periodic_freq(unsigned long freq) 	return 0; } -static inline int hpet_rtc_dropped_irq(void)-{-	return 0;-}- static inline int hpet_rtc_timer_init(void) { 	return 0;diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.cindex 1b2dcb58c0ab..62237b299fe8 100644--- a/drivers/rtc/rtc-ds1511.c+++ b/drivers/rtc/rtc-ds1511.c@@ -107,12 +107,6 @@ rtc_write(uint8_t val, uint32_t reg) 	writeb(val, ds1511_base + (reg * reg_spacing)); } -static inline void-rtc_write_alarm(uint8_t val, enum ds1511reg reg)-{-	rtc_write((val | 0x80), reg);-}- static noinline uint8_t rtc_read(enum ds1511reg reg) {diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.cindex fb06974c88c1..483aeb91ee94 100644--- a/drivers/scsi/cxgbi/libcxgbi.c+++ b/drivers/scsi/cxgbi/libcxgbi.c@@ -2241,34 +2241,6 @@ int cxgbi_set_conn_param(struct iscsi_cls_conn *cls_conn, } EXPORT_SYMBOL_GPL(cxgbi_set_conn_param); -static inline int csk_print_port(struct cxgbi_sock *csk, char *buf)-{-	int len;--	cxgbi_sock_get(csk);-	len = sprintf(buf, "%hu\n", ntohs(csk->daddr.sin_port));-	cxgbi_sock_put(csk);--	return len;-}--static inline int csk_print_ip(struct cxgbi_sock *csk, char *buf)-{-	int len;--	cxgbi_sock_get(csk);-	if (csk->csk_family == AF_INET)-		len = sprintf(buf, "%pI4",-			      &csk->daddr.sin_addr.s_addr);-	else-		len = sprintf(buf, "%pI6",-			      &csk->daddr6.sin6_addr);--	cxgbi_sock_put(csk);--	return len;-}- int cxgbi_get_ep_param(struct iscsi_endpoint *ep, enum iscsi_param param, 		       char *buf) {diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.cindex 8a1b94816419..f6699fb3c452 100644--- a/drivers/scsi/osd/osd_initiator.c+++ b/drivers/scsi/osd/osd_initiator.c@@ -62,7 +62,7 @@ MODULE_AUTHOR("Boaz Harrosh <ooo@electrozaur.com>"); MODULE_DESCRIPTION("open-osd initiator library libosd.ko"); MODULE_LICENSE("GPL"); -static inline void build_test(void)+static void __unused build_test(void) { 	/* structures were not packed */ 	BUILD_BUG_ON(sizeof(struct osd_capability) != OSD_CAP_LEN);diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.cindex 0a1723cc08cf..588b7fd7ca8b 100644--- a/drivers/scsi/qla2xxx/qla_nx.c+++ b/drivers/scsi/qla2xxx/qla_nx.c@@ -379,47 +379,6 @@ qla82xx_pci_set_crbwindow_2M(struct qla_hw_data *ha, ulong off_in, 	*off_out = (off_in & MASK(16)) + CRB_INDIRECT_2M + ha->nx_pcibase; } -static inline unsigned long-qla82xx_pci_set_crbwindow(struct qla_hw_data *ha, u64 off)-{-	scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);-	/* See if we are currently pointing to the region we want to use next */-	if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_DDR_NET)) {-		/* No need to change window. PCIX and PCIEregs are in both-		 * regs are in both windows.-		 */-		return off;-	}--	if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_PCIX_HOST2)) {-		/* We are in first CRB window */-		if (ha->curr_window != 0)-			WARN_ON(1);-		return off;-	}--	if ((off > QLA82XX_CRB_PCIX_HOST2) && (off < QLA82XX_CRB_MAX)) {-		/* We are in second CRB window */-		off = off - QLA82XX_CRB_PCIX_HOST2 + QLA82XX_CRB_PCIX_HOST;--		if (ha->curr_window != 1)-			return off;--		/* We are in the QM or direct access-		 * register region - do nothing-		 */-		if ((off >= QLA82XX_PCI_DIRECT_CRB) &&-			(off < QLA82XX_PCI_CAMQM_MAX))-			return off;-	}-	/* strange address given */-	ql_dbg(ql_dbg_p3p, vha, 0xb001,-	    "%s: Warning: unm_nic_pci_set_crbwindow "-	    "called with an unknown address(%llx).\n",-	    QLA2XXX_DRIVER_NAME, off);-	return off;-}- static int qla82xx_pci_get_crb_addr_2M(struct qla_hw_data *ha, ulong off_in, 			    void __iomem **off_out)diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.cindex e91abb327745..e0d52f0f0695 100644--- a/drivers/scsi/qla4xxx/ql4_nx.c+++ b/drivers/scsi/qla4xxx/ql4_nx.c@@ -3648,12 +3648,6 @@ flash_conf_addr(struct ql82xx_hw_data *hw, uint32_t faddr) 	return hw->flash_conf_off | faddr; } -static inline uint32_t-flash_data_addr(struct ql82xx_hw_data *hw, uint32_t faddr)-{-	return hw->flash_data_off | faddr;-}- static uint32_t * qla4_82xx_read_flash_data(struct scsi_qla_host *ha, uint32_t *dwptr,     uint32_t faddr, uint32_t length)diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.cindex 247f71b02235..7f48b8e07eb9 100644--- a/drivers/spi/spi-bcm63xx.c+++ b/drivers/spi/spi-bcm63xx.c@@ -165,16 +165,6 @@ static inline u8 bcm_spi_readb(struct bcm63xx_spi *bs, 	return readb(bs->regs + bs->reg_offsets[offset]); } -static inline u16 bcm_spi_readw(struct bcm63xx_spi *bs,-				unsigned int offset)-{-#ifdef CONFIG_CPU_BIG_ENDIAN-	return ioread16be(bs->regs + bs->reg_offsets[offset]);-#else-	return readw(bs->regs + bs->reg_offsets[offset]);-#endif-}- static inline void bcm_spi_writeb(struct bcm63xx_spi *bs, 				  u8 value, unsigned int offset) {diff --git a/drivers/staging/comedi/drivers/cb_pcidas64.c b/drivers/staging/comedi/drivers/cb_pcidas64.cindex b761f000c1dc..504ebe502eed 100644--- a/drivers/staging/comedi/drivers/cb_pcidas64.c+++ b/drivers/staging/comedi/drivers/cb_pcidas64.c@@ -238,11 +238,6 @@ enum daq_atrig_low_4020_contents { 	EXT_START_TRIG_BNC_BIT = 0x2000, }; -static inline u16 analog_trig_low_threshold_bits(u16 threshold)-{-	return threshold & 0xfff;-}- enum adc_control0_contents { 	ADC_GATE_SRC_MASK = 0x3,	/* bits that select gate */ 	ADC_SOFT_GATE_BITS = 0x1,	/* software gate */@@ -389,11 +384,6 @@ static inline u16 pipe_full_bits(u16 hw_status_bits) 	return (hw_status_bits >> 10) & 0x3; }; -static inline unsigned int dma_chain_flag_bits(u16 prepost_bits)-{-	return (prepost_bits >> 6) & 0x3;-}- static inline unsigned int adc_upper_read_ptr_code(u16 prepost_bits) { 	return (prepost_bits >> 12) & 0x3;diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.cindex cf3fc5793377..328c4169f8ad 100644--- a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c@@ -136,26 +136,6 @@  */ #define LDLM_POOL_SLV_SHIFT (10) -static inline __u64 dru(__u64 val, __u32 shift, int round_up)-{-	return (val + (round_up ? (1 << shift) - 1 : 0)) >> shift;-}--static inline __u64 ldlm_pool_slv_max(__u32 L)-{-	/*-	 * Allow to have all locks for 1 client for 10 hrs.-	 * Formula is the following: limit * 10h / 1 client.-	 */-	__u64 lim = (__u64)L *  LDLM_POOL_MAX_AGE / 1;-	return lim;-}--static inline __u64 ldlm_pool_slv_min(__u32 L)-{-	return 1;-}- enum { 	LDLM_POOL_FIRST_STAT = 0, 	LDLM_POOL_GRANTED_STAT = LDLM_POOL_FIRST_STAT,@@ -173,37 +153,6 @@ enum { };  /**- * Calculates suggested grant_step in % of available locks for passed- * \a period. This is later used in grant_plan calculations.- */-static inline int ldlm_pool_t2gsp(unsigned int t)-{-	/*-	 * This yields 1% grant step for anything below LDLM_POOL_GSP_STEP-	 * and up to 30% for anything higher than LDLM_POOL_GSP_STEP.-	 *-	 * How this will affect execution is the following:-	 *-	 * - for thread period 1s we will have grant_step 1% which good from-	 * pov of taking some load off from server and push it out to clients.-	 * This is like that because 1% for grant_step means that server will-	 * not allow clients to get lots of locks in short period of time and-	 * keep all old locks in their caches. Clients will always have to-	 * get some locks back if they want to take some new;-	 *-	 * - for thread period 10s (which is default) we will have 23% which-	 * means that clients will have enough of room to take some new locks-	 * without getting some back. All locks from this 23% which were not-	 * taken by clients in current period will contribute in SLV growing.-	 * SLV growing means more locks cached on clients until limit or grant-	 * plan is reached.-	 */-	return LDLM_POOL_MAX_GSP --		((LDLM_POOL_MAX_GSP - LDLM_POOL_MIN_GSP) >>-		 (t >> LDLM_POOL_GSP_STEP_SHIFT));-}--/**  * Recalculates next stats on passed \a pl.  *  * \pre ->pl_lock is locked.diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c b/drivers/staging/lustre/lustre/ldlm/ldlm_request.cindex 84eeaa552113..70a9c183b94f 100644--- a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c@@ -959,11 +959,6 @@ static int ldlm_cli_cancel_req(struct obd_export *exp, 	return sent ? sent : rc; } -static inline struct ldlm_pool *ldlm_imp2pl(struct obd_import *imp)-{-	return &imp->imp_obd->obd_namespace->ns_pool;-}- /**  * Update client's OBD pool related fields with new SLV and Limit from \a req.  */diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.cindex ca5040c69217..0ecb30011340 100644--- a/drivers/staging/lustre/lustre/llite/llite_lib.c+++ b/drivers/staging/lustre/lustre/llite/llite_lib.c@@ -1153,20 +1153,6 @@ static int ll_init_lsm_md(struct inode *inode, struct lustre_md *md) 	return 0; } -static inline int lli_lsm_md_eq(const struct lmv_stripe_md *lsm_md1,-				const struct lmv_stripe_md *lsm_md2)-{-	return lsm_md1->lsm_md_magic == lsm_md2->lsm_md_magic &&-	       lsm_md1->lsm_md_stripe_count == lsm_md2->lsm_md_stripe_count &&-	       lsm_md1->lsm_md_master_mdt_index ==-			lsm_md2->lsm_md_master_mdt_index &&-	       lsm_md1->lsm_md_hash_type == lsm_md2->lsm_md_hash_type &&-	       lsm_md1->lsm_md_layout_version ==-			lsm_md2->lsm_md_layout_version &&-	       !strcmp(lsm_md1->lsm_md_pool_name,-		       lsm_md2->lsm_md_pool_name);-}- static int ll_update_lsm_md(struct inode *inode, struct lustre_md *md) { 	struct ll_inode_info *lli = ll_i2info(inode);diff --git a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.cindex 9456a1825918..4293767f090c 100644--- a/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c+++ b/drivers/staging/lustre/lustre/ptlrpc/pack_generic.c@@ -723,26 +723,6 @@ char *lustre_msg_string(struct lustre_msg *m, u32 index, u32 max_len) 	return str; } -/* Wrap up the normal fixed length cases */-static inline void *__lustre_swab_buf(struct lustre_msg *msg, u32 index,-				      u32 min_size, void *swabber)-{-	void *ptr = NULL;--	switch (msg->lm_magic) {-	case LUSTRE_MSG_MAGIC_V2:-		ptr = lustre_msg_buf_v2(msg, index, min_size);-		break;-	default:-		CERROR("incorrect message magic: %08x\n", msg->lm_magic);-	}--	if (ptr && swabber)-		((void (*)(void *))swabber)(ptr);--	return ptr;-}- static inline struct ptlrpc_body *lustre_msg_ptlrpc_body(struct lustre_msg *msg) { 	return lustre_msg_buf_v2(msg, MSG_PTLRPC_BODY_OFF,diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.cindex 7a31510f0524..f41e12677a31 100644--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c@@ -2085,62 +2085,6 @@ int ieee80211_parse_info_param(struct ieee80211_device *ieee, 	return 0; } -static inline u8 ieee80211_SignalStrengthTranslate(-	u8  CurrSS-	)-{-	u8 RetSS;--	// Step 1. Scale mapping.-	if(CurrSS >= 71 && CurrSS <= 100)-	{-		RetSS = 90 + ((CurrSS - 70) / 3);-	}-	else if(CurrSS >= 41 && CurrSS <= 70)-	{-		RetSS = 78 + ((CurrSS - 40) / 3);-	}-	else if(CurrSS >= 31 && CurrSS <= 40)-	{-		RetSS = 66 + (CurrSS - 30);-	}-	else if(CurrSS >= 21 && CurrSS <= 30)-	{-		RetSS = 54 + (CurrSS - 20);-	}-	else if(CurrSS >= 5 && CurrSS <= 20)-	{-		RetSS = 42 + (((CurrSS - 5) * 2) / 3);-	}-	else if(CurrSS == 4)-	{-		RetSS = 36;-	}-	else if(CurrSS == 3)-	{-		RetSS = 27;-	}-	else if(CurrSS == 2)-	{-		RetSS = 18;-	}-	else if(CurrSS == 1)-	{-		RetSS = 9;-	}-	else-	{-		RetSS = CurrSS;-	}-	//RT_TRACE(COMP_DBG, DBG_LOUD, ("##### After Mapping:  LastSS: %d, CurrSS: %d, RetSS: %d\n", LastSS, CurrSS, RetSS));--	// Step 2. Smoothing.--	//RT_TRACE(COMP_DBG, DBG_LOUD, ("$$$$$ After Smoothing:  LastSS: %d, CurrSS: %d, RetSS: %d\n", LastSS, CurrSS, RetSS));--	return RetSS;-}- /* 0-100 index */ static long ieee80211_translate_todbm(u8 signal_strength_index) {diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.cindex 85aba05acbc1..4a206fb82958 100644--- a/drivers/staging/rts5208/xd.c+++ b/drivers/staging/rts5208/xd.c@@ -42,13 +42,6 @@ static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code) 	xd_card->err_code = err_code; } -static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code)-{-	struct xd_info *xd_card = &chip->xd_card;--	return (xd_card->err_code == err_code);-}- static int xd_set_init_para(struct rtsx_chip *chip) { 	struct xd_info *xd_card = &chip->xd_card;diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c b/drivers/thermal/ti-soc-thermal/ti-thermal-common.cindex c211a8e4a210..1face848440f 100644--- a/drivers/thermal/ti-soc-thermal/ti-thermal-common.c+++ b/drivers/thermal/ti-soc-thermal/ti-thermal-common.c@@ -120,14 +120,6 @@ static inline int __ti_thermal_get_temp(void *devdata, int *temp) 	return ret; } -static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal,-				      int *temp)-{-	struct ti_thermal_data *data = thermal->devdata;--	return __ti_thermal_get_temp(data, temp);-}- static int __ti_thermal_get_trend(void *p, int trip, enum thermal_trend *trend) { 	struct ti_thermal_data *data = p;diff --git a/drivers/tty/isicom.c b/drivers/tty/isicom.cindex b70187b46d9d..09db82e35f37 100644--- a/drivers/tty/isicom.c+++ b/drivers/tty/isicom.c@@ -141,12 +141,6 @@ #define InterruptTheCard(base) outw(0, (base) + 0xc) #define ClearInterrupt(base) inw((base) + 0x0a) -#ifdef DEBUG-#define isicom_paranoia_check(a, b, c) __isicom_paranoia_check((a), (b), (c))-#else-#define isicom_paranoia_check(a, b, c) 0-#endif- static int isicom_probe(struct pci_dev *, const struct pci_device_id *); static void isicom_remove(struct pci_dev *); @@ -373,10 +367,12 @@ static void drop_dtr_rts(struct isi_port *port)  *	ISICOM Driver specific routines ...  *  */--static inline int __isicom_paranoia_check(struct isi_port const *port,+static inline int isicom_paranoia_check(struct isi_port const *port, 	char *name, const char *routine) {+	if (!IS_ENABLED(DEBUG))+		return 0;+ 	if (!port) { 		pr_warn("Warning: bad isicom magic for dev %s in %s\n", 			name, routine);diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.cindex 92606b1e55bd..16b37a5a2c1c 100644--- a/drivers/tty/serial/imx.c+++ b/drivers/tty/serial/imx.c@@ -297,20 +297,6 @@ static inline int is_imx1_uart(struct imx_port *sport) 	return sport->devdata->devtype == IMX1_UART; } -static inline int is_imx21_uart(struct imx_port *sport)-{-	return sport->devdata->devtype == IMX21_UART;-}--static inline int is_imx53_uart(struct imx_port *sport)-{-	return sport->devdata->devtype == IMX53_UART;-}--static inline int is_imx6q_uart(struct imx_port *sport)-{-	return sport->devdata->devtype == IMX6Q_UART;-} /*  * Save and restore functions for UCR1, UCR2 and UCR3 registers  */diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.cindex 8aca18c4cdea..82f204ee1b05 100644--- a/drivers/tty/serial/samsung.c+++ b/drivers/tty/serial/samsung.c@@ -1130,19 +1130,6 @@ static void s3c24xx_serial_pm(struct uart_port *port, unsigned int level,  #define MAX_CLK_NAME_LENGTH 15 -static inline int s3c24xx_serial_getsource(struct uart_port *port)-{-	struct s3c24xx_uart_info *info = s3c24xx_port_to_info(port);-	unsigned int ucon;--	if (info->num_clks == 1)-		return 0;--	ucon = rd_regl(port, S3C2410_UCON);-	ucon &= info->clksel_mask;-	return ucon >> info->clksel_shift;-}- static void s3c24xx_serial_setsource(struct uart_port *port, 			unsigned int clk_sel) {@@ -1993,6 +1980,19 @@ s3c24xx_port_configured(unsigned int ucon) 	return (ucon & 0xf) != 0; } +static inline int s3c24xx_serial_getsource(struct uart_port *port)+{+	struct s3c24xx_uart_info *info = s3c24xx_port_to_info(port);+	unsigned int ucon;++	if (info->num_clks == 1)+		return 0;++	ucon = rd_regl(port, S3C2410_UCON);+	ucon &= info->clksel_mask;+	return ucon >> info->clksel_shift;+}+ #ifdef CONFIG_CONSOLE_POLL /*  * Console polling routines for writing and reading from the uart whilediff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.cindex 94ea9fff13e6..2c75624cda1f 100644--- a/drivers/usb/host/ehci-omap.c+++ b/drivers/usb/host/ehci-omap.c@@ -76,11 +76,6 @@ static inline void ehci_write(void __iomem *base, u32 reg, u32 val) 	__raw_writel(val, base + reg); } -static inline u32 ehci_read(void __iomem *base, u32 reg)-{-	return __raw_readl(base + reg);-}- /* configure so an HC device and id are always provided */ /* always called with process context; sleeping is OK */ diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.cindex fd2a11473be7..699beda39a57 100644--- a/drivers/usb/host/sl811-hcd.c+++ b/drivers/usb/host/sl811-hcd.c@@ -584,6 +584,7 @@ done(struct sl811 *sl811, struct sl811h_ep *ep, u8 bank) 		finish_request(sl811, ep, urb, urbstat); } +#ifdef QUIRK2 static inline u8 checkdone(struct sl811 *sl811) { 	u8	ctl;@@ -615,6 +616,7 @@ static inline u8 checkdone(struct sl811 *sl811) #endif 	return irqstat; }+#endif  static irqreturn_t sl811h_irq(struct usb_hcd *hcd) {diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.cindex 43d52931b5bf..cb5cb9f6e170 100644--- a/drivers/usb/host/u132-hcd.c+++ b/drivers/usb/host/u132-hcd.c@@ -221,12 +221,6 @@ struct u132 { #define u132_write_pcimem(u132, member, data) \ 	usb_ftdi_elan_write_pcimem(u132->platform_dev, offsetof(struct \ 	ohci_regs, member), 0, data);-static inline struct u132 *udev_to_u132(struct u132_udev *udev)-{-	u8 udev_number = udev->udev_number;-	return container_of(udev, struct u132, udev[udev_number]);-}- static inline struct u132 *hcd_to_u132(struct usb_hcd *hcd) { 	return (struct u132 *)(hcd->hcd_priv);diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.cindex dbe617a735d8..74743421dd4e 100644--- a/drivers/usb/musb/musb_host.c+++ b/drivers/usb/musb/musb_host.c@@ -1558,11 +1558,12 @@ static int musb_rx_dma_iso_cppi41(struct dma_controller *dma, 	return res; } #else-static inline int musb_rx_dma_iso_cppi41(struct dma_controller *dma,-					 struct musb_hw_ep *hw_ep,-					 struct musb_qh *qh,-					 struct urb *urb,-					 size_t len)+static inline int __maybe_unused+musb_rx_dma_iso_cppi41(struct dma_controller *dma,+		       struct musb_hw_ep *hw_ep,+		       struct musb_qh *qh,+		       struct urb *urb,+		       size_t len) { 	return false; }diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.cindex 60e17d1444c3..3cdc24230938 100644--- a/drivers/usb/serial/quatech2.c+++ b/drivers/usb/serial/quatech2.c@@ -180,14 +180,6 @@ static inline int qt2_control_msg(struct usb_device *dev, 			       NULL, 0, QT2_USB_TIMEOUT); } -static inline int qt2_setdevice(struct usb_device *dev, u8 *data)-{-	u16 x = ((u16) (data[1] << 8) | (u16) (data[0]));--	return qt2_control_msg(dev, QT_SET_GET_DEVICE, x, 0);-}-- static inline int qt2_getregister(struct usb_device *dev, 				  u8 uart, 				  u8 reg,diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.cindex 12ded23f1aaf..f5d480645a1f 100644--- a/drivers/video/console/fbcon.c+++ b/drivers/video/console/fbcon.c@@ -118,12 +118,12 @@ static int fbcon_has_console_bind; #ifdef CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY static int map_override; -static inline void fbcon_map_override(void)+static inline void __maybe_unused fbcon_map_override(void) { 	map_override = 1; } #else-static inline void fbcon_map_override(void)+static inline void __maybe_unused fbcon_map_override(void) { } #endif /* CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY */diff --git a/drivers/video/fbdev/arkfb.c b/drivers/video/fbdev/arkfb.cindex 6a317de7082c..0cd67444f254 100644--- a/drivers/video/fbdev/arkfb.c+++ b/drivers/video/fbdev/arkfb.c@@ -318,18 +318,6 @@ struct dac_info };  -static inline u8 dac_read_reg(struct dac_info *info, u8 reg)-{-	u8 code[2] = {reg, 0};-	info->dac_read_regs(info->data, code, 1);-	return code[1];-}--static inline void dac_read_regs(struct dac_info *info, u8 *code, int count)-{-	info->dac_read_regs(info->data, code, count);-}- static inline void dac_write_reg(struct dac_info *info, u8 reg, u8 val) { 	u8 code[2] = {reg, val};diff --git a/drivers/video/fbdev/aty/aty128fb.c b/drivers/video/fbdev/aty/aty128fb.cindex fa07242a78d2..3da2afe9e183 100644--- a/drivers/video/fbdev/aty/aty128fb.c+++ b/drivers/video/fbdev/aty/aty128fb.c@@ -544,12 +544,6 @@ static inline void _aty_st_le32(volatile unsigned int regindex, u32 val, 	writel (val, par->regbase + regindex); } -static inline u8 _aty_ld_8(unsigned int regindex,-			   const struct aty128fb_par *par)-{-	return readb (par->regbase + regindex);-}- static inline void _aty_st_8(unsigned int regindex, u8 val, 			     const struct aty128fb_par *par) {@@ -558,7 +552,6 @@ static inline void _aty_st_8(unsigned int regindex, u8 val,  #define aty_ld_le32(regindex)		_aty_ld_le32(regindex, par) #define aty_st_le32(regindex, val)	_aty_st_le32(regindex, val, par)-#define aty_ld_8(regindex)		_aty_ld_8(regindex, par) #define aty_st_8(regindex, val)		_aty_st_8(regindex, val, par)      /*diff --git a/drivers/video/fbdev/neofb.c b/drivers/video/fbdev/neofb.cindex db023a97d1ea..e3d9db9fb0b6 100644--- a/drivers/video/fbdev/neofb.c+++ b/drivers/video/fbdev/neofb.c@@ -142,11 +142,6 @@ static biosMode bios32[] = { }; #endif -static inline void write_le32(int regindex, u32 val, const struct neofb_par *par)-{-	writel(val, par->neo2200 + par->cursorOff + regindex);-}- static int neoFindMode(int xres, int yres, int depth) { 	int xres_s;diff --git a/drivers/video/fbdev/tridentfb.c b/drivers/video/fbdev/tridentfb.cindex 8a5bbc13082e..c1a0a65df988 100644--- a/drivers/video/fbdev/tridentfb.c+++ b/drivers/video/fbdev/tridentfb.c@@ -1126,11 +1126,6 @@ static inline void shadowmode_on(struct tridentfb_par *par) 	write3CE(par, CyberControl, read3CE(par, CyberControl) | 0x81); } -static inline void shadowmode_off(struct tridentfb_par *par)-{-	write3CE(par, CyberControl, read3CE(par, CyberControl) & 0x7E);-}- /* Set the hardware to the requested video mode */ static int tridentfb_set_par(struct fb_info *info) {diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.cindex 6ed97596ca80..620f8c74a033 100644--- a/drivers/watchdog/s3c2410_wdt.c+++ b/drivers/watchdog/s3c2410_wdt.c@@ -209,11 +209,6 @@ static inline unsigned int s3c2410wdt_max_timeout(struct clk *clock) 				       / S3C2410_WTCON_MAXDIV); } -static inline struct s3c2410_wdt *freq_to_wdt(struct notifier_block *nb)-{-	return container_of(nb, struct s3c2410_wdt, freq_transition);-}- static int s3c2410wdt_mask_and_disable_reset(struct s3c2410_wdt *wdt, bool mask) { 	int ret;@@ -305,11 +300,6 @@ static int s3c2410wdt_start(struct watchdog_device *wdd) 	return 0; } -static inline int s3c2410wdt_is_running(struct s3c2410_wdt *wdt)-{-	return readl(wdt->reg_base + S3C2410_WTCON) & S3C2410_WTCON_ENABLE;-}- static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd, unsigned timeout) { 	struct s3c2410_wdt *wdt = watchdog_get_drvdata(wdd);@@ -424,6 +414,10 @@ static irqreturn_t s3c2410wdt_irq(int irqno, void *param) }  #ifdef CONFIG_ARM_S3C24XX_CPUFREQ+static inline int s3c2410wdt_is_running(struct s3c2410_wdt *wdt)+{+	return readl(wdt->reg_base + S3C2410_WTCON) & S3C2410_WTCON_ENABLE;+}  static int s3c2410wdt_cpufreq_transition(struct notifier_block *nb, 					  unsigned long val, void *data)diff --git a/fs/dlm/lock.c b/fs/dlm/lock.cindex d4aaddec1b16..d257d700146b 100644--- a/fs/dlm/lock.c+++ b/fs/dlm/lock.c@@ -237,11 +237,6 @@ static inline int is_altmode(struct dlm_lkb *lkb) 	return (lkb->lkb_sbflags & DLM_SBF_ALTMODE); } -static inline int is_granted(struct dlm_lkb *lkb)-{-	return (lkb->lkb_status == DLM_LKSTS_GRANTED);-}- static inline int is_remote(struct dlm_rsb *r) { 	DLM_ASSERT(r->res_nodeid >= 0, dlm_print_rsb(r););diff --git a/fs/lockd/xdr.c b/fs/lockd/xdr.cindex 5b651daad518..2f129741c870 100644--- a/fs/lockd/xdr.c+++ b/fs/lockd/xdr.c@@ -104,12 +104,6 @@ nlm_decode_oh(__be32 *p, struct xdr_netobj *oh) 	return xdr_decode_netobj(p, oh); } -static inline __be32 *-nlm_encode_oh(__be32 *p, struct xdr_netobj *oh)-{-	return xdr_encode_netobj(p, oh);-}- static __be32 * nlm_decode_lock(__be32 *p, struct nlm_lock *lock) {diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.cindex dfbcd4067541..1924e16f6be7 100644--- a/fs/nfsd/nfs4state.c+++ b/fs/nfsd/nfs4state.c@@ -5356,15 +5356,6 @@ nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, 	return status; } -static inline u64-end_offset(u64 start, u64 len)-{-	u64 end;--	end = start + len;-	return end >= start ? end: NFS4_MAX_UINT64;-}- /* last octet in a range */ static inline u64 last_byte_offset(u64 start, u64 len)diff --git a/fs/ocfs2/dlm/dlmrecovery.c b/fs/ocfs2/dlm/dlmrecovery.cindex 908b05942282..11c38eb1a6ac 100644--- a/fs/ocfs2/dlm/dlmrecovery.c+++ b/fs/ocfs2/dlm/dlmrecovery.c@@ -141,13 +141,6 @@ static inline void __dlm_reset_recovery(struct dlm_ctxt *dlm) 	dlm_set_reco_master(dlm, O2NM_INVALID_NODE_NUM); } -static inline void dlm_reset_recovery(struct dlm_ctxt *dlm)-{-	spin_lock(&dlm->spinlock);-	__dlm_reset_recovery(dlm);-	spin_unlock(&dlm->spinlock);-}- /* Worker function used during recovery. */ void dlm_dispatch_work(struct work_struct *work) {diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.cindex 6ad3533940ba..3e345ebe755b 100644--- a/fs/ocfs2/suballoc.c+++ b/fs/ocfs2/suballoc.c@@ -79,8 +79,6 @@ static u64 ocfs2_group_from_res(struct ocfs2_suballoc_result *res) 	return ocfs2_which_suballoc_group(res->sr_blkno, res->sr_bit_offset); } -static inline void ocfs2_debug_bg(struct ocfs2_group_desc *bg);-static inline void ocfs2_debug_suballoc_inode(struct ocfs2_dinode *fe); static inline u16 ocfs2_find_victim_chain(struct ocfs2_chain_list *cl); static int ocfs2_block_group_fill(handle_t *handle, 				  struct inode *alloc_inode,@@ -2627,53 +2625,6 @@ int ocfs2_release_clusters(handle_t *handle, 				    _ocfs2_clear_bit); } -static inline void ocfs2_debug_bg(struct ocfs2_group_desc *bg)-{-	printk("Block Group:\n");-	printk("bg_signature:       %s\n", bg->bg_signature);-	printk("bg_size:            %u\n", bg->bg_size);-	printk("bg_bits:            %u\n", bg->bg_bits);-	printk("bg_free_bits_count: %u\n", bg->bg_free_bits_count);-	printk("bg_chain:           %u\n", bg->bg_chain);-	printk("bg_generation:      %u\n", le32_to_cpu(bg->bg_generation));-	printk("bg_next_group:      %llu\n",-	       (unsigned long long)bg->bg_next_group);-	printk("bg_parent_dinode:   %llu\n",-	       (unsigned long long)bg->bg_parent_dinode);-	printk("bg_blkno:           %llu\n",-	       (unsigned long long)bg->bg_blkno);-}--static inline void ocfs2_debug_suballoc_inode(struct ocfs2_dinode *fe)-{-	int i;--	printk("Suballoc Inode %llu:\n", (unsigned long long)fe->i_blkno);-	printk("i_signature:                  %s\n", fe->i_signature);-	printk("i_size:                       %llu\n",-	       (unsigned long long)fe->i_size);-	printk("i_clusters:                   %u\n", fe->i_clusters);-	printk("i_generation:                 %u\n",-	       le32_to_cpu(fe->i_generation));-	printk("id1.bitmap1.i_used:           %u\n",-	       le32_to_cpu(fe->id1.bitmap1.i_used));-	printk("id1.bitmap1.i_total:          %u\n",-	       le32_to_cpu(fe->id1.bitmap1.i_total));-	printk("id2.i_chain.cl_cpg:           %u\n", fe->id2.i_chain.cl_cpg);-	printk("id2.i_chain.cl_bpc:           %u\n", fe->id2.i_chain.cl_bpc);-	printk("id2.i_chain.cl_count:         %u\n", fe->id2.i_chain.cl_count);-	printk("id2.i_chain.cl_next_free_rec: %u\n",-	       fe->id2.i_chain.cl_next_free_rec);-	for(i = 0; i < fe->id2.i_chain.cl_next_free_rec; i++) {-		printk("fe->id2.i_chain.cl_recs[%d].c_free:  %u\n", i,-		       fe->id2.i_chain.cl_recs[i].c_free);-		printk("fe->id2.i_chain.cl_recs[%d].c_total: %u\n", i,-		       fe->id2.i_chain.cl_recs[i].c_total);-		printk("fe->id2.i_chain.cl_recs[%d].c_blkno: %llu\n", i,-		       (unsigned long long)fe->id2.i_chain.cl_recs[i].c_blkno);-	}-}- /*  * For a given allocation, determine which allocators will need to be  * accessed, and lock them, reserving the appropriate number of bits.diff --git a/include/linux/interval_tree_generic.h b/include/linux/interval_tree_generic.hindex 58370e1862ad..7ccd154326e4 100644--- a/include/linux/interval_tree_generic.h+++ b/include/linux/interval_tree_generic.h@@ -65,7 +65,8 @@ RB_DECLARE_CALLBACKS(static, ITPREFIX ## _augment, ITSTRUCT, ITRB,	      \ 									      \ /* Insert / remove interval nodes from the tree */			      \ 									      \-ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node, struct rb_root *root)	      \+ITSTATIC void __maybe_unused						      \+ITPREFIX ## _insert(ITSTRUCT *node, struct rb_root *root)		      \ {									      \ 	struct rb_node **link = &root->rb_node, *rb_parent = NULL;	      \ 	ITTYPE start = ITSTART(node), last = ITLAST(node);		      \@@ -152,7 +153,7 @@ ITPREFIX ## _iter_first(struct rb_root *root, ITTYPE start, ITTYPE last)      \ 	return ITPREFIX ## _subtree_search(node, start, last);		      \ }									      \ 									      \-ITSTATIC ITSTRUCT *							      \+ITSTATIC ITSTRUCT * __maybe_unused					      \ ITPREFIX ## _iter_next(ITSTRUCT *node, ITTYPE start, ITTYPE last)	      \ {									      \ 	struct rb_node *rb = node->ITRB.rb_right, *prev;		      \diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.cindex ca8376e5008c..7c72a4e3d19e 100644--- a/kernel/cgroup/cpuset.c+++ b/kernel/cgroup/cpuset.c@@ -150,19 +150,6 @@ static inline struct cpuset *parent_cs(struct cpuset *cs) 	return css_cs(cs->css.parent); } -#ifdef CONFIG_NUMA-static inline bool task_has_mempolicy(struct task_struct *task)-{-	return task->mempolicy;-}-#else-static inline bool task_has_mempolicy(struct task_struct *task)-{-	return false;-}-#endif-- /* bits in struct cpuset flags field */ typedef enum { 	CS_ONLINE,diff --git a/kernel/cpu.c b/kernel/cpu.cindex 7435ffc6163b..d0f5f54aa087 100644--- a/kernel/cpu.c+++ b/kernel/cpu.c@@ -562,30 +562,6 @@ void clear_tasks_mm_cpumask(int cpu) 	rcu_read_unlock(); } -static inline void check_for_tasks(int dead_cpu)-{-	struct task_struct *g, *p;--	read_lock(&tasklist_lock);-	for_each_process_thread(g, p) {-		if (!p->on_rq)-			continue;-		/*-		 * We do the check with unlocked task_rq(p)->lock.-		 * Order the reading to do not warn about a task,-		 * which was running on this cpu in the past, and-		 * it's just been woken on another cpu.-		 */-		rmb();-		if (task_cpu(p) != dead_cpu)-			continue;--		pr_warn("Task %s (pid=%d) is on cpu %d (state=%ld, flags=%x)\n",-			p->comm, task_pid_nr(p), dead_cpu, p->state, p->flags);-	}-	read_unlock(&tasklist_lock);-}- /* Take this CPU down. */ static int take_cpu_down(void *_param) {diff --git a/kernel/locking/osq_lock.c b/kernel/locking/osq_lock.cindex a3167941093b..48900d6aed51 100644--- a/kernel/locking/osq_lock.c+++ b/kernel/locking/osq_lock.c@@ -21,7 +21,7 @@ static inline int encode_cpu(int cpu_nr) 	return cpu_nr + 1; } -static inline int node_cpu(struct optimistic_spin_node *node)+static inline int __maybe_unused node_cpu(struct optimistic_spin_node *node) { 	return node->cpu - 1; }diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.cindex 28cd09e635ed..e0503e42ba20 100644--- a/kernel/locking/rtmutex.c+++ b/kernel/locking/rtmutex.c@@ -59,12 +59,6 @@ rt_mutex_set_owner(struct rt_mutex *lock, struct task_struct *owner) 	lock->owner = (struct task_struct *)val; } -static inline void clear_rt_mutex_waiters(struct rt_mutex *lock)-{-	lock->owner = (struct task_struct *)-			((unsigned long)lock->owner & ~RT_MUTEX_HAS_WAITERS);-}- static void fixup_rt_mutex_waiters(struct rt_mutex *lock) { 	unsigned long owner, *p = (unsigned long *) &lock->owner;@@ -159,6 +153,12 @@ static inline void mark_rt_mutex_waiters(struct rt_mutex *lock) 				 owner | RT_MUTEX_HAS_WAITERS) != owner); } +static inline void clear_rt_mutex_waiters(struct rt_mutex *lock)+{+	lock->owner = (struct task_struct *)+			((unsigned long)lock->owner & ~RT_MUTEX_HAS_WAITERS);+}+ /*  * Safe fastpath aware unlock:  * 1) Clear the waiters bitdiff --git a/kernel/sched/topology.c b/kernel/sched/topology.cindex 79895aec281e..7a7eaaf33e4d 100644--- a/kernel/sched/topology.c+++ b/kernel/sched/topology.c@@ -24,7 +24,7 @@ static int __init sched_debug_setup(char *str) } early_param("sched_debug", sched_debug_setup); -static inline bool sched_debug(void)+static inline bool __maybe_unused sched_debug(void) { 	return sched_debug_enabled; }@@ -147,7 +147,7 @@ static void sched_domain_debug(struct sched_domain *sd, int cpu)  # define sched_debug_enabled 0 # define sched_domain_debug(sd, cpu) do { } while (0)-static inline bool sched_debug(void)+static inline bool __maybe_unused sched_debug(void) { 	return false; }diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.cindex 1296f73111c3..cca0a6647990 100644--- a/kernel/time/hrtimer.c+++ b/kernel/time/hrtimer.c@@ -408,11 +408,6 @@ static inline void debug_hrtimer_deactivate(struct hrtimer *timer) 	debug_object_deactivate(timer, &hrtimer_debug_descr); } -static inline void debug_hrtimer_free(struct hrtimer *timer)-{-	debug_object_free(timer, &hrtimer_debug_descr);-}- static void __hrtimer_init(struct hrtimer *timer, clockid_t clock_id, 			   enum hrtimer_mode mode); diff --git a/kernel/time/timer.c b/kernel/time/timer.cindex 152a706ef8b8..10c23d894731 100644--- a/kernel/time/timer.c+++ b/kernel/time/timer.c@@ -696,11 +696,6 @@ static inline void debug_timer_deactivate(struct timer_list *timer) 	debug_object_deactivate(timer, &timer_debug_descr); } -static inline void debug_timer_free(struct timer_list *timer)-{-	debug_object_free(timer, &timer_debug_descr);-}- static inline void debug_timer_assert_init(struct timer_list *timer) { 	debug_object_assert_init(timer, &timer_debug_descr);diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.cindex 4ae268e687fe..a6b87582c4ff 100644--- a/kernel/trace/ring_buffer.c+++ b/kernel/trace/ring_buffer.c@@ -1800,12 +1800,6 @@ void ring_buffer_change_overwrite(struct ring_buffer *buffer, int val) } EXPORT_SYMBOL_GPL(ring_buffer_change_overwrite); -static __always_inline void *-__rb_data_page_index(struct buffer_data_page *bpage, unsigned index)-{-	return bpage->data + index;-}- static __always_inline void *__rb_page_index(struct buffer_page *bpage, unsigned index) { 	return bpage->page->data + index;diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.cindex 7758bc0617cb..7be148fd02e6 100644--- a/kernel/trace/trace_irqsoff.c+++ b/kernel/trace/trace_irqsoff.c@@ -60,10 +60,6 @@ irq_trace(void) static int irqsoff_display_graph(struct trace_array *tr, int set); # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) #else-static inline int irqsoff_display_graph(struct trace_array *tr, int set)-{-	return -EINVAL;-} # define is_graph(tr) false #endif diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.cindex ddec53b67646..83154cf36b60 100644--- a/kernel/trace/trace_sched_wakeup.c+++ b/kernel/trace/trace_sched_wakeup.c@@ -41,10 +41,6 @@ static int save_flags; static int wakeup_display_graph(struct trace_array *tr, int set); # define is_graph(tr) ((tr)->trace_flags & TRACE_ITER_DISPLAY_GRAPH) #else-static inline int wakeup_display_graph(struct trace_array *tr, int set)-{-	return 0;-} # define is_graph(tr) false #endif diff --git a/lib/lz4/lz4defs.h b/lib/lz4/lz4defs.hindex 00a0b58a0871..070509801cb7 100644--- a/lib/lz4/lz4defs.h+++ b/lib/lz4/lz4defs.h@@ -38,7 +38,7 @@ #include <asm/unaligned.h> #include <linux/string.h>	 /* memset, memcpy */ -#define FORCE_INLINE __always_inline+#define FORCE_INLINE __always_inline __maybe_unused  /*-************************************  *	Basic Typesdiff --git a/lib/zlib_inflate/inffast.c b/lib/zlib_inflate/inffast.cindex 2c13ecc5bb2c..05a6d9626d9f 100644--- a/lib/zlib_inflate/inffast.c+++ b/lib/zlib_inflate/inffast.c@@ -27,7 +27,7 @@ union uu { };  /* Endian independed version */-static inline unsigned short+static inline unsigned short __maybe_unused get_unaligned16(const unsigned short *p) { 	union uu  mm;diff --git a/mm/memcontrol.c b/mm/memcontrol.cindex 8d50a2c00844..34040b52b42a 100644--- a/mm/memcontrol.c+++ b/mm/memcontrol.c@@ -4082,11 +4082,6 @@ static void mem_cgroup_id_put_many(struct mem_cgroup *memcg, unsigned int n) 	} } -static inline void mem_cgroup_id_get(struct mem_cgroup *memcg)-{-	mem_cgroup_id_get_many(memcg, 1);-}- static inline void mem_cgroup_id_put(struct mem_cgroup *memcg) { 	mem_cgroup_id_put_many(memcg, 1);diff --git a/mm/slub.c b/mm/slub.cindex b9c01efc8fd7..1bd799767e6c 100644--- a/mm/slub.c+++ b/mm/slub.c@@ -1313,12 +1313,6 @@ static inline void dec_slabs_node(struct kmem_cache *s, int node,  * Hooks for other subsystems that check memory allocations. In a typical  * production configuration these hooks all should produce no code at all.  */-static inline void kmalloc_large_node_hook(void *ptr, size_t size, gfp_t flags)-{-	kmemleak_alloc(ptr, size, 1, flags);-	kasan_kmalloc_large(ptr, size, flags);-}- static inline void kfree_hook(const void *x) { 	kmemleak_free(x);@@ -1942,12 +1936,12 @@ static inline unsigned long next_tid(unsigned long tid) 	return tid + TID_STEP; } -static inline unsigned int tid_to_cpu(unsigned long tid)+static inline unsigned int __maybe_unused tid_to_cpu(unsigned long tid) { 	return tid % TID_STEP; } -static inline unsigned long tid_to_event(unsigned long tid)+static inline unsigned long __maybe_unused tid_to_event(unsigned long tid) { 	return tid / TID_STEP; }@@ -3750,6 +3744,12 @@ void *__kmalloc(size_t size, gfp_t flags) EXPORT_SYMBOL(__kmalloc);  #ifdef CONFIG_NUMA+static inline void kmalloc_large_node_hook(void *ptr, size_t size, gfp_t flags)+{+	kmemleak_alloc(ptr, size, 1, flags);+	kasan_kmalloc_large(ptr, size, flags);+}+ static void *kmalloc_large_node(size_t size, gfp_t flags, int node) { 	struct page *page;diff --git a/mm/zsmalloc.c b/mm/zsmalloc.cindex d41edd28298b..8a425673acca 100644--- a/mm/zsmalloc.c+++ b/mm/zsmalloc.c@@ -480,11 +480,6 @@ static inline int get_zspage_inuse(struct zspage *zspage) 	return zspage->inuse; } -static inline void set_zspage_inuse(struct zspage *zspage, int val)-{-	zspage->inuse = val;-}- static inline void mod_zspage_inuse(struct zspage *zspage, int val) { 	zspage->inuse += val;diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.cindex 608959989f8e..216742d695c7 100644--- a/net/bluetooth/6lowpan.c+++ b/net/bluetooth/6lowpan.c@@ -109,34 +109,6 @@ static inline bool peer_del(struct lowpan_btle_dev *dev, 	return false; } -static inline struct lowpan_peer *peer_lookup_ba(struct lowpan_btle_dev *dev,-						 bdaddr_t *ba, __u8 type)-{-	struct lowpan_peer *peer;--	BT_DBG("peers %d addr %pMR type %d", atomic_read(&dev->peer_count),-	       ba, type);--	rcu_read_lock();--	list_for_each_entry_rcu(peer, &dev->peers, list) {-		BT_DBG("dst addr %pMR dst type %d",-		       &peer->chan->dst, peer->chan->dst_type);--		if (bacmp(&peer->chan->dst, ba))-			continue;--		if (type == peer->chan->dst_type) {-			rcu_read_unlock();-			return peer;-		}-	}--	rcu_read_unlock();--	return NULL;-}- static inline struct lowpan_peer * __peer_lookup_chan(struct lowpan_btle_dev *dev, struct l2cap_chan *chan) {@@ -914,14 +886,6 @@ static const struct l2cap_ops bt_6lowpan_chan_ops = { 	.set_shutdown		= l2cap_chan_no_set_shutdown, }; -static inline __u8 bdaddr_type(__u8 type)-{-	if (type == ADDR_LE_DEV_PUBLIC)-		return BDADDR_LE_PUBLIC;-	else-		return BDADDR_LE_RANDOM;-}- static int bt_6lowpan_connect(bdaddr_t *addr, u8 dst_type) { 	struct l2cap_chan *chan;diff --git a/net/ipv6/ila/ila_xlat.c b/net/ipv6/ila/ila_xlat.cindex 2fd5ca151dcf..df8fce886b09 100644--- a/net/ipv6/ila/ila_xlat.c+++ b/net/ipv6/ila/ila_xlat.c@@ -53,11 +53,6 @@ static int alloc_ila_locks(struct ila_net *ilan) }  static u32 hashrnd __read_mostly;-static __always_inline void __ila_hash_secret_init(void)-{-	net_get_random_once(&hashrnd, sizeof(hashrnd));-}- static inline u32 ila_locator_hash(struct ila_locator loc) { 	u32 *v = (u32 *)loc.v32;diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.cindex 0c5b4caa1949..85a2ab3ecb21 100644--- a/net/ipv6/ip6_gre.c+++ b/net/ipv6/ip6_gre.c@@ -625,26 +625,6 @@ static inline int ip6gre_xmit_ipv6(struct sk_buff *skb, struct net_device *dev) 	return 0; } -/**- * ip6_tnl_addr_conflict - compare packet addresses to tunnel's own- *   @t: the outgoing tunnel device- *   @hdr: IPv6 header from the incoming packet- *- * Description:- *   Avoid trivial tunneling loop by checking that tunnel exit-point- *   doesn't match source of incoming packet.- *- * Return:- *   1 if conflict,- *   0 else- **/--static inline bool ip6gre_tnl_addr_conflict(const struct ip6_tnl *t,-	const struct ipv6hdr *hdr)-{-	return ipv6_addr_equal(&t->parms.raddr, &hdr->saddr);-}- static int ip6gre_xmit_other(struct sk_buff *skb, struct net_device *dev) { 	struct ip6_tnl *t = netdev_priv(dev);diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.cindex b30a2c70bd48..af248b8e183f 100644--- a/net/sched/sch_choke.c+++ b/net/sched/sch_choke.c@@ -146,11 +146,6 @@ static inline struct choke_skb_cb *choke_skb_cb(const struct sk_buff *skb) 	return (struct choke_skb_cb *)qdisc_skb_cb(skb)->data; } -static inline void choke_set_classid(struct sk_buff *skb, u16 classid)-{-	choke_skb_cb(skb)->classid = classid;-}- /*  * Compare flow of two packets  *  Returns true only if source and destination address and port match.diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.cindex f81eaa8e0888..7ed6d395e32d 100644--- a/net/sunrpc/svcauth_unix.c+++ b/net/sunrpc/svcauth_unix.c@@ -290,15 +290,6 @@ static struct ip_map *__ip_map_lookup(struct cache_detail *cd, char *class, 		return NULL; } -static inline struct ip_map *ip_map_lookup(struct net *net, char *class,-		struct in6_addr *addr)-{-	struct sunrpc_net *sn;--	sn = net_generic(net, sunrpc_net_id);-	return __ip_map_lookup(sn->ip_map_cache, class, addr);-}- static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, 		struct unix_domain *udom, time_t expiry) {@@ -319,15 +310,6 @@ static int __ip_map_update(struct cache_detail *cd, struct ip_map *ipm, 	return 0; } -static inline int ip_map_update(struct net *net, struct ip_map *ipm,-		struct unix_domain *udom, time_t expiry)-{-	struct sunrpc_net *sn;--	sn = net_generic(net, sunrpc_net_id);-	return __ip_map_update(sn->ip_map_cache, ipm, udom, expiry);-}- void svcauth_unix_purge(struct net *net) { 	struct sunrpc_net *sn;diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.cindex ec8a94325ef6..fc21c77ff7fd 100644--- a/sound/drivers/portman2x4.c+++ b/sound/drivers/portman2x4.c@@ -196,21 +196,11 @@ static inline void portman_write_command(struct portman *pm, u8 value) 	parport_write_control(pm->pardev->port, value); } -static inline u8 portman_read_command(struct portman *pm)-{-	return parport_read_control(pm->pardev->port);-}- static inline u8 portman_read_status(struct portman *pm) { 	return parport_read_status(pm->pardev->port); } -static inline u8 portman_read_data(struct portman *pm)-{-	return parport_read_data(pm->pardev->port);-}- static inline void portman_write_data(struct portman *pm, u8 value) { 	parport_write_data(pm->pardev->port, value);diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.cindex 79b2e6b7d88b..8e64cd280d7f 100644--- a/sound/pci/azt3328.c+++ b/sound/pci/azt3328.c@@ -379,15 +379,6 @@ snd_azf3328_codec_inw(const struct snd_azf3328_codec_data *codec, unsigned reg) }  static inline void-snd_azf3328_codec_outl(const struct snd_azf3328_codec_data *codec,-		       unsigned reg,-		       u32 value-)-{-	outl(value, codec->io_base + reg);-}--static inline void snd_azf3328_codec_outl_multi(const struct snd_azf3328_codec_data *codec, 			     unsigned reg, const void *buffer, int count )diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.cindex c48acdb0e186..123e991debd8 100644--- a/sound/pci/rme9652/hdspm.c+++ b/sound/pci/rme9652/hdspm.c@@ -6153,12 +6153,6 @@ static int snd_hdspm_hwdep_dummy_op(struct snd_hwdep *hw, struct file *file) 	return 0; } -static inline int copy_u32_le(void __user *dest, void __iomem *src)-{-	u32 val = readl(src);-	return copy_to_user(dest, &val, 4);-}- static int snd_hdspm_hwdep_ioctl(struct snd_hwdep *hw, struct file *file, 		unsigned int cmd, unsigned long arg) {diff --git a/sound/pci/trident/trident_memory.c b/sound/pci/trident/trident_memory.cindex b9ebb51893c5..916d2f71f9a4 100644--- a/sound/pci/trident/trident_memory.c+++ b/sound/pci/trident/trident_memory.c@@ -120,15 +120,6 @@ static inline void set_silent_tlb(struct snd_trident *trident, int page)  #endif /* PAGE_SIZE */ -/* calculate buffer pointer from offset address */-static inline void *offset_ptr(struct snd_trident *trident, int offset)-{-	char *ptr;-	ptr = page_to_ptr(trident, get_aligned_page(offset));-	ptr += offset % ALIGN_PAGE_SIZE;-	return (void*)ptr;-}- /* first and last (aligned) pages of memory block */ #define firstpg(blk)	(((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->first_page) #define lastpg(blk)	(((struct snd_trident_memblk_arg *)snd_util_memblk_argptr(blk))->last_page)diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.cindex fe4ba463b57c..2c9a8f5c9ad7 100644--- a/sound/pci/ymfpci/ymfpci_main.c+++ b/sound/pci/ymfpci/ymfpci_main.c@@ -45,11 +45,6 @@  static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip); -static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset)-{-	return readb(chip->reg_area_virt + offset);-}- static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) { 	writeb(val, chip->reg_area_virt + offset);diff --git a/sound/soc/tegra/tegra20_das.c b/sound/soc/tegra/tegra20_das.cindex 4024e3abbeed..31ebba829917 100644--- a/sound/soc/tegra/tegra20_das.c+++ b/sound/soc/tegra/tegra20_das.c@@ -38,14 +38,6 @@ static inline void tegra20_das_write(u32 reg, u32 val) 	regmap_write(das->regmap, reg, val); } -static inline u32 tegra20_das_read(u32 reg)-{-	u32 val;--	regmap_read(das->regmap, reg, &val);-	return val;-}- int tegra20_das_connect_dap_to_dac(int dap, int dac) { 	u32 addr;