Prototype ifdown() in kexec.h, not nested in main().
Subsystems (2)
PATCH 1/1 Prototype ifdown() in kexec.h, not nested in main().
Signed-off-by Jamey Sharp <[email protected]>
---
Another generic patch extracted from my Windows porting work.
kexec/kexec.c | 3 +-- kexec/kexec.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-)
kexec/kexec.c +1 -2
@@ -956,8 +956,7 @@ int main(int argc, char *argv[])sync (); }if ((result ==0 ) && do_ifdown) { -extern int ifdown (void ); - (void )ifdown (); +ifdown (); }if ((result ==0 ) && do_exec) { result =my_exec ();
kexec/kexec.h +2 -0
@@ -209,6 +209,8 @@ extern unsigned long add_buffer_phys_virt(struct kexec_info *info, int buf_end, int phys);extern void arch_reuse_initrd (void ); +extern int ifdown (void ); +extern unsigned char purgatory[];extern size_t purgatory_size;
Signature · 7 lines
1.5.4.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 3 lines · Jamey Sharp
Signed-off-by Jamey Sharp <[email protected]>---
Another generic patch extracted from my Windows porting work.
Thanks for cleaning up that abomination.
Applied.
Signature · 7 lines
Horms _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec