diff options
| author | Sam Protsenko <[email protected]> | 2024-12-10 20:25:48 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-30 13:20:24 -0600 |
| commit | 8ab61628b8a2292aa9267de64f42d2a81882321b (patch) | |
| tree | 91e4a953885f908154ab16862237e2f9ca164664 /lib | |
| parent | a59887d251307ad4ebc194b58ddb5af003e8fe06 (diff) | |
lmb: Make const flag_str[] in lmb_print_region_flags() more const
flag_str[] is a pointer to const. Make it also a const pointer. Improve
a style a bit while a it, to make this line fit 80 characters limit.
No functional change.
Signed-off-by: Sam Protsenko <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lmb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lmb.c b/lib/lmb.c index 1d57f48bff6..0f9de26b64a 100644 --- a/lib/lmb.c +++ b/lib/lmb.c @@ -472,7 +472,8 @@ static int lmb_map_update_notify(phys_addr_t addr, phys_size_t size, u8 op, static void lmb_print_region_flags(enum lmb_flags flags) { - const char *flag_str[] = { "none", "no-map", "no-overwrite", "no-notify" }; + const char * const flag_str[] = { "none", "no-map", "no-overwrite", + "no-notify" }; unsigned int pflags = flags & (LMB_NOMAP | LMB_NOOVERWRITE | LMB_NONOTIFY); |
