s390/vmlogrdr: Use array instead of string initializer
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 24 Jan 2025 13:51:54 +0000 (14:51 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 29 Jan 2025 12:44:21 +0000 (13:44 +0100)
commit87f017d0792befa83722b99cb21f9c8f574cd71d
tree76c60225ab4921b095e6105f2eb167c62a9b49a8
parent76bda8a16d77063cffea9fc4e3ead033afba9d6d
s390/vmlogrdr: Use array instead of string initializer

Compiling vmlogrdr with GCC 15 generates this warning:

  CC [M]  drivers/s390/char/vmlogrdr.o
drivers/s390/char/vmlogrdr.c:126:29: error: initializer-string for array
 of ‘char’ is too long [-Werror=unterminated-string-initialization]
  126 |         { .system_service = "*LOGREC ",

Given that the system_service array intentionally contains a non-null
terminated string use an array initializer, instead of string
initializer to get rid of this warning.

Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/char/vmlogrdr.c