From: kernel test robot <lkp@intel.com>
To: Marilene Andrade Garcia <marilene.agarcia@gmail.com>,
linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
"Marilene Andrade Garcia" <marilene.agarcia@gmail.com>,
"Kim Seer Paller" <kimseer.paller@analog.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Marcelo Schmitt" <marcelo.schmitt1@gmail.com>,
"Ceclan Dumitru" <dumitru.ceclan@analog.com>,
"Jonathan Santos" <Jonathan.Santos@analog.com>,
"Dragos Bogdan" <dragos.bogdan@analog.com>
Subject: Re: [PATCH v10 2/2] iio: adc: max14001: New driver
Date: Thu, 4 Sep 2025 06:28:27 +0800 [thread overview]
Message-ID: <202509040617.gcAKQNlG-lkp@intel.com> (raw)
In-Reply-To: <f3ea9c127b7836cc978def5d906740c6da1cfb1e.1756816682.git.marilene.agarcia@gmail.com>
Hi Marilene,
kernel test robot noticed the following build warnings:
[auto build test WARNING on d1487b0b78720b86ec2a2ac7acc683ec90627e5b]
url: https://github.com/intel-lab-lkp/linux/commits/Marilene-Andrade-Garcia/dt-bindings-iio-adc-add-max14001/20250902-212046
base: d1487b0b78720b86ec2a2ac7acc683ec90627e5b
patch link: https://lore.kernel.org/r/f3ea9c127b7836cc978def5d906740c6da1cfb1e.1756816682.git.marilene.agarcia%40gmail.com
patch subject: [PATCH v10 2/2] iio: adc: max14001: New driver
config: hexagon-randconfig-r113-20250904 (https://download.01.org/0day-ci/archive/20250904/202509040617.gcAKQNlG-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 2e122990391b2ba062e6308a12cfedf7206270ba)
reproduce: (https://download.01.org/0day-ci/archive/20250904/202509040617.gcAKQNlG-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/202509040617.gcAKQNlG-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/iio/adc/max14001.c:109:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] spi_tx_buffer @@ got unsigned long @@
drivers/iio/adc/max14001.c:109:27: sparse: expected restricted __be16 [usertype] spi_tx_buffer
drivers/iio/adc/max14001.c:109:27: sparse: got unsigned long
>> drivers/iio/adc/max14001.c:110:29: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] val @@ got restricted __be16 [usertype] spi_tx_buffer @@
drivers/iio/adc/max14001.c:110:29: sparse: expected unsigned short [usertype] val
drivers/iio/adc/max14001.c:110:29: sparse: got restricted __be16 [usertype] spi_tx_buffer
>> drivers/iio/adc/max14001.c:110:29: sparse: sparse: cast from restricted __be16
>> drivers/iio/adc/max14001.c:110:29: sparse: sparse: cast from restricted __be16
>> drivers/iio/adc/max14001.c:110:29: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] __x @@ got restricted __be16 [usertype] @@
drivers/iio/adc/max14001.c:110:29: sparse: expected unsigned short [usertype] __x
drivers/iio/adc/max14001.c:110:29: sparse: got restricted __be16 [usertype]
>> drivers/iio/adc/max14001.c:110:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] spi_tx_buffer @@ got int @@
drivers/iio/adc/max14001.c:110:27: sparse: expected restricted __be16 [usertype] spi_tx_buffer
drivers/iio/adc/max14001.c:110:27: sparse: got int
>> drivers/iio/adc/max14001.c:120:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] spi_rx_buffer @@ got int @@
drivers/iio/adc/max14001.c:120:27: sparse: expected restricted __be16 [usertype] spi_rx_buffer
drivers/iio/adc/max14001.c:120:27: sparse: got int
>> drivers/iio/adc/max14001.c:121:21: sparse: sparse: cast to restricted __be16
>> drivers/iio/adc/max14001.c:121:21: sparse: sparse: restricted __be16 degrades to integer
>> drivers/iio/adc/max14001.c:121:21: sparse: sparse: restricted __be16 degrades to integer
drivers/iio/adc/max14001.c:133:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] spi_tx_buffer @@ got unsigned long @@
drivers/iio/adc/max14001.c:133:27: sparse: expected restricted __be16 [usertype] spi_tx_buffer
drivers/iio/adc/max14001.c:133:27: sparse: got unsigned long
drivers/iio/adc/max14001.c:136:29: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] val @@ got restricted __be16 [usertype] spi_tx_buffer @@
drivers/iio/adc/max14001.c:136:29: sparse: expected unsigned short [usertype] val
drivers/iio/adc/max14001.c:136:29: sparse: got restricted __be16 [usertype] spi_tx_buffer
drivers/iio/adc/max14001.c:136:29: sparse: sparse: cast from restricted __be16
drivers/iio/adc/max14001.c:136:29: sparse: sparse: cast from restricted __be16
drivers/iio/adc/max14001.c:136:29: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] __x @@ got restricted __be16 [usertype] @@
drivers/iio/adc/max14001.c:136:29: sparse: expected unsigned short [usertype] __x
drivers/iio/adc/max14001.c:136:29: sparse: got restricted __be16 [usertype]
drivers/iio/adc/max14001.c:136:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] spi_tx_buffer @@ got int @@
drivers/iio/adc/max14001.c:136:27: sparse: expected restricted __be16 [usertype] spi_tx_buffer
drivers/iio/adc/max14001.c:136:27: sparse: got int
vim +109 drivers/iio/adc/max14001.c
89
90 static int max14001_read(struct max14001_state *st, u16 reg_addr, u16 *reg_data)
91 {
92 struct spi_transfer xfers[] = {
93 {
94 .tx_buf = &st->spi_tx_buffer,
95 .len = sizeof(st->spi_tx_buffer),
96 .cs_change = 1,
97 }, {
98 .rx_buf = &st->spi_rx_buffer,
99 .len = sizeof(st->spi_rx_buffer),
100 },
101 };
102 int ret;
103
104 /*
105 * Prepare SPI transmit buffer 16 bit-value big-endian format and
106 * reverses bit order to align with the LSB-first input on SDI port
107 * in order to meet the device communication requirements.
108 */
> 109 st->spi_tx_buffer = FIELD_PREP(MAX14001_MASK_ADDR, reg_addr);
> 110 st->spi_tx_buffer = bitrev16(cpu_to_be16(st->spi_tx_buffer));
111
112 ret = spi_sync_transfer(st->spi, xfers, ARRAY_SIZE(xfers));
113 if (ret)
114 return ret;
115
116 /*
117 * Convert received 16-bit value from big-endian to cpu-endian format
118 * and reverses bit order.
119 */
> 120 st->spi_rx_buffer = bitrev16(be16_to_cpu(st->spi_rx_buffer));
> 121 *reg_data = FIELD_GET(MAX14001_MASK_DATA, st->spi_rx_buffer);
122
123 return 0;
124 }
125
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-09-03 22:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 13:14 [PATCH v10 0/2] Add MAX14001/MAX14002 support Marilene Andrade Garcia
2025-09-02 13:15 ` [PATCH v10 1/2] dt-bindings: iio: adc: add max14001 Marilene Andrade Garcia
2025-09-02 14:29 ` David Lechner
2025-09-02 15:30 ` David Lechner
2025-09-02 19:42 ` Conor Dooley
2025-09-02 13:16 ` [PATCH v10 2/2] iio: adc: max14001: New driver Marilene Andrade Garcia
2025-09-02 13:45 ` Andy Shevchenko
2025-09-02 14:12 ` David Lechner
2025-09-02 14:23 ` Andy Shevchenko
2025-09-02 15:44 ` David Lechner
2025-09-03 22:28 ` kernel test robot [this message]
2025-09-02 16:10 ` [PATCH v10 0/2] Add MAX14001/MAX14002 support David Lechner
2025-09-03 16:11 ` Jonathan Cameron
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=202509040617.gcAKQNlG-lkp@intel.com \
--to=lkp@intel.com \
--cc=Jonathan.Santos@analog.com \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=dragos.bogdan@analog.com \
--cc=dumitru.ceclan@analog.com \
--cc=jic23@kernel.org \
--cc=kimseer.paller@analog.com \
--cc=krzk@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.schmitt1@gmail.com \
--cc=marilene.agarcia@gmail.com \
--cc=nuno.sa@analog.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=robh@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®