Skip to content

Commit cb7e151

Browse files
Wei FangNipaLocal
Wei Fang
authored and
NipaLocal
committed
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: 4701073 ("net: enetc: add initial netc-lib driver to support NTMP") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Wei Fang <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 23a5a5c commit cb7e151

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/freescale/enetc/ntmp_private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#ifndef __NTMP_PRIVATE_H
88
#define __NTMP_PRIVATE_H
99

10+
#include <linux/bitfield.h>
1011
#include <linux/fsl/ntmp.h>
1112

1213
#define NTMP_EID_REQ_LEN 8

0 commit comments

Comments
 (0)