[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203121139.Zs11G62M-lkp@intel.com>
Date: Sat, 12 Mar 2022 11:09:15 +0800
From: kernel test robot <lkp@...el.com>
To: Martin PoviĊĦer <povik+lin@...ebit.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Hector Martin <marcan@...can.st>
Subject: [asahilinux:asahi 37/158] drivers/clk/clk-apple-nco.c:139:16: error:
implicit declaration of function 'FIELD_PREP'
tree: https://github.com/AsahiLinux/linux asahi
head: a90a4472ece3167409168aab7c5010fe0eba8bb9
commit: 5e7b59cb6fe99a81dcedffcf5be74e9267b4d969 [37/158] clk: clk-apple-nco: Add driver for Apple NCO
config: h8300-allyesconfig (https://download.01.org/0day-ci/archive/20220312/202203121139.Zs11G62M-lkp@intel.com/config)
compiler: h8300-linux-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/AsahiLinux/linux/commit/5e7b59cb6fe99a81dcedffcf5be74e9267b4d969
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux asahi
git checkout 5e7b59cb6fe99a81dcedffcf5be74e9267b4d969
# 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=h8300 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
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for DRM_GEM_SHMEM_HELPER
Depends on HAS_IOMEM && DRM && MMU
Selected by
- DRM_SSD130X && HAS_IOMEM && DRM
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
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists