From: Wei Fang Date: Mon, 12 May 2025 06:17:01 +0000 (+0800) Subject: net: enetc: fix implicit declaration of function FIELD_PREP X-Git-Tag: v6.16-rc1~132^2~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=664bf117a30804b442a88a8462591bb23f5a0f22;p=thirdparty%2Fkernel%2Flinux.git net: enetc: fix implicit declaration of function FIELD_PREP The kernel test robot reported the following error: 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, | ^~~~~~~~~~ Therefore, add "bitfield.h" to ntmp_private.h to fix this issue. Fixes: 4701073c3deb ("net: enetc: add initial netc-lib driver to support NTMP") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202505101047.NTMcerZE-lkp@intel.com/ Signed-off-by: Wei Fang Reviewed-by: Vladimir Oltean Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/enetc/ntmp_private.h b/drivers/net/ethernet/freescale/enetc/ntmp_private.h index 685b388e7ddf6..34394e40fddd4 100644 --- a/drivers/net/ethernet/freescale/enetc/ntmp_private.h +++ b/drivers/net/ethernet/freescale/enetc/ntmp_private.h @@ -7,6 +7,7 @@ #ifndef __NTMP_PRIVATE_H #define __NTMP_PRIVATE_H +#include #include #define NTMP_EID_REQ_LEN 8