drivers/net/ethernet/freescale/enetc/ntmp.c:203:38: error: implicit declaration of function 'FIELD_PREP'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git main head: 0b28182c73a3d013bcabbb890dc1070a8388f55a commit: 4701073c3debd16d7f534f3eb808bd9b50601c0c [4/35] net: enetc: add initial netc-lib driver to support NTMP config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250510/[email protected]/config) compiler: alpha-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250510/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
drivers/net/ethernet/freescale/enetc/ntmp.c: In function 'ntmp_fill_request_hdr':
>> drivers/net/ethernet/freescale/enetc/ntmp.c:203:38: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
203 | cbd->req_hdr.access_method = FIELD_PREP(NTMP_ACCESS_METHOD,
| ^~~~~~~~~~vim +/FIELD_PREP +203 drivers/net/ethernet/freescale/enetc/ntmp.c
191
192 static void ntmp_fill_request_hdr(union netc_cbd *cbd, dma_addr_t dma,
193 int len, int table_id, int cmd,
194 int access_method)
195 {
196 dma_addr_t dma_align;
197
198 memset(cbd, 0, sizeof(*cbd));
199 dma_align = ALIGN(dma, NTMP_DATA_ADDR_ALIGN);
200 cbd->req_hdr.addr = cpu_to_le64(dma_align);
201 cbd->req_hdr.len = cpu_to_le32(len);
202 cbd->req_hdr.cmd = cmd;
> 203 cbd->req_hdr.access_method = FIELD_PREP(NTMP_ACCESS_METHOD,
204 access_method);
205 cbd->req_hdr.table_id = table_id;
206 cbd->req_hdr.ver_cci_rr = FIELD_PREP(NTMP_HDR_VERSION,
207 NTMP_HDR_VER2);
208 /* For NTMP version 2.0 or later version */
209 cbd->req_hdr.npf = cpu_to_le32(NTMP_NPF);
210 }
211
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki