diff options
| author | David Thompson <[email protected]> | 2025-04-07 13:25:58 +0000 |
|---|---|---|
| committer | Ilpo Järvinen <[email protected]> | 2025-04-11 09:56:52 +0000 |
| commit | b129005ddfc0e6daf04a6d3b928a9e474f9b3918 (patch) | |
| tree | 0a8338505805f918bd049c578e45c77bcdfe246c /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | platform/x86: x86-android-tablets: Add Vexia Edu Atla 10 tablet 5V data (diff) | |
| download | kernel-b129005ddfc0e6daf04a6d3b928a9e474f9b3918.tar.gz kernel-b129005ddfc0e6daf04a6d3b928a9e474f9b3918.zip | |
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: 9886f575de5a ("platform/mellanox: mlxbf-bootctl: use sysfs_emit() instead of sprintf()")
Signed-off-by: David Thompson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions
