* sound/soc/codecs/tlv320adc3xxx.c:845:55: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition]
@ 2022-01-26 7:39 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-26 7:39 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Ricard Wanderlof <ricardw@axis.com>
CC: Mark Brown <broonie@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0280e3c58f92b2fe0e8fbbdf8d386449168de4a8
commit: e9a3b57efd28fe889a98171bdc1e9e0dd7eb9a50 ASoC: codec: tlv320adc3xxx: New codec driver
date: 5 weeks ago
:::::: branch date: 13 hours ago
:::::: commit date: 5 weeks ago
compiler: nds32le-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> sound/soc/codecs/tlv320adc3xxx.c:845:55: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition]
ADC3XXX_GPIO_GPO << ADC3XXX_GPIO_CTRL_CFG_SHIFT |
^
vim +845 sound/soc/codecs/tlv320adc3xxx.c
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 834
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 835 static int adc3xxx_gpio_direction_out(struct gpio_chip *chip,
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 836 unsigned int offset, int value)
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 837 {
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 838 struct adc3xxx *adc3xxx = gpiochip_get_data(chip);
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 839
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 840 /* Set GPIO output function. */
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 841 return regmap_update_bits(adc3xxx->regmap,
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 842 adc3xxx_gpio_ctrl_reg[offset],
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 843 ADC3XXX_GPIO_CTRL_CFG_MASK |
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 844 ADC3XXX_GPIO_CTRL_OUTPUT_CTRL_MASK,
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 @845 ADC3XXX_GPIO_GPO << ADC3XXX_GPIO_CTRL_CFG_SHIFT |
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 846 !!value << ADC3XXX_GPIO_CTRL_OUTPUT_CTRL_SHIFT);
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 847 }
e9a3b57efd28fe8 Ricard Wanderlof 2021-12-15 848
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* sound/soc/codecs/tlv320adc3xxx.c:845:55: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition]
@ 2022-02-28 19:49 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-28 19:49 UTC (permalink / raw)
To: kbuild
[-- Attachment #1: Type: text/plain, Size: 2377 bytes --]
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Ricard Wanderlof <ricardw@axis.com>
CC: Mark Brown <broonie@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7e57714cd0ad2d5bb90e50b5096a0e671dec1ef3
commit: e9a3b57efd28fe889a98171bdc1e9e0dd7eb9a50 ASoC: codec: tlv320adc3xxx: New codec driver
date: 2 months ago
:::::: branch date: 21 hours ago
:::::: commit date: 2 months ago
compiler: nios2-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not real problems)
>> sound/soc/codecs/tlv320adc3xxx.c:845:55: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition]
ADC3XXX_GPIO_GPO << ADC3XXX_GPIO_CTRL_CFG_SHIFT |
^
vim +845 sound/soc/codecs/tlv320adc3xxx.c
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 834
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 835 static int adc3xxx_gpio_direction_out(struct gpio_chip *chip,
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 836 unsigned int offset, int value)
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 837 {
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 838 struct adc3xxx *adc3xxx = gpiochip_get_data(chip);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 839
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 840 /* Set GPIO output function. */
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 841 return regmap_update_bits(adc3xxx->regmap,
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 842 adc3xxx_gpio_ctrl_reg[offset],
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 843 ADC3XXX_GPIO_CTRL_CFG_MASK |
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 844 ADC3XXX_GPIO_CTRL_OUTPUT_CTRL_MASK,
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 @845 ADC3XXX_GPIO_GPO << ADC3XXX_GPIO_CTRL_CFG_SHIFT |
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 846 !!value << ADC3XXX_GPIO_CTRL_OUTPUT_CTRL_SHIFT);
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 847 }
e9a3b57efd28fe Ricard Wanderlof 2021-12-15 848
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-28 19:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-26 7:39 sound/soc/codecs/tlv320adc3xxx.c:845:55: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-02-28 19:49 kernel test robot
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.