From: kernel test robot <lkp@intel.com>
To: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Steev Klimaszewski <steev@kali.org>
Subject: [steev:c630-6.0.0-rc3 59/94] drivers/power/supply/yoga-c630-ec.c:224:38: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'?
Date: Sat, 3 Sep 2022 15:14:57 +0800 [thread overview]
Message-ID: <202209031538.opnNa64Y-lkp@intel.com> (raw)
tree: https://github.com/steev/linux c630-6.0.0-rc3
head: 012f3cdd2a60528b877305877b52135b0076e028
commit: d280858fe7f3386373027141f4b284fb61acc045 [59/94] power: supply: Add Lenovo Yoga C630 EC driver
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220903/202209031538.opnNa64Y-lkp@intel.com/config)
compiler: powerpc-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/steev/linux/commit/d280858fe7f3386373027141f4b284fb61acc045
git remote add steev https://github.com/steev/linux
git fetch --no-tags steev c630-6.0.0-rc3
git checkout d280858fe7f3386373027141f4b284fb61acc045
# 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=powerpc SHELL=/bin/bash drivers/power/supply/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.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:224:38: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'? [-Werror=implicit-function-declaration]
224 | ec->adapter_online = FIELD_GET(LENOVO_EC_ADPT_PRESENT, val);
| ^~~~~~~~~
| FOLL_GET
cc1: some warnings being treated as errors
vim +224 drivers/power/supply/yoga-c630-ec.c
215
216 static int yoga_c630_ec_update_adapter_status(struct yoga_c630_ec *ec)
217 {
218 int val;
219
220 mutex_lock(&ec->lock);
221
222 val = yoga_c630_ec_read8(ec, LENOVO_EC_ADPT_STATUS);
223 if (val > 0)
> 224 ec->adapter_online = FIELD_GET(LENOVO_EC_ADPT_PRESENT, val);
225
226 mutex_unlock(&ec->lock);
227
228 return val;
229 }
230
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-09-03 7:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202209031538.opnNa64Y-lkp@intel.com \
--to=lkp@intel.com \
--cc=bjorn.andersson@linaro.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=steev@kali.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®