• YueHaibing's avatar
    ASoC: dwc: Fix -Wmissing-prototypes warnings · 0803a5cb
    YueHaibing authored
    while CONFIG_SND_DESIGNWARE_PCM is not set, building with W=1 shows this:
    
    sound/soc/dwc/local.h:127:6: warning: no previous prototype for ‘dw_pcm_push_tx’ [-Wmissing-prototypes]
     void dw_pcm_push_tx(struct dw_i2s_dev *dev) { }
          ^~~~~~~~~~~~~~
    sound/soc/dwc/local.h:128:6: warning: no previous prototype for ‘dw_pcm_pop_rx’ [-Wmissing-prototypes]
     void dw_pcm_pop_rx(struct dw_i2s_dev *dev) { }
          ^~~~~~~~~~~~~
    sound/soc/dwc/local.h:129:5: warning: no previous prototype for ‘dw_pcm_register’ [-Wmissing-prototypes]
     int dw_pcm_register(struct platform_device *pdev)
         ^~~~~~~~~~~~~~~
    
    Change these to inline functions to fix the warnings.
    Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
    Link: https://lore.kernel.org/r/20210329150524.18184-1-yuehaibing@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    0803a5cb
local.h 4.02 KB