[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202212031704.pHG4Jbmy-lkp@intel.com>
Date: Sat, 3 Dec 2022 17:25:38 +0800
From: kernel test robot <lkp@...el.com>
To: Sean Anderson <sean.anderson@...o.com>,
Alessandro Zummo <a.zummo@...ertech.it>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
linux-rtc@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Sean Anderson <sean.anderson@...o.com>
Subject: Re: [PATCH] rtc: abx80x: Add nvmem support
Hi Sean,
I love your patch! Yet something to improve:
[auto build test ERROR on v6.1-rc7]
[also build test ERROR on linus/master]
[cannot apply to abelloni/rtc-next next-20221202]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Sean-Anderson/rtc-abx80x-Add-nvmem-support/20221202-070301
patch link: https://lore.kernel.org/r/20221201230208.713118-1-sean.anderson%40seco.com
patch subject: [PATCH] rtc: abx80x: Add nvmem support
config: ia64-randconfig-r035-20221201
compiler: ia64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/6dbbdf7eef71cb4255c6751bc9762cf02a0f53b6
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Sean-Anderson/rtc-abx80x-Add-nvmem-support/20221202-070301
git checkout 6dbbdf7eef71cb4255c6751bc9762cf02a0f53b6
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/rtc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/rtc/rtc-abx80x.c: In function 'abx80x_nvmem_xfer':
>> drivers/rtc/rtc-abx80x.c:695:25: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'? [-Werror=implicit-function-declaration]
695 | lower = FIELD_GET(NVMEM_ADDR_LOWER, offset);
| ^~~~~~~~~
| FOLL_GET
>> drivers/rtc/rtc-abx80x.c:697:26: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
697 | extram = FIELD_PREP(ABX8XX_EXTRAM_XADS, upper);
| ^~~~~~~~~~
cc1: some warnings being treated as errors
vim +695 drivers/rtc/rtc-abx80x.c
685
686 #ifdef CONFIG_NVMEM
687 static int abx80x_nvmem_xfer(struct abx80x_priv *priv, unsigned int offset,
688 void *val, size_t bytes, bool write)
689 {
690 int ret;
691
692 while (bytes) {
693 u8 extram, reg, len, lower, upper;
694
> 695 lower = FIELD_GET(NVMEM_ADDR_LOWER, offset);
696 upper = FIELD_GET(NVMEM_ADDR_UPPER, offset);
> 697 extram = FIELD_PREP(ABX8XX_EXTRAM_XADS, upper);
698 reg = ABX8XX_SRAM_BASE + lower;
699 len = min(lower + bytes, (size_t)ABX8XX_SRAM_WIN_SIZE) - lower;
700 len = min_t(u8, len, I2C_SMBUS_BLOCK_MAX);
701
702 ret = i2c_smbus_write_byte_data(priv->client, ABX8XX_REG_EXTRAM,
703 extram);
704 if (ret)
705 return ret;
706
707 if (write)
708 ret = i2c_smbus_write_i2c_block_data(priv->client, reg,
709 len, val);
710 else
711 ret = i2c_smbus_read_i2c_block_data(priv->client, reg,
712 len, val);
713 if (ret)
714 return ret;
715
716 offset += len;
717 val += len;
718 bytes -= len;
719 }
720
721 return 0;
722 }
723
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (165856 bytes)
Powered by blists - more mailing lists