linux/drivers/platform/mellanox
David Thompson b129005ddf
mlxbf-bootctl: use sysfs_emit_at() in secure_boot_fuse_state_show()
A warning is seen when running the latest kernel on a BlueField SOC:
[251.512704] ------------[ cut here ]------------
[251.512711] invalid sysfs_emit: buf:0000000003aa32ae
[251.512720] WARNING: CPU: 1 PID: 705264 at fs/sysfs/file.c:767 sysfs_emit+0xac/0xc8

The warning is triggered because the mlxbf-bootctl driver invokes
"sysfs_emit()" with a buffer pointer that is not aligned to the
start of the page. The driver should instead use "sysfs_emit_at()"
to support non-zero offsets into the destination buffer.

Fixes: 9886f575de ("platform/mellanox: mlxbf-bootctl: use sysfs_emit() instead of sprintf()")
Signed-off-by: David Thompson <davthompson@nvidia.com>
Link: https://lore.kernel.org/r/20250407132558.2418719-1-davthompson@nvidia.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2025-04-11 12:56:52 +03:00
..
Kconfig mellanox: Relocate mlx-platform driver 2025-02-04 13:03:10 +02:00
Makefile mellanox: Relocate mlx-platform driver 2025-02-04 13:03:10 +02:00
mlx-platform.c platform: mellanox: mlx-platform: Change register name 2025-02-04 13:04:44 +02:00
mlxbf-bootctl.c mlxbf-bootctl: use sysfs_emit_at() in secure_boot_fuse_state_show() 2025-04-11 12:56:52 +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: Add support for clock_measure performance block 2025-01-15 16:26:35 +02: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 treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: use sysfs_emit() instead of sprintf() 2025-01-20 14:13:20 +02: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 Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
nvsw-sn2201.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00