Skip to contentSkip to conversation

memcg: remove forward declaration from sched.h

PATCH In review Li Zefan 2 participants 3 messages May 22, 2009

Subsystems (2)
lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 memcg: remove forward declaration from sched.h

This forward declaration seems pointless.

compile tested.

---
 sched.h |    1 -
 1 file changed, 1 deletion(-)
include/linux/sched.h +0 -1
@@ -93,7 +93,6 @@ struct sched_param {
 
 #include <asm/processor.h>
 
-struct mem_cgroup;
 struct exec_domain;
 struct futex_pi_state;
 struct robust_list_head;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Fri, 22 May 2009 14:27:32 +0800 Li Zefan <[email protected]> wrote:

This forward declaration seems pointless.

compile tested.

Nice catch. (but I don't know why this sneaked into..)

Quoted 15 lines
---
 sched.h |    1 -
 1 file changed, 1 deletion(-)
include/linux/sched.h +0 -2
@@ -93,7 +93,6 @@ struct sched_param {
 
 #include <asm/processor.h>
 
-struct mem_cgroup;
 struct exec_domain;
 struct futex_pi_state;
 struct robust_list_head;
--
Quoted 5 lines

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

author
#2 lore raw
Quoted 10 lines · KAMEZAWA Hiroyuki
Quoted 5 lines · On Fri, 22 May 2009 14:27:32 +0800 Li Zefan <[email protected]> wrote:

This forward declaration seems pointless.

compile tested.

Nice catch. (but I don't know why this sneaked into..)

It was long long ago when memcg was merged ;)

| commit 78fb74669e80883323391090e4d26d17fe29488f
| Author: Pavel Emelianov <[email protected]>
| Date:   Thu Feb 7 00:13:51 2008 -0800
|
|    Memory controller: accounting setup

But in that patch, the forward declation in sched.h was unneeded.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>