Philipp Rudo f8e3f4
 commit 91a3d0e00a5c18ee9bdd2c6c03ac64a6471e2559
Philipp Rudo f8e3f4
 Author: Sven Schnelle <svens@linux.ibm.com>
Philipp Rudo f8e3f4
 Date:   Thu Dec 16 12:43:53 2021 +0100
Philipp Rudo f8e3f4
 
Philipp Rudo f8e3f4
     s390: use KEXEC_ALL_OPTIONS
Philipp Rudo f8e3f4
     
Philipp Rudo f8e3f4
     KEXEC_ALL_OPTIONS could be used instead defining the same
Philipp Rudo f8e3f4
     array several times. This makes code easier to maintain when
Philipp Rudo f8e3f4
     new options are added.
Philipp Rudo f8e3f4
     
Philipp Rudo f8e3f4
     Suggested-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Philipp Rudo f8e3f4
     Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Philipp Rudo f8e3f4
     Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Philipp Rudo f8e3f4
     Signed-off-by: Simon Horman <horms@verge.net.au>
Philipp Rudo f8e3f4
 
Philipp Rudo f8e3f4
 diff --git a/kexec/arch/s390/kexec-image.c b/kexec/arch/s390/kexec-image.c
Philipp Rudo f8e3f4
 index a52399eafd2abd4a24142f0512251598ea812ca5..209ab77ddccbd60f10989e2d9fc273324aefa76d 100644
Philipp Rudo f8e3f4
 --- a/kexec/arch/s390/kexec-image.c
Philipp Rudo f8e3f4
 +++ b/kexec/arch/s390/kexec-image.c
Philipp Rudo f8e3f4
 @@ -57,10 +57,7 @@ int image_s390_load_file(int argc, char **argv, struct kexec_info *info)
Philipp Rudo f8e3f4
  
Philipp Rudo f8e3f4
  	static const struct option options[] =
Philipp Rudo f8e3f4
  		{
Philipp Rudo f8e3f4
 -			KEXEC_OPTIONS
Philipp Rudo f8e3f4
 -			{"command-line",     1, 0, OPT_APPEND},
Philipp Rudo f8e3f4
 -			{"append",           1, 0, OPT_APPEND},
Philipp Rudo f8e3f4
 -			{"initrd",           1, 0, OPT_RAMDISK},
Philipp Rudo f8e3f4
 +			KEXEC_ALL_OPTIONS
Philipp Rudo f8e3f4
  			{0,                  0, 0, 0},
Philipp Rudo f8e3f4
  		};
Philipp Rudo f8e3f4
  	static const char short_options[] = KEXEC_OPT_STR "";
Philipp Rudo f8e3f4
 @@ -111,10 +108,7 @@ image_s390_load(int argc, char **argv, const char *kernel_buf,
Philipp Rudo f8e3f4
  
Philipp Rudo f8e3f4
  	static const struct option options[] =
Philipp Rudo f8e3f4
  		{
Philipp Rudo f8e3f4
 -			KEXEC_OPTIONS
Philipp Rudo f8e3f4
 -			{"command-line",     1, 0, OPT_APPEND},
Philipp Rudo f8e3f4
 -			{"append",           1, 0, OPT_APPEND},
Philipp Rudo f8e3f4
 -			{"initrd",           1, 0, OPT_RAMDISK},
Philipp Rudo f8e3f4
 +			KEXEC_ALL_OPTIONS
Philipp Rudo f8e3f4
  			{0,                  0, 0, 0},
Philipp Rudo f8e3f4
  		};
Philipp Rudo f8e3f4
  	static const char short_options[] = KEXEC_OPT_STR "";