[PATCH] fix kexec-tools options

Maneesh Soni maneesh at in.ibm.com
Thu May 24 08:49:36 EDT 2007


o value for OPT_REUSE_INITRD clashes with arch specific options which are
  defined as (OPT_MAX + 1), like --serial option on x86_64. Changed the
  values so that OPT_REUSE_INITRD is less than OPT_MAX.

Signed-off-by: Maneesh Soni <maneesh at in.ibm.com>

----
--- kexec.h.orig	2007-05-15 10:06:33.000000000 +0530
+++ kexec.h	2007-05-24 17:37:34.000000000 +0530
@@ -162,8 +162,8 @@
 #define OPT_PANIC		'p'
 #define OPT_MEM_MIN             256
 #define OPT_MEM_MAX             257
-#define OPT_MAX			258
-#define OPT_REUSE_INITRD	259
+#define OPT_REUSE_INITRD	258
+#define OPT_MAX			259
 #define KEXEC_OPTIONS \
 	{ "help",		0, 0, OPT_HELP }, \
 	{ "version",		0, 0, OPT_VERSION }, \


Thanks
Maneesh

-- 
Maneesh Soni
Linux Technology Center,
IBM India Systems and Technology Lab, 
Bangalore, India



More information about the kexec mailing list