Linux IIO development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "David Lechner" <dlechner@baylibre.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Matt Ranostay" <mranostay@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	David Lechner <dlechner@baylibre.com>
Subject: Re: [PATCH 2/2] iio: adc: ti-adc161s626: use DMA-safe memory for spi_read()
Date: Fri, 27 Mar 2026 17:13:16 +0800	[thread overview]
Message-ID: <202603271734.pnWuSmNr-lkp@intel.com> (raw)
In-Reply-To: <20260314-iio-adc-ti-adc161s626-fix-scan-buf-v1-2-56243b11e87b@baylibre.com>

Hi David,

kernel test robot noticed the following build errors:

[auto build test ERROR on ff0843ceb1fb11a6b73e0e77b932ef7967aecd4b]

url:    https://github.com/intel-lab-lkp/linux/commits/David-Lechner/iio-adc-ti-adc161s626-fix-buffer-read-on-big-endian/20260315-092711
base:   ff0843ceb1fb11a6b73e0e77b932ef7967aecd4b
patch link:    https://lore.kernel.org/r/20260314-iio-adc-ti-adc161s626-fix-scan-buf-v1-2-56243b11e87b%40baylibre.com
patch subject: [PATCH 2/2] iio: adc: ti-adc161s626: use DMA-safe memory for spi_read()
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260327/202603271734.pnWuSmNr-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260327/202603271734.pnWuSmNr-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/202603271734.pnWuSmNr-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/iio/adc/ti-adc161s626.c: In function 'ti_adc_read_measurement':
>> drivers/iio/adc/ti-adc161s626.c:87:24: error: implicit declaration of function 'get_unaligned_be16' [-Wimplicit-function-declaration]
      87 |                 *val = get_unaligned_be16(data->buf);
         |                        ^~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/ti-adc161s626.c:94:24: error: implicit declaration of function 'get_unaligned_be24' [-Wimplicit-function-declaration]
      94 |                 *val = get_unaligned_be24(data->buf);
         |                        ^~~~~~~~~~~~~~~~~~


vim +/get_unaligned_be16 +87 drivers/iio/adc/ti-adc161s626.c

    75	
    76	static int ti_adc_read_measurement(struct ti_adc_data *data,
    77					   struct iio_chan_spec const *chan, int *val)
    78	{
    79		int ret;
    80	
    81		switch (data->read_size) {
    82		case 2:
    83			ret = spi_read(data->spi, data->buf, 2);
    84			if (ret)
    85				return ret;
    86	
  > 87			*val = get_unaligned_be16(data->buf);
    88			break;
    89		case 3:
    90			ret = spi_read(data->spi, data->buf, 3);
    91			if (ret)
    92				return ret;
    93	
  > 94			*val = get_unaligned_be24(data->buf);
    95			break;
    96		default:
    97			return -EINVAL;
    98		}
    99	
   100		*val = sign_extend32(*val >> data->shift, chan->scan_type.realbits - 1);
   101	
   102		return 0;
   103	}
   104	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2026-03-27  9:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-14 23:13 [PATCH 0/2] iio: adc: ti-adc161s626: fix scan buffer handling David Lechner
2026-03-14 23:13 ` [PATCH 1/2] iio: adc: ti-adc161s626: fix buffer read on big-endian David Lechner
2026-03-16 13:56   ` Andy Shevchenko
2026-03-21 20:42     ` Jonathan Cameron
2026-03-14 23:13 ` [PATCH 2/2] iio: adc: ti-adc161s626: use DMA-safe memory for spi_read() David Lechner
2026-03-16 14:05   ` Andy Shevchenko
2026-03-21 20:45     ` Jonathan Cameron
2026-03-16 18:31   ` Jonathan Cameron
2026-03-16 19:53     ` Andy Shevchenko
2026-03-21 19:40       ` David Lechner
2026-03-21 20:54         ` Jonathan Cameron
2026-03-21 20:18       ` Jonathan Cameron
2026-03-21 19:27     ` David Lechner
2026-03-21 20:21       ` Jonathan Cameron
2026-03-27  9:13   ` kernel test robot [this message]
2026-03-27  9:44     ` Andy Shevchenko
2026-03-27 13:54       ` David Lechner

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=202603271734.pnWuSmNr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andy@kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mranostay@gmail.com \
    --cc=nuno.sa@analog.com \
    --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