public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC: -mm patch] swsusp: make some code static
       [not found] <20060111042135.24faf878.akpm@osdl.org>
@ 2006-01-12 10:48 ` Adrian Bunk
  2006-01-12 15:29   ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2006-01-12 10:48 UTC (permalink / raw)
  To: Andrew Morton, Rafael J. Wysocki; +Cc: linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2134 bytes --]

On Wed, Jan 11, 2006 at 04:21:35AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.15-mm2:
>...
> +swsusp-low-level-interface-rev-2.patch
>...
>  swsusp updates
>...

After this patch, we can make some code static.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

 include/linux/swap.h    |    1 -
 kernel/power/power.h    |    1 -
 kernel/power/snapshot.c |    4 ++--
 mm/swapfile.c           |    2 +-
 4 files changed, 3 insertions(+), 5 deletions(-)

--- linux-2.6.15-mm3-full/kernel/power/power.h.old	2006-01-12 01:01:49.000000000 +0100
+++ linux-2.6.15-mm3-full/kernel/power/power.h	2006-01-12 01:01:55.000000000 +0100
@@ -48,7 +48,6 @@
 /* References to section boundaries */
 extern const void __nosave_begin, __nosave_end;
 
-extern unsigned int nr_copy_pages;
 extern struct pbe *pagedir_nosave;
 
 /* Preferred image size in MB (default 500) */
--- linux-2.6.15-mm3-full/kernel/power/snapshot.c.old	2006-01-12 01:02:03.000000000 +0100
+++ linux-2.6.15-mm3-full/kernel/power/snapshot.c	2006-01-12 01:02:18.000000000 +0100
@@ -35,8 +35,8 @@
 #include "power.h"
 
 struct pbe *pagedir_nosave;
-unsigned int nr_copy_pages;
-unsigned int nr_meta_pages;
+static unsigned int nr_copy_pages;
+static unsigned int nr_meta_pages;
 
 #ifdef CONFIG_HIGHMEM
 unsigned int count_highmem_pages(void)
--- linux-2.6.15-mm3-full/include/linux/swap.h.old	2006-01-12 01:04:21.000000000 +0100
+++ linux-2.6.15-mm3-full/include/linux/swap.h	2006-01-12 01:04:33.000000000 +0100
@@ -232,7 +232,6 @@
 /* linux/mm/swapfile.c */
 extern long total_swap_pages;
 extern unsigned int nr_swapfiles;
-extern struct swap_info_struct swap_info[];
 extern void si_swapinfo(struct sysinfo *);
 extern swp_entry_t get_swap_page(void);
 extern swp_entry_t get_swap_page_of_type(int);
--- linux-2.6.15-mm3-full/mm/swapfile.c.old	2006-01-12 01:04:42.000000000 +0100
+++ linux-2.6.15-mm3-full/mm/swapfile.c	2006-01-12 01:04:51.000000000 +0100
@@ -44,7 +44,7 @@
 
 struct swap_list_t swap_list = {-1, -1};
 
-struct swap_info_struct swap_info[MAX_SWAPFILES];
+static struct swap_info_struct swap_info[MAX_SWAPFILES];
 
 static DECLARE_MUTEX(swapon_sem);
 


[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC: -mm patch] swsusp: make some code static
  2006-01-12 10:48 ` [RFC: -mm patch] swsusp: make some code static Adrian Bunk
@ 2006-01-12 15:29   ` Pavel Machek
  2006-01-12 16:18     ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2006-01-12 15:29 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Andrew Morton, Rafael J. Wysocki, linux-kernel, linux-pm

On Čt 12-01-06 11:48:12, Adrian Bunk wrote:
> On Wed, Jan 11, 2006 at 04:21:35AM -0800, Andrew Morton wrote:
> >...
> > Changes since 2.6.15-mm2:
> >...
> > +swsusp-low-level-interface-rev-2.patch
> >...
> >  swsusp updates
> >...
> 
> After this patch, we can make some code static.
> 
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>

Rafael should comment here. It is okay, but Rafael has some patches in
the queue, and it would be better if there were to clashes.
								Pavel

-- 
Thanks, Sharp!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC: -mm patch] swsusp: make some code static
  2006-01-12 15:29   ` Pavel Machek
@ 2006-01-12 16:18     ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2006-01-12 16:18 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Adrian Bunk, Andrew Morton, linux-kernel, linux-pm

Hi,

On Thursday, 12 January 2006 16:29, you wrote:
> On Čt 12-01-06 11:48:12, Adrian Bunk wrote:
> > On Wed, Jan 11, 2006 at 04:21:35AM -0800, Andrew Morton wrote:
> > >...
> > > Changes since 2.6.15-mm2:
> > >...
> > > +swsusp-low-level-interface-rev-2.patch
> > >...
> > >  swsusp updates
> > >...
> > 
> > After this patch, we can make some code static.

Nice catch. ;-)

> > 
> > 
> > Signed-off-by: Adrian Bunk <bunk@stusta.de>
> 
> Rafael should comment here. It is okay, but Rafael has some patches in
> the queue, and it would be better if there were to clashes.

It doesn't clash with any of my patches (just tested).

Greetings,
Rafael

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-12 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20060111042135.24faf878.akpm@osdl.org>
2006-01-12 10:48 ` [RFC: -mm patch] swsusp: make some code static Adrian Bunk
2006-01-12 15:29   ` Pavel Machek
2006-01-12 16:18     ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox