[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202512201254.2FFxkibV-lkp@intel.com>
Date: Sat, 20 Dec 2025 13:13:08 +0800
From: kernel test robot <lkp@...el.com>
To: Tomas Melin <tomas.melin@...sala.com>,
Michael Hennerich <Michael.Hennerich@...log.com>,
Nuno Sa <nuno.sa@...log.com>, Lars-Peter Clausen <lars@...afoo.de>,
Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Andy Shevchenko <andy@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
Tomas Melin <tomas.melin@...sala.com>
Subject: Re: [PATCH 1/2] iio: adc: ad9467: include two's complement in
default mode
Hi Tomas,
kernel test robot noticed the following build errors:
[auto build test ERROR on a7b10f0963c651a6406d958a5f64b9c5594f84da]
url: https://github.com/intel-lab-lkp/linux/commits/Tomas-Melin/iio-adc-ad9467-include-two-s-complement-in-default-mode/20251216-233841
base: a7b10f0963c651a6406d958a5f64b9c5594f84da
patch link: https://lore.kernel.org/r/20251216-b4-ad9467-optional-backend-v1-1-83e61531ef4d%40vaisala.com
patch subject: [PATCH 1/2] iio: adc: ad9467: include two's complement in default mode
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20251220/202512201254.2FFxkibV-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512201254.2FFxkibV-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512201254.2FFxkibV-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/iio/adc/ad9467.c:686:3: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
686 | FIELD_PREP(AN877_ADC_OUTPUT_MODE_MASK,
| ^
drivers/iio/adc/ad9467.c:1197:4: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1197 | FIELD_PREP(AN877_ADC_OUTPUT_MODE_MASK,
| ^
2 errors generated.
vim +/FIELD_PREP +686 drivers/iio/adc/ad9467.c
678
679 static int ad9647_calibrate_prepare(struct ad9467_state *st)
680 {
681 unsigned int cmode;
682 unsigned int c;
683 int ret;
684
685 cmode = (st->info->default_output_mode & ~AN877_ADC_OUTPUT_MODE_MASK) |
> 686 FIELD_PREP(AN877_ADC_OUTPUT_MODE_MASK,
687 AN877_ADC_OUTPUT_MODE_OFFSET_BINARY);
688 ret = ad9467_outputmode_set(st, cmode);
689 if (ret)
690 return ret;
691
692 for (c = 0; c < st->info->num_channels; c++) {
693 ret = ad9467_testmode_set(st, c, AN877_ADC_TESTMODE_PN9_SEQ);
694 if (ret)
695 return ret;
696
697 ret = ad9467_backend_testmode_on(st, c,
698 IIO_BACKEND_ADI_PRBS_9A);
699 if (ret)
700 return ret;
701 }
702
703 return 0;
704 }
705
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists