[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202211707.LrS0JBhZ-lkp@intel.com>
Date: Mon, 21 Feb 2022 17:11:04 +0800
From: kernel test robot <lkp@...el.com>
To: Martin PoviĊĦer <povik+lin@...ebit.org>
Cc: kbuild-all@...ts.01.org,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org
Subject: [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'
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/202202211707.LrS0JBhZ-lkp@intel.com/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 <lkp@...el.com>
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/kbuild-all@lists.01.org
Powered by blists - more mailing lists