GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:axboe/linux-block/m1/2022-02-19 517/552] drivers/clk/clk-apple-nco.c:139:16: error: implicit declaration of function 'FIELD_PREP'
@ 2022-02-21  9:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-21  9:11 UTC (permalink / raw)
  To: Martin Povišer; +Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel

tree:   https://github.com/ammarfaizi2/linux-block axboe/linux-block/m1/2022-02-19
head:   b781e0ccdc0c9a931571d15db09d45b7258b9905
commit: 276bb3ac97d54e2461f27705391a3b87750a390e [517/552] clk: clk-apple-nco: Add driver for Apple NCO
config: arm-randconfig-r026-20220221 (https://download.01.org/0day-ci/archive/20220221/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/ammarfaizi2/linux-block/commit/276bb3ac97d54e2461f27705391a3b87750a390e
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block axboe/linux-block/m1/2022-02-19
        git checkout 276bb3ac97d54e2461f27705391a3b87750a390e
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

   drivers/clk/clk-apple-nco.c: In function 'applnco_div_translate':
>> drivers/clk/clk-apple-nco.c:139:16: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
     139 |         return FIELD_PREP(DIV_COARSE, tbl->fwd[coarse - COARSE_DIV_OFFSET]) |
         |                ^~~~~~~~~~
   drivers/clk/clk-apple-nco.c: In function 'applnco_div_translate_inv':
>> drivers/clk/clk-apple-nco.c:147:27: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
     147 |         coarse = tbl->inv[FIELD_GET(DIV_COARSE, regval)] + COARSE_DIV_OFFSET;
         |                           ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +139 drivers/clk/clk-apple-nco.c

   131	
   132	static u32 applnco_div_translate(struct applnco_tables *tbl, unsigned int div)
   133	{
   134		unsigned int coarse = div / 4;
   135	
   136		if (WARN_ON(applnco_div_out_of_range(div)))
   137			return 0;
   138	
 > 139		return FIELD_PREP(DIV_COARSE, tbl->fwd[coarse - COARSE_DIV_OFFSET]) |
   140				FIELD_PREP(DIV_FINE, div % 4);
   141	}
   142	
   143	static unsigned int applnco_div_translate_inv(struct applnco_tables *tbl, u32 regval)
   144	{
   145		unsigned int coarse, fine;
   146	
 > 147		coarse = tbl->inv[FIELD_GET(DIV_COARSE, regval)] + COARSE_DIV_OFFSET;
   148		fine = FIELD_GET(DIV_FINE, regval);
   149	
   150		return coarse * 4 + fine;
   151	}
   152	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

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

only message in thread, other threads:[~2022-02-21  9:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21  9:11 [ammarfaizi2-block:axboe/linux-block/m1/2022-02-19 517/552] drivers/clk/clk-apple-nco.c:139:16: error: implicit declaration of function 'FIELD_PREP' 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