linux/drivers/platform/mellanox
Nikolay Kulikov 46b14c6f11
mlxbf-bootctl: fix the build error with FIELD_PREP()
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: e9d1b2d0f7 ("mlxbf-bootctl: Add sysfs file for BlueField boot log")
Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260810-mellanox_fix_implicit_declaration-v1-1-352e647b8f28@gmail.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2026-08-18 17:30:32 +03:00
..
Kconfig platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU 2025-04-30 14:05:49 +03:00
Makefile platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU 2025-04-30 14:05:49 +03:00
mlx-platform.c platform: mellanox: mlx-platform: Add support DGX flavor of next-generation 800GB/s ethernet switch. 2026-01-28 14:38:21 +02:00
mlxbf-bootctl.c mlxbf-bootctl: fix the build error with FIELD_PREP() 2026-08-18 17:30:32 +03:00
mlxbf-bootctl.h mlxbf-bootctl: Support sysfs entries for RTC battery status 2025-02-03 14:57:27 +02:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: Check ACPI_COMPANION() against NULL 2026-07-10 16:33:55 +03:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mlxreg-dpu.c platform/mellanox: Fix spelling and comment clarity in Mellanox drivers 2025-06-26 17:11:58 +03:00
mlxreg-hotplug.c platform/mellanox: Rename field to improve code readability 2025-04-15 17:14:30 +03:00
mlxreg-io.c platform/mellanox: mlxreg-io: use sysfs_emit() instead of sprintf() 2025-01-20 14:13:22 +02:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Fix logic error in power state check 2025-06-30 14:06:55 +03:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: Drop unused include 2026-03-23 11:55:32 +02:00