All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-18 14:11 ` Andrey Ryabinin
  0 siblings, 0 replies; 14+ messages in thread
From: Andrey Ryabinin @ 2014-06-18 14:11 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Vladimir Davydov, Pekka Enberg, Christoph Lameter, linux-mm,
	linux-kernel, Andrey Ryabinin

Guarding section:
	#ifndef MM_SLAB_H
	#define MM_SLAB_H
	...
	#endif
currently doesn't cover the whole mm/slab.h. It seems like it was
done unintentionally.

Wrap the whole file by moving closing #endif to the end of it.

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
---
 mm/slab.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slab.h b/mm/slab.h
index 961a3fb..90954f5e 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -260,8 +260,6 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
 	WARN_ON_ONCE(1);
 	return s;
 }
-#endif
-
 
 /*
  * The slab lists for all objects.
@@ -296,3 +294,5 @@ struct kmem_cache_node {
 
 void *slab_next(struct seq_file *m, void *p, loff_t *pos);
 void slab_stop(struct seq_file *m, void *p);
+
+#endif /* MM_SLAB_H */
-- 
1.8.5.5


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

* [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-18 14:11 ` Andrey Ryabinin
  0 siblings, 0 replies; 14+ messages in thread
From: Andrey Ryabinin @ 2014-06-18 14:11 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Vladimir Davydov, Pekka Enberg, Christoph Lameter, linux-mm,
	linux-kernel, Andrey Ryabinin

Guarding section:
	#ifndef MM_SLAB_H
	#define MM_SLAB_H
	...
	#endif
currently doesn't cover the whole mm/slab.h. It seems like it was
done unintentionally.

Wrap the whole file by moving closing #endif to the end of it.

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
---
 mm/slab.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slab.h b/mm/slab.h
index 961a3fb..90954f5e 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -260,8 +260,6 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
 	WARN_ON_ONCE(1);
 	return s;
 }
-#endif
-
 
 /*
  * The slab lists for all objects.
@@ -296,3 +294,5 @@ struct kmem_cache_node {
 
 void *slab_next(struct seq_file *m, void *p, loff_t *pos);
 void slab_stop(struct seq_file *m, void *p);
+
+#endif /* MM_SLAB_H */
-- 
1.8.5.5

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

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
  2014-06-18 14:11 ` Andrey Ryabinin
@ 2014-06-18 14:26   ` Christoph Lameter
  -1 siblings, 0 replies; 14+ messages in thread
From: Christoph Lameter @ 2014-06-18 14:26 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, linux-mm, linux-kernel

On Wed, 18 Jun 2014, Andrey Ryabinin wrote:

> Guarding section:
> 	#ifndef MM_SLAB_H
> 	#define MM_SLAB_H
> 	...
> 	#endif
> currently doesn't cover the whole mm/slab.h. It seems like it was
> done unintentionally.
>
> Wrap the whole file by moving closing #endif to the end of it.

Acked-by: Christoph Lameter <cl@linux.com>

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-18 14:26   ` Christoph Lameter
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Lameter @ 2014-06-18 14:26 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, linux-mm, linux-kernel

On Wed, 18 Jun 2014, Andrey Ryabinin wrote:

> Guarding section:
> 	#ifndef MM_SLAB_H
> 	#define MM_SLAB_H
> 	...
> 	#endif
> currently doesn't cover the whole mm/slab.h. It seems like it was
> done unintentionally.
>
> Wrap the whole file by moving closing #endif to the end of it.

Acked-by: Christoph Lameter <cl@linux.com>

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

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
  2014-06-18 14:11 ` Andrey Ryabinin
@ 2014-06-18 20:22   ` David Rientjes
  -1 siblings, 0 replies; 14+ messages in thread
From: David Rientjes @ 2014-06-18 20:22 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, Christoph Lameter,
	linux-mm, linux-kernel

On Wed, 18 Jun 2014, Andrey Ryabinin wrote:

> Guarding section:
> 	#ifndef MM_SLAB_H
> 	#define MM_SLAB_H
> 	...
> 	#endif
> currently doesn't cover the whole mm/slab.h. It seems like it was
> done unintentionally.
> 
> Wrap the whole file by moving closing #endif to the end of it.
> 
> Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>

Acked-by: David Rientjes <rientjes@google.com>

Looks like

ca34956b804b ("slab: Common definition for kmem_cache_node")
e25839f67948 ("mm/slab: Sharing s_next and s_stop between slab and slub
276a2439ce79 ("mm/slab: Give s_next and s_stop slab-specific names")

added onto the header without the guard and it has been this way since 
Jan 10 2013.  Andrey, how did you notice that this was an issue?  Simply 
by visual inspection?

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-18 20:22   ` David Rientjes
  0 siblings, 0 replies; 14+ messages in thread
From: David Rientjes @ 2014-06-18 20:22 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, Christoph Lameter,
	linux-mm, linux-kernel

On Wed, 18 Jun 2014, Andrey Ryabinin wrote:

> Guarding section:
> 	#ifndef MM_SLAB_H
> 	#define MM_SLAB_H
> 	...
> 	#endif
> currently doesn't cover the whole mm/slab.h. It seems like it was
> done unintentionally.
> 
> Wrap the whole file by moving closing #endif to the end of it.
> 
> Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>

Acked-by: David Rientjes <rientjes@google.com>

Looks like

ca34956b804b ("slab: Common definition for kmem_cache_node")
e25839f67948 ("mm/slab: Sharing s_next and s_stop between slab and slub
276a2439ce79 ("mm/slab: Give s_next and s_stop slab-specific names")

added onto the header without the guard and it has been this way since 
Jan 10 2013.  Andrey, how did you notice that this was an issue?  Simply 
by visual inspection?

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

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
  2014-06-18 14:11 ` Andrey Ryabinin
@ 2014-06-19  7:17   ` Vladimir Davydov
  -1 siblings, 0 replies; 14+ messages in thread
From: Vladimir Davydov @ 2014-06-19  7:17 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Pekka Enberg, Christoph Lameter, linux-mm, linux-kernel

On Wed, Jun 18, 2014 at 06:11:35PM +0400, Andrey Ryabinin wrote:
> Guarding section:
> 	#ifndef MM_SLAB_H
> 	#define MM_SLAB_H
> 	...
> 	#endif
> currently doesn't cover the whole mm/slab.h. It seems like it was
> done unintentionally.
> 
> Wrap the whole file by moving closing #endif to the end of it.
> 
> Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>

Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-19  7:17   ` Vladimir Davydov
  0 siblings, 0 replies; 14+ messages in thread
From: Vladimir Davydov @ 2014-06-19  7:17 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Pekka Enberg, Christoph Lameter, linux-mm, linux-kernel

On Wed, Jun 18, 2014 at 06:11:35PM +0400, Andrey Ryabinin wrote:
> Guarding section:
> 	#ifndef MM_SLAB_H
> 	#define MM_SLAB_H
> 	...
> 	#endif
> currently doesn't cover the whole mm/slab.h. It seems like it was
> done unintentionally.
> 
> Wrap the whole file by moving closing #endif to the end of it.
> 
> Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>

Reviewed-by: Vladimir Davydov <vdavydov@parallels.com>

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

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
  2014-06-18 20:22   ` David Rientjes
@ 2014-06-19  7:29     ` Andrey Ryabinin
  -1 siblings, 0 replies; 14+ messages in thread
From: Andrey Ryabinin @ 2014-06-19  7:29 UTC (permalink / raw)
  To: David Rientjes
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, Christoph Lameter,
	linux-mm, linux-kernel

On 06/19/14 00:22, David Rientjes wrote:
> On Wed, 18 Jun 2014, Andrey Ryabinin wrote:
> 
>> Guarding section:
>> 	#ifndef MM_SLAB_H
>> 	#define MM_SLAB_H
>> 	...
>> 	#endif
>> currently doesn't cover the whole mm/slab.h. It seems like it was
>> done unintentionally.
>>
>> Wrap the whole file by moving closing #endif to the end of it.
>>
>> Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
> 
> Acked-by: David Rientjes <rientjes@google.com>
> 
> Looks like
> 
> ca34956b804b ("slab: Common definition for kmem_cache_node")
> e25839f67948 ("mm/slab: Sharing s_next and s_stop between slab and slub
> 276a2439ce79 ("mm/slab: Give s_next and s_stop slab-specific names")
> 
> added onto the header without the guard and it has been this way since 
> Jan 10 2013.  Andrey, how did you notice that this was an issue?  Simply 
> by visual inspection?
> 

I had to do some modifications in this file for some reasons, and for me it was hard to not
notice lack of endif in the end.

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-19  7:29     ` Andrey Ryabinin
  0 siblings, 0 replies; 14+ messages in thread
From: Andrey Ryabinin @ 2014-06-19  7:29 UTC (permalink / raw)
  To: David Rientjes
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, Christoph Lameter,
	linux-mm, linux-kernel

On 06/19/14 00:22, David Rientjes wrote:
> On Wed, 18 Jun 2014, Andrey Ryabinin wrote:
> 
>> Guarding section:
>> 	#ifndef MM_SLAB_H
>> 	#define MM_SLAB_H
>> 	...
>> 	#endif
>> currently doesn't cover the whole mm/slab.h. It seems like it was
>> done unintentionally.
>>
>> Wrap the whole file by moving closing #endif to the end of it.
>>
>> Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
> 
> Acked-by: David Rientjes <rientjes@google.com>
> 
> Looks like
> 
> ca34956b804b ("slab: Common definition for kmem_cache_node")
> e25839f67948 ("mm/slab: Sharing s_next and s_stop between slab and slub
> 276a2439ce79 ("mm/slab: Give s_next and s_stop slab-specific names")
> 
> added onto the header without the guard and it has been this way since 
> Jan 10 2013.  Andrey, how did you notice that this was an issue?  Simply 
> by visual inspection?
> 

I had to do some modifications in this file for some reasons, and for me it was hard to not
notice lack of endif in the end.

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

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
  2014-06-19  7:29     ` Andrey Ryabinin
@ 2014-06-19  9:13       ` David Rientjes
  -1 siblings, 0 replies; 14+ messages in thread
From: David Rientjes @ 2014-06-19  9:13 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, Christoph Lameter,
	linux-mm, linux-kernel

On Thu, 19 Jun 2014, Andrey Ryabinin wrote:

> I had to do some modifications in this file for some reasons, and for me it was hard to not
> notice lack of endif in the end.
> 

Ok, cool, I don't think there's any need for a stable backport in that 
case.  Thanks for fixing it!

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-19  9:13       ` David Rientjes
  0 siblings, 0 replies; 14+ messages in thread
From: David Rientjes @ 2014-06-19  9:13 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: Andrew Morton, Vladimir Davydov, Pekka Enberg, Christoph Lameter,
	linux-mm, linux-kernel

On Thu, 19 Jun 2014, Andrey Ryabinin wrote:

> I had to do some modifications in this file for some reasons, and for me it was hard to not
> notice lack of endif in the end.
> 

Ok, cool, I don't think there's any need for a stable backport in that 
case.  Thanks for fixing it!

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

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
  2014-06-19  9:13       ` David Rientjes
@ 2014-06-19 14:37         ` Christoph Lameter
  -1 siblings, 0 replies; 14+ messages in thread
From: Christoph Lameter @ 2014-06-19 14:37 UTC (permalink / raw)
  To: David Rientjes
  Cc: Andrey Ryabinin, Andrew Morton, Vladimir Davydov, Pekka Enberg,
	linux-mm, linux-kernel

On Thu, 19 Jun 2014, David Rientjes wrote:

> On Thu, 19 Jun 2014, Andrey Ryabinin wrote:
>
> > I had to do some modifications in this file for some reasons, and for me it was hard to not
> > notice lack of endif in the end.
> >
>
> Ok, cool, I don't think there's any need for a stable backport in that
> case.  Thanks for fixing it!

mm/slab.h is only included by mm/sl?b*.c so there is actually no effect.

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

* Re: [PATCH] mm: slab.h: wrap the whole file with guarding macro
@ 2014-06-19 14:37         ` Christoph Lameter
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Lameter @ 2014-06-19 14:37 UTC (permalink / raw)
  To: David Rientjes
  Cc: Andrey Ryabinin, Andrew Morton, Vladimir Davydov, Pekka Enberg,
	linux-mm, linux-kernel

On Thu, 19 Jun 2014, David Rientjes wrote:

> On Thu, 19 Jun 2014, Andrey Ryabinin wrote:
>
> > I had to do some modifications in this file for some reasons, and for me it was hard to not
> > notice lack of endif in the end.
> >
>
> Ok, cool, I don't think there's any need for a stable backport in that
> case.  Thanks for fixing it!

mm/slab.h is only included by mm/sl?b*.c so there is actually no effect.

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

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

end of thread, other threads:[~2014-06-19 14:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-18 14:11 [PATCH] mm: slab.h: wrap the whole file with guarding macro Andrey Ryabinin
2014-06-18 14:11 ` Andrey Ryabinin
2014-06-18 14:26 ` Christoph Lameter
2014-06-18 14:26   ` Christoph Lameter
2014-06-18 20:22 ` David Rientjes
2014-06-18 20:22   ` David Rientjes
2014-06-19  7:29   ` Andrey Ryabinin
2014-06-19  7:29     ` Andrey Ryabinin
2014-06-19  9:13     ` David Rientjes
2014-06-19  9:13       ` David Rientjes
2014-06-19 14:37       ` Christoph Lameter
2014-06-19 14:37         ` Christoph Lameter
2014-06-19  7:17 ` Vladimir Davydov
2014-06-19  7:17   ` Vladimir Davydov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.