diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-08-02 15:25:56 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2023-08-16 01:43:54 +0200 |
commit | 967afdf808cf66908a55c55b8ec5937cc20676ce (patch) | |
tree | c1dd9d8b0729a296db88b172cc75082743b3abf5 /arch/alpha | |
parent | hardening: Move BUG_ON_DATA_CORRUPTION to hardening options (diff) | |
download | linux-967afdf808cf66908a55c55b8ec5937cc20676ce.tar.xz linux-967afdf808cf66908a55c55b8ec5937cc20676ce.zip |
alpha: Replace one-element array with flexible-array member
One-element and zero-length arrays are deprecated. So, replace
one-element array in struct osf_dirent with flexible-array
member.
This results in no differences in binary output.
Signed-off-by: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/ZMpZZBShlLqyD3ax@work
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/kernel/osf_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index d98701ee36c6..5db88b627439 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -97,7 +97,7 @@ struct osf_dirent { unsigned int d_ino; unsigned short d_reclen; unsigned short d_namlen; - char d_name[1]; + char d_name[]; }; struct osf_dirent_callback { |