Danilo Krummrich 2c61b8c51d firmware_loader: annotate doctests as no_run
The doctests of `Firmware` are compile-time only tests, since they
require a proper `Device` and a valid path to a (firmware) blob in order
to do something sane on runtime - we can't satisfy both of those
requirements.

Hence, configure the example as `no_run`.

Unfortunately, the kernel's Rust build system can't consider the
`no_run` attribute yet. Hence, for the meantime, wrap the example code
into a new function and never actually call it.

Fixes: de6582833db0 ("rust: add firmware abstractions")
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://lore.kernel.org/r/20240708200724.3203-1-dakr@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-10 09:35:09 +02:00
..
2024-05-13 15:13:54 -07:00
2023-05-31 17:35:03 +02:00
2024-05-13 15:13:54 -07:00
2023-12-21 20:54:17 +01:00
2024-06-18 18:45:12 +02:00
2024-05-05 19:22:25 +02:00
2024-05-05 19:22:25 +02:00
2024-05-05 13:19:37 +02:00