Skip to content

Commit

Permalink
kexec: define kexec_in_progress in !CONFIG_KEXEC case
Browse files Browse the repository at this point in the history
If some piece of code wants to check kexec_in_progress it has to be put
in #ifdef CONFIG_KEXEC block to not break the build in !CONFIG_KEXEC
case. Overcome this limitation by defining kexec_in_progress to false.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Vitaly Kuznetsov authored and Greg Kroah-Hartman committed Aug 5, 2015
1 parent 06210b4 commit 2b94ed2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/kexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ struct pt_regs;
struct task_struct;
static inline void crash_kexec(struct pt_regs *regs) { }
static inline int kexec_should_crash(struct task_struct *p) { return 0; }
#define kexec_in_progress false
#endif /* CONFIG_KEXEC */

#endif /* !defined(__ASSEBMLY__) */
Expand Down

0 comments on commit 2b94ed2

Please sign in to comment.