kernel/power/disk.c: make code static
Subsystems (2)
PATCH 1/1 kernel/power/disk.c: make code static
resume_file[] and create_image() can become static.
Signed-off-by Adrian Bunk <[email protected]>
---
kernel/power/disk.c | 4 ++-- kernel/power/swap.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-)
kernel/power/disk.c +2 -2
@@ -26,7 +26,7 @@static int noresume =0 ; -char resume_file[256 ] =CONFIG_PM_STD_PARTITION ; +static char resume_file[256 ] =CONFIG_PM_STD_PARTITION ;dev_t swsusp_resume_device;sector_t swsusp_resume_block;
@@ -145,7 +145,7 @@ static void platform_restore_cleanup(int platform_mode)* reappears in this routine after a restore. */ -int create_image (int platform_mode) +static int create_image (int platform_mode) {int error;
kernel/power/swap.c +0 -2
@@ -28,8 +28,6 @@#include "power.h" -extern char resume_file[]; -#define SWSUSP_SIG "S1SUSPEND"struct swsusp_header {
Quoted 3 lines · Adrian Bunk
resume_file[] and
create_image()can become static.Signed-off-by Adrian Bunk <[email protected]>
ACK.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 3 lines · Adrian Bunk
resume_file[] and
create_image()can become static.Signed-off-by Adrian Bunk <[email protected]>
ACK.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html