All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: sound/soc/sh/rcar/ssiu.c:73 rsnd_ssiu_busif_err_irq_ctrl() error: uninitialized symbol 'offset'.
Date: Sat, 07 May 2022 05:19:28 +0800	[thread overview]
Message-ID: <202205070518.F22weybs-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4097 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
CC: Mark Brown <broonie@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   bce58da1f39843d47ccd6d9839fadbf898b72358
commit: 0ab000e5e57e6dcb34605fbdee92a1b0947606e0 ASoC: rsnd: tidyup rsnd_ssiu_busif_err_irq_ctrl()
date:   11 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 11 months ago
config: openrisc-randconfig-m031-20220506 (https://download.01.org/0day-ci/archive/20220507/202205070518.F22weybs-lkp(a)intel.com/config)
compiler: or1k-linux-gcc (GCC) 11.3.0

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

New smatch warnings:
sound/soc/sh/rcar/ssiu.c:73 rsnd_ssiu_busif_err_irq_ctrl() error: uninitialized symbol 'offset'.
sound/soc/sh/rcar/ssiu.c:74 rsnd_ssiu_busif_err_irq_ctrl() error: uninitialized symbol 'shift'.

Old smatch warnings:
sound/soc/sh/rcar/ssiu.c:108 rsnd_ssiu_busif_err_status_clear() error: uninitialized symbol 'offset'.
sound/soc/sh/rcar/ssiu.c:110 rsnd_ssiu_busif_err_status_clear() error: uninitialized symbol 'shift'.

vim +/offset +73 sound/soc/sh/rcar/ssiu.c

4e7788fb8018af Kuninori Morimoto 2018-11-06  47  
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  48  /* enable busif buffer over/under run interrupt. */
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  49  #define rsnd_ssiu_busif_err_irq_enable(mod)  rsnd_ssiu_busif_err_irq_ctrl(mod, 1)
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  50  #define rsnd_ssiu_busif_err_irq_disable(mod) rsnd_ssiu_busif_err_irq_ctrl(mod, 0)
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  51  static void rsnd_ssiu_busif_err_irq_ctrl(struct rsnd_mod *mod, int enable)
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  52  {
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  53  	int id = rsnd_mod_id(mod);
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  54  	int shift, offset;
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  55  	int i;
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  56  
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  57  	switch (id) {
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  58  	case 0:
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  59  	case 1:
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  60  	case 2:
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  61  	case 3:
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  62  	case 4:
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  63  		shift  = id;
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  64  		offset = 0;
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  65  		break;
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  66  	case 9:
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  67  		shift  = 1;
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  68  		offset = 1;
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  69  		break;
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  70  	}
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  71  
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  72  	for (i = 0; i < 4; i++) {
0ab000e5e57e6d Kuninori Morimoto 2021-05-27 @73  		enum rsnd_reg reg = SSI_SYS_INT_ENABLE((i * 2) + offset);
0ab000e5e57e6d Kuninori Morimoto 2021-05-27 @74  		u32 val = 0xf << (shift * 4);
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  75  		u32 sys_int_enable = rsnd_mod_read(mod, reg);
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  76  
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  77  		if (enable)
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  78  			sys_int_enable |= val;
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  79  		else
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  80  			sys_int_enable &= ~val;
0ab000e5e57e6d Kuninori Morimoto 2021-05-27  81  		rsnd_mod_write(mod, reg, sys_int_enable);
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  82  	}
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  83  }
83b220cf8eb2aa Kuninori Morimoto 2021-05-27  84  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

             reply	other threads:[~2022-05-06 21:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06 21:19 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-05-07 23:47 sound/soc/sh/rcar/ssiu.c:73 rsnd_ssiu_busif_err_irq_ctrl() error: uninitialized symbol 'offset' kernel test robot
2022-04-21  8:40 kernel test robot
2022-04-18 17:21 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202205070518.F22weybs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.