oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: ChiYuan Huang <cy_huang@richtek.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-leds@vger.kernel.org,
	Lee Jones <lee@kernel.org>, Alice Chen <alice_chen@richtek.com>,
	ChiaEn Wu <chiaen_wu@richtek.com>
Subject: [lee-leds:for-leds-next 13/15] drivers/leds/rgb/leds-mt6370-rgb.c:889:15: error: implicit declaration of function 'FIELD_GET'
Date: Fri, 17 Mar 2023 17:57:01 +0800	[thread overview]
Message-ID: <202303171729.CcgyFx17-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git for-leds-next
head:   4ba9df04b7ac66d2d000ed7ae2d8136302d99a57
commit: 55a8a5c16eb37e7723244337af04388557f4fa2f [13/15] leds: rgb: mt6370: Add MediaTek MT6370 current sink type LED Indicator support
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20230317/202303171729.CcgyFx17-lkp@intel.com/config)
compiler: m68k-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://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git/commit/?id=55a8a5c16eb37e7723244337af04388557f4fa2f
        git remote add lee-leds https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git
        git fetch --no-tags lee-leds for-leds-next
        git checkout 55a8a5c16eb37e7723244337af04388557f4fa2f
        # 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=m68k olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/leds/rgb/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303171729.CcgyFx17-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/leds/rgb/leds-mt6370-rgb.c: In function 'mt6370_check_vendor_info':
>> drivers/leds/rgb/leds-mt6370-rgb.c:889:15: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
     889 |         vid = FIELD_GET(MT6370_VENDOR_ID_MASK, devinfo);
         |               ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_GET +889 drivers/leds/rgb/leds-mt6370-rgb.c

   879	
   880	static int mt6370_check_vendor_info(struct mt6370_priv *priv)
   881	{
   882		unsigned int devinfo, vid;
   883		int ret;
   884	
   885		ret = regmap_read(priv->regmap, MT6370_REG_DEV_INFO, &devinfo);
   886		if (ret)
   887			return ret;
   888	
 > 889		vid = FIELD_GET(MT6370_VENDOR_ID_MASK, devinfo);
   890		if (vid == MT6372_VENDOR_ID || vid == MT6372C_VENDOR_ID) {
   891			priv->reg_fields = mt6372_reg_fields;
   892			priv->ranges = mt6372_led_ranges;
   893			priv->pdata = &mt6372_pdata;
   894		} else {
   895			/* Common for MT6370/71 */
   896			priv->reg_fields = common_reg_fields;
   897			priv->ranges = common_led_ranges;
   898			priv->pdata = &common_pdata;
   899		}
   900	
   901		return 0;
   902	}
   903	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-03-17  9:57 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=202303171729.CcgyFx17-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alice_chen@richtek.com \
    --cc=chiaen_wu@richtek.com \
    --cc=cy_huang@richtek.com \
    --cc=lee@kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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;
as well as URLs for NNTP newsgroup(s).