From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, llvm@lists.linux.dev
Subject: drivers/iio/adc/xilinx-ams.c:1158:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq')
Date: Sat, 8 Mar 2025 19:10:14 +0800 [thread overview]
Message-ID: <202503081901.8P1kbdE3-lkp@intel.com> (raw)
CC: linux-kernel@vger.kernel.org
TO: Anand Ashok Dumbre <anand.ashok.dumbre@xilinx.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
CC: Manish Narani <manish.narani@xilinx.com>
Hi Anand,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2a520073e74fbb956b5564818fc5529dcc7e9f0e
commit: d5c70627a79455154f5f636096abe6fe57510605 iio: adc: Add Xilinx AMS driver
date: 3 years, 3 months ago
config: x86_64-buildonly-randconfig-006-20250127 (https://download.01.org/0day-ci/archive/20250308/202503081901.8P1kbdE3-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250308/202503081901.8P1kbdE3-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503081901.8P1kbdE3-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/iio/adc/xilinx-ams.c:1158:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq') [-Wenum-enum-conversion]
1158 | AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCC_PSPLL, AMS_VCC_PSPLL0),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:259:34: note: expanded from macro 'AMS_CTRL_CHAN_VOLTAGE'
259 | AMS_CHAN_VOLTAGE(PL_SEQ(AMS_SEQ(AMS_SEQ(_scan_index))), _addr, false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:219:34: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ~~~~~~~~~~~ ^
drivers/iio/adc/xilinx-ams.c:219:37: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:221:39: note: expanded from macro 'PL_SEQ'
221 | #define PL_SEQ(x) (AMS_PS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:243:16: note: expanded from macro 'AMS_CHAN_VOLTAGE'
243 | .scan_index = _scan_index, \
| ^~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:1159:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq') [-Wenum-enum-conversion]
1159 | AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCC_PSBATT, AMS_VCC_PSPLL3),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:259:34: note: expanded from macro 'AMS_CTRL_CHAN_VOLTAGE'
259 | AMS_CHAN_VOLTAGE(PL_SEQ(AMS_SEQ(AMS_SEQ(_scan_index))), _addr, false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:219:34: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ~~~~~~~~~~~ ^
drivers/iio/adc/xilinx-ams.c:219:37: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:221:39: note: expanded from macro 'PL_SEQ'
221 | #define PL_SEQ(x) (AMS_PS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:243:16: note: expanded from macro 'AMS_CHAN_VOLTAGE'
243 | .scan_index = _scan_index, \
| ^~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:1160:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq') [-Wenum-enum-conversion]
1160 | AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCCINT, AMS_VCCINT),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:259:34: note: expanded from macro 'AMS_CTRL_CHAN_VOLTAGE'
259 | AMS_CHAN_VOLTAGE(PL_SEQ(AMS_SEQ(AMS_SEQ(_scan_index))), _addr, false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:219:34: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ~~~~~~~~~~~ ^
drivers/iio/adc/xilinx-ams.c:219:37: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:221:39: note: expanded from macro 'PL_SEQ'
221 | #define PL_SEQ(x) (AMS_PS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:243:16: note: expanded from macro 'AMS_CHAN_VOLTAGE'
243 | .scan_index = _scan_index, \
| ^~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:1161:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq') [-Wenum-enum-conversion]
1161 | AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCCBRAM, AMS_VCCBRAM),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:259:34: note: expanded from macro 'AMS_CTRL_CHAN_VOLTAGE'
259 | AMS_CHAN_VOLTAGE(PL_SEQ(AMS_SEQ(AMS_SEQ(_scan_index))), _addr, false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:219:34: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ~~~~~~~~~~~ ^
drivers/iio/adc/xilinx-ams.c:219:37: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:221:39: note: expanded from macro 'PL_SEQ'
221 | #define PL_SEQ(x) (AMS_PS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:243:16: note: expanded from macro 'AMS_CHAN_VOLTAGE'
243 | .scan_index = _scan_index, \
| ^~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:1162:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq') [-Wenum-enum-conversion]
1162 | AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCCAUX, AMS_VCCAUX),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:259:34: note: expanded from macro 'AMS_CTRL_CHAN_VOLTAGE'
259 | AMS_CHAN_VOLTAGE(PL_SEQ(AMS_SEQ(AMS_SEQ(_scan_index))), _addr, false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:219:34: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ~~~~~~~~~~~ ^
drivers/iio/adc/xilinx-ams.c:219:37: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:221:39: note: expanded from macro 'PL_SEQ'
221 | #define PL_SEQ(x) (AMS_PS_SEQ_MAX + (x))
| ^
drivers/iio/adc/xilinx-ams.c:243:16: note: expanded from macro 'AMS_CHAN_VOLTAGE'
243 | .scan_index = _scan_index, \
| ^~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:1163:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq') [-Wenum-enum-conversion]
1163 | AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_PSDDRPLL, AMS_PSDDRPLL),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:259:34: note: expanded from macro 'AMS_CTRL_CHAN_VOLTAGE'
259 | AMS_CHAN_VOLTAGE(PL_SEQ(AMS_SEQ(AMS_SEQ(_scan_index))), _addr, false)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/iio/adc/xilinx-ams.c:219:34: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
| ~~~~~~~~~~~ ^
drivers/iio/adc/xilinx-ams.c:219:37: note: expanded from macro 'AMS_SEQ'
219 | #define AMS_SEQ(x) (AMS_SEQ_MAX + (x))
vim +1158 drivers/iio/adc/xilinx-ams.c
1156
1157 static const struct iio_chan_spec ams_ctrl_channels[] = {
> 1158 AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCC_PSPLL, AMS_VCC_PSPLL0),
1159 AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCC_PSBATT, AMS_VCC_PSPLL3),
1160 AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCCINT, AMS_VCCINT),
1161 AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCCBRAM, AMS_VCCBRAM),
1162 AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_VCCAUX, AMS_VCCAUX),
1163 AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_PSDDRPLL, AMS_PSDDRPLL),
1164 AMS_CTRL_CHAN_VOLTAGE(AMS_SEQ_INTDDR, AMS_PSINTFPDDR),
1165 };
1166
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-03-08 11:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-08 11:10 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-14 10:21 drivers/iio/adc/xilinx-ams.c:1158:2: warning: arithmetic between different enumeration types ('enum ams_ps_pl_seq' and 'enum ams_seq') kernel test robot
2025-01-01 0:38 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=202503081901.8P1kbdE3-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox