CC: kbuild-...@lists.01.org
CC: Linux Memory Management List <linux...@kvack.org>
TO: Trevor Wu <trevor...@mediatek.com>
CC: Mark Brown <broo...@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   88fac11862d38306dd0d2398015744877140390d
commit: 6746cc858259985a945a07075a19ec4d24352407 [9526/10638] ASoC: mediatek: 
mt8195: add platform driver
:::::: branch date: 19 hours ago
:::::: commit date: 3 days ago
config: powerpc64-randconfig-m031-20210827 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>
Reported-by: Dan Carpenter <dan.carpen...@oracle.com>

smatch warnings:
sound/soc/mediatek/common/mtk-afe-fe-dai.c:364 mtk_afe_resume() error: we 
previously assumed 'afe->reg_back_up' could be null (see line 359)

vim +364 sound/soc/mediatek/common/mtk-afe-fe-dai.c

283b612429a279 Garlic Tseng      2016-06-17  346  
7ec6b43125c070 Kuninori Morimoto 2020-01-20  347  int mtk_afe_resume(struct 
snd_soc_component *component)
283b612429a279 Garlic Tseng      2016-06-17  348  {
7ec6b43125c070 Kuninori Morimoto 2020-01-20  349        struct mtk_base_afe 
*afe = snd_soc_component_get_drvdata(component);
283b612429a279 Garlic Tseng      2016-06-17  350        struct device *dev = 
afe->dev;
283b612429a279 Garlic Tseng      2016-06-17  351        struct regmap *regmap = 
afe->regmap;
283b612429a279 Garlic Tseng      2016-06-17  352        int i = 0;
283b612429a279 Garlic Tseng      2016-06-17  353  
283b612429a279 Garlic Tseng      2016-06-17  354        if 
(pm_runtime_status_suspended(dev) || !afe->suspended)
283b612429a279 Garlic Tseng      2016-06-17  355                return 0;
283b612429a279 Garlic Tseng      2016-06-17  356  
283b612429a279 Garlic Tseng      2016-06-17  357        
afe->runtime_resume(dev);
283b612429a279 Garlic Tseng      2016-06-17  358  
283b612429a279 Garlic Tseng      2016-06-17 @359        if (!afe->reg_back_up)
283b612429a279 Garlic Tseng      2016-06-17  360                dev_dbg(dev, 
"%s no reg_backup\n", __func__);
283b612429a279 Garlic Tseng      2016-06-17  361  
283b612429a279 Garlic Tseng      2016-06-17  362        for (i = 0; i < 
afe->reg_back_up_list_num; i++)
283b612429a279 Garlic Tseng      2016-06-17  363                
mtk_regmap_write(regmap, afe->reg_back_up_list[i],
283b612429a279 Garlic Tseng      2016-06-17 @364                                
 afe->reg_back_up[i]);
283b612429a279 Garlic Tseng      2016-06-17  365  
283b612429a279 Garlic Tseng      2016-06-17  366        afe->suspended = false;
283b612429a279 Garlic Tseng      2016-06-17  367        return 0;
283b612429a279 Garlic Tseng      2016-06-17  368  }
7ec6b43125c070 Kuninori Morimoto 2020-01-20  369  
EXPORT_SYMBOL_GPL(mtk_afe_resume);
283b612429a279 Garlic Tseng      2016-06-17  370  

:::::: The code at line 364 was first introduced by commit
:::::: 283b612429a279b4c8f5a90f38d26c80bf8ec628 ASoC: mediatek: implement 
mediatek common structure

:::::: TO: Garlic Tseng <garlic.ts...@mediatek.com>
:::::: CC: Mark Brown <broo...@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to