diff options
| author | Wei Fang <[email protected]> | 2025-05-12 06:17:01 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2025-05-14 08:48:49 +0000 |
| commit | 664bf117a30804b442a88a8462591bb23f5a0f22 (patch) | |
| tree | 094e84712a9ce20e869ddf06508682d5f4e467c1 /kernel/trace/trace_functions.c | |
| parent | net: wangxun: Correct clerical errors in comments (diff) | |
| download | kernel-664bf117a30804b442a88a8462591bb23f5a0f22.tar.gz kernel-664bf117a30804b442a88a8462591bb23f5a0f22.zip | |
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 <[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: David S. Miller <[email protected]>
Diffstat (limited to 'kernel/trace/trace_functions.c')
0 files changed, 0 insertions, 0 deletions
