CC: [email protected]
CC: [email protected]
TO: Julian Braha <[email protected]>
CC: Andrew Morton <[email protected]>
CC: Linux Memory Management List <[email protected]>

Hi Julian,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   70585216fe7730d9fb5453d3e2804e149d0fe201
commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on 
ARCH_WANT_FRAME_POINTERS
date:   10 weeks ago
:::::: branch date: 18 hours ago
:::::: commit date: 10 weeks ago
compiler: csky-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> sound/soc/stm/stm32_sai_sub.c:386:22: warning: Either the condition 'div<0' 
>> is redundant or there is division by zero at line 386. [zerodivcond]
    mclk->freq = *prate / div;
                        ^
   sound/soc/stm/stm32_sai_sub.c:383:10: note: Assuming that condition 'div<0' 
is not redundant
    if (div < 0)
            ^
   sound/soc/stm/stm32_sai_sub.c:386:22: note: Division by zero
    mclk->freq = *prate / div;
                        ^

vim +386 sound/soc/stm/stm32_sai_sub.c

e37c2deafe7058 Olivier Moysan 2019-04-10  374  
8307b2afd386cc Olivier Moysan 2018-10-15  375  static long 
stm32_sai_mclk_round_rate(struct clk_hw *hw, unsigned long rate,
8307b2afd386cc Olivier Moysan 2018-10-15  376                                 
unsigned long *prate)
8307b2afd386cc Olivier Moysan 2018-10-15  377  {
8307b2afd386cc Olivier Moysan 2018-10-15  378   struct stm32_sai_mclk_data 
*mclk = to_mclk_data(hw);
8307b2afd386cc Olivier Moysan 2018-10-15  379   struct stm32_sai_sub_data *sai 
= mclk->sai_data;
8307b2afd386cc Olivier Moysan 2018-10-15  380   int div;
8307b2afd386cc Olivier Moysan 2018-10-15  381  
8307b2afd386cc Olivier Moysan 2018-10-15  382   div = 
stm32_sai_get_clk_div(sai, *prate, rate);
8307b2afd386cc Olivier Moysan 2018-10-15  383   if (div < 0)
8307b2afd386cc Olivier Moysan 2018-10-15  384           return div;
8307b2afd386cc Olivier Moysan 2018-10-15  385  
8307b2afd386cc Olivier Moysan 2018-10-15 @386   mclk->freq = *prate / div;
8307b2afd386cc Olivier Moysan 2018-10-15  387  
8307b2afd386cc Olivier Moysan 2018-10-15  388   return mclk->freq;
8307b2afd386cc Olivier Moysan 2018-10-15  389  }
8307b2afd386cc Olivier Moysan 2018-10-15  390  

:::::: The code at line 386 was first introduced by commit
:::::: 8307b2afd386ccce369821daa2196068c47fe8cd ASoC: stm32: sai: set sai as 
mclk clock provider

:::::: TO: Olivier Moysan <[email protected]>
:::::: CC: Mark Brown <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to