tree:   https://github.com/morimoto/linux alsa-2018-04-10-v1
head:   7b7e56c6934075acb26bf0d7fc98771d3bcc5c23
commit: 924d40ab9823b1cecef5bd3ae678835b82795e83 [2/23] compile

smatch warnings:
sound/soc/mediatek/common/mtk-afe-fe-dai.c:376 mtk_afe_dai_resume() error: we 
previously assumed 'afe->reg_back_up' could be null (see line 371)
sound/soc/omap/mcbsp.c:544 omap_mcbsp_request() error: we previously assumed 
'mcbsp->pdata' could be null (see line 537)
sound/soc/omap/mcbsp.c:574 omap_mcbsp_request() warn: variable dereferenced 
before check 'mcbsp->pdata' (see line 544)
sound/soc/omap/mcbsp.c:599 omap_mcbsp_free() error: we previously assumed 
'mcbsp->pdata' could be null (see line 595)
sound/soc/omap/mcbsp.c:1071 omap_mcbsp_init() warn: assigning (-22) to unsigned 
variable 'mcbsp->max_tx_thres'
sound/soc/omap/mcbsp.c:1072 omap_mcbsp_init() warn: assigning (-22) to unsigned 
variable 'mcbsp->max_rx_thres'
sound/soc/omap/ams-delta.c:311 cx81801_close() warn: variable dereferenced 
before check 'component' (see line 304)
sound/soc/fsl/imx-pcm-fiq.c:137 snd_imx_pcm_trigger() warn: if statement not 
indented

# 
https://github.com/morimoto/linux/commit/924d40ab9823b1cecef5bd3ae678835b82795e83
git remote add morimoto-linux https://github.com/morimoto/linux
git remote update morimoto-linux
git checkout 924d40ab9823b1cecef5bd3ae678835b82795e83
vim +376 sound/soc/mediatek/common/mtk-afe-fe-dai.c

283b6124 Garlic Tseng 2016-06-17  358  
283b6124 Garlic Tseng 2016-06-17  359  int mtk_afe_dai_resume(struct 
snd_soc_dai *dai)
283b6124 Garlic Tseng 2016-06-17  360  {
283b6124 Garlic Tseng 2016-06-17  361   struct mtk_base_afe *afe = 
dev_get_drvdata(dai->dev);
283b6124 Garlic Tseng 2016-06-17  362   struct device *dev = afe->dev;
283b6124 Garlic Tseng 2016-06-17  363   struct regmap *regmap = afe->regmap;
283b6124 Garlic Tseng 2016-06-17  364   int i = 0;
283b6124 Garlic Tseng 2016-06-17  365  
283b6124 Garlic Tseng 2016-06-17  366   if (pm_runtime_status_suspended(dev) || 
!afe->suspended)
283b6124 Garlic Tseng 2016-06-17  367           return 0;
283b6124 Garlic Tseng 2016-06-17  368  
283b6124 Garlic Tseng 2016-06-17  369   afe->runtime_resume(dev);
283b6124 Garlic Tseng 2016-06-17  370  
283b6124 Garlic Tseng 2016-06-17 @371   if (!afe->reg_back_up)
283b6124 Garlic Tseng 2016-06-17  372           dev_dbg(dev, "%s no 
reg_backup\n", __func__);
283b6124 Garlic Tseng 2016-06-17  373  
283b6124 Garlic Tseng 2016-06-17  374   for (i = 0; i < 
afe->reg_back_up_list_num; i++)
283b6124 Garlic Tseng 2016-06-17  375           mtk_regmap_write(regmap, 
afe->reg_back_up_list[i],
283b6124 Garlic Tseng 2016-06-17 @376                            
afe->reg_back_up[i]);
283b6124 Garlic Tseng 2016-06-17  377  
283b6124 Garlic Tseng 2016-06-17  378   afe->suspended = false;
283b6124 Garlic Tseng 2016-06-17  379   return 0;
283b6124 Garlic Tseng 2016-06-17  380  }
283b6124 Garlic Tseng 2016-06-17  381  EXPORT_SYMBOL_GPL(mtk_afe_dai_resume);
283b6124 Garlic Tseng 2016-06-17  382  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to