summaryrefslogtreecommitdiffstats
path: root/lib/fdt_ro.c
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2022-11-10 17:41:27 +0100
committerMiguel Ojeda <ojeda@kernel.org>2022-12-04 01:59:15 +0100
commit650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6 (patch)
tree6ecbba36daeb21d8ede719688995c7205e17f8ba /lib/fdt_ro.c
parentrust: str: add `BStr` type (diff)
downloadlinux-650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6.tar.xz
linux-650ec51561fd201bcf47ce9b1d9b6fedd4bb60a6.zip
rust: str: add `b_str!` macro
Add the `b_str!` macro, which creates a new `BStr` from a string literal. It is usable in const contexts, for instance: const X: &BStr = b_str!("Example"); Signed-off-by: Gary Guo <gary@garyguo.net> [Reworded, adapted for upstream and applied latest changes] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'lib/fdt_ro.c')
0 files changed, 0 insertions, 0 deletions