mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [steev:c630-6.0.0-rc5-only-batt 2/15] drivers/power/supply/yoga-c630-ec.c:225:24: error: implicit declaration of function 'FIELD_GET' is invalid in C99
@ 2022-09-14 21:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-14 21:12 UTC (permalink / raw)
  To: Bjorn Andersson; +Cc: llvm, kbuild-all, linux-kernel, Steev Klimaszewski

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: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220915/202209150504.Q9XVY3rZ-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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:225:24: error: implicit declaration of function 'FIELD_GET' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                   ec->adapter_online = FIELD_GET(LENOVO_EC_ADPT_PRESENT, val);
                                        ^
   drivers/power/supply/yoga-c630-ec.c:391:6: error: implicit declaration of function 'FIELD_GET' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           if (FIELD_GET(LENOVO_EC_USB_EVENT_MUX, event))
               ^
   2 errors generated.


vim +/FIELD_GET +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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-14 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 21:12 [steev:c630-6.0.0-rc5-only-batt 2/15] drivers/power/supply/yoga-c630-ec.c:225:24: error: implicit declaration of function 'FIELD_GET' is invalid in C99 kernel test robot

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®