mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
rsh_log_store() calls the FIELD_PREP() macro without including the
required header file, resulting a build error:
CC drivers/platform/mellanox/mlxbf-bootctl.o
drivers/platform/mellanox/mlxbf-bootctl.c: In function ‘rsh_log_store’:
drivers/platform/mellanox/mlxbf-bootctl.c:429:16: error: implicit declaration of function ‘FIELD_PREP’ [-Wimplicit-function-declaration]
429 | data = FIELD_PREP(MLXBF_RSH_LOG_TYPE_MASK, MLXBF_RSH_LOG_TYPE_MSG);
| ^~~~~~~~~~
Fix this by including the <linux/bitfield.h> file.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| mlx-platform.c | ||
| mlxbf-bootctl.c | ||
| mlxbf-bootctl.h | ||
| mlxbf-pmc.c | ||
| mlxbf-tmfifo-regs.h | ||
| mlxbf-tmfifo.c | ||
| mlxreg-dpu.c | ||
| mlxreg-hotplug.c | ||
| mlxreg-io.c | ||
| mlxreg-lc.c | ||
| nvsw-sn2201.c | ||