[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209151304.y1E5V2T4-lkp@intel.com>
Date: Thu, 15 Sep 2022 13:30:30 +0800
From: kernel test robot <lkp@...el.com>
To: Bjorn Andersson <bjorn.andersson@...aro.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Steev Klimaszewski <steev@...i.org>
Subject: [steev:c630-6.0.0-rc5-only-batt 2/15]
drivers/power/supply/yoga-c630-ec.c:225:38: error: implicit declaration of
function 'FIELD_GET'; did you mean 'FOLL_GET'?
tree: https://github.com/steev/linux c630-6.0.0-rc5-only-batt
head: f3c03af09a0ea482d28346e1aeb98de01632080c
commit: cf2451d68e7599a6869e1a218a588811d94e4839 [2/15] power: supply: Add Lenovo Yoga C630 EC driver
config: arc-allmodconfig
compiler: arceb-elf-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/steev/linux/commit/cf2451d68e7599a6869e1a218a588811d94e4839
git remote add steev https://github.com/steev/linux
git fetch --no-tags steev c630-6.0.0-rc5-only-batt
git checkout cf2451d68e7599a6869e1a218a588811d94e4839
# 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=arc SHELL=/bin/bash drivers/net/wireless/ath/ drivers/power/supply/
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/power/supply/yoga-c630-ec.c: In function 'yoga_c630_ec_update_adapter_status':
>> drivers/power/supply/yoga-c630-ec.c:225:38: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'? [-Werror=implicit-function-declaration]
225 | ec->adapter_online = FIELD_GET(LENOVO_EC_ADPT_PRESENT, val);
| ^~~~~~~~~
| FOLL_GET
cc1: some warnings being treated as errors
vim +225 drivers/power/supply/yoga-c630-ec.c
216
217 static int yoga_c630_ec_update_adapter_status(struct yoga_c630_ec *ec)
218 {
219 int val;
220
221 mutex_lock(&ec->lock);
222
223 val = yoga_c630_ec_read8(ec, LENOVO_EC_ADPT_STATUS);
224 if (val > 0)
> 225 ec->adapter_online = FIELD_GET(LENOVO_EC_ADPT_PRESENT, val);
226
227 mutex_unlock(&ec->lock);
228
229 return val;
230 }
231
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (307473 bytes)
Powered by blists - more mailing lists