linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mempool: add missing include
@ 2015-04-09  9:46 Arnd Bergmann
  2015-04-09 19:31 ` David Rientjes
  0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2015-04-09  9:46 UTC (permalink / raw)
  To: Andrew Morton
  Cc: David Rientjes, Andrey Ryabinin, linux-mm, linux-kernel,
	linux-arm-kernel

This is a fix^3 for the mempool poisoning patch, which introduces
a compile-time error on some ARM randconfig builds:

mm/mempool.c: In function 'check_element':
mm/mempool.c:65:16: error: implicit declaration of function 'kmap_atomic' [-Werror=implicit-function-declaration]
   void *addr = kmap_atomic((struct page *)element);

The problem is clearly the missing declaration, and including
linux/highmem.h fixes it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: a3db5a8463b0db ("mm, mempool: poison elements backed by page allocator fix fix")

diff --git a/mm/mempool.c b/mm/mempool.c
index 05ad55e61264..5e7c4a871391 100644
--- a/mm/mempool.c
+++ b/mm/mempool.c
@@ -12,6 +12,7 @@
 #include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/kasan.h>
+#include <linux/highmem.h>
 #include <linux/kmemleak.h>
 #include <linux/export.h>
 #include <linux/mempool.h>

--
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] 5+ messages in thread

* Re: [PATCH] mempool: add missing include
  2015-04-09  9:46 [PATCH] mempool: add missing include Arnd Bergmann
@ 2015-04-09 19:31 ` David Rientjes
  2015-04-09 21:14   ` Arnd Bergmann
  0 siblings, 1 reply; 5+ messages in thread
From: David Rientjes @ 2015-04-09 19:31 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Andrew Morton, Andrey Ryabinin, linux-mm, linux-kernel, linux-arm-kernel

On Thu, 9 Apr 2015, Arnd Bergmann wrote:

> This is a fix^3 for the mempool poisoning patch, which introduces
> a compile-time error on some ARM randconfig builds:
> 
> mm/mempool.c: In function 'check_element':
> mm/mempool.c:65:16: error: implicit declaration of function 'kmap_atomic' [-Werror=implicit-function-declaration]
>    void *addr = kmap_atomic((struct page *)element);
> 
> The problem is clearly the missing declaration, and including
> linux/highmem.h fixes it.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: a3db5a8463b0db ("mm, mempool: poison elements backed by page allocator fix fix")

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

Thanks!  Can you confirm that this is because CONFIG_BLOCK is disabled and 
not something else?

--
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] 5+ messages in thread

* Re: [PATCH] mempool: add missing include
  2015-04-09 19:31 ` David Rientjes
@ 2015-04-09 21:14   ` Arnd Bergmann
  2015-04-09 23:12     ` David Rientjes
  0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2015-04-09 21:14 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: David Rientjes, Andrey Ryabinin, linux-mm, Andrew Morton, linux-kernel

On Thursday 09 April 2015 12:31:05 David Rientjes wrote:
> On Thu, 9 Apr 2015, Arnd Bergmann wrote:
> 
> > This is a fix^3 for the mempool poisoning patch, which introduces
> > a compile-time error on some ARM randconfig builds:
> > 
> > mm/mempool.c: In function 'check_element':
> > mm/mempool.c:65:16: error: implicit declaration of function 'kmap_atomic' [-Werror=implicit-function-declaration]
> >    void *addr = kmap_atomic((struct page *)element);
> > 
> > The problem is clearly the missing declaration, and including
> > linux/highmem.h fixes it.
> > 
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > Fixes: a3db5a8463b0db ("mm, mempool: poison elements backed by page allocator fix fix")
> 
> Acked-by: David Rientjes <rientjes@google.com>
> 
> Thanks!  Can you confirm that this is because CONFIG_BLOCK is disabled and 
> not something else?

Unfortunately I've lost the information which build was responsible
for this error (normally I keep it, but my script failed here because the
same config introduced two new regressions). CONFIG_BLOCK sounds plausible
here.

If necessary, I can repeat the last few hundred builds without this
patch to find out what it was.

	Arnd

--
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] 5+ messages in thread

* Re: [PATCH] mempool: add missing include
  2015-04-09 21:14   ` Arnd Bergmann
@ 2015-04-09 23:12     ` David Rientjes
  2015-04-09 23:22       ` Jim Davis
  0 siblings, 1 reply; 5+ messages in thread
From: David Rientjes @ 2015-04-09 23:12 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: linux-arm-kernel, Andrey Ryabinin, linux-mm, Andrew Morton, linux-kernel

On Thu, 9 Apr 2015, Arnd Bergmann wrote:

> > > This is a fix^3 for the mempool poisoning patch, which introduces
> > > a compile-time error on some ARM randconfig builds:
> > > 
> > > mm/mempool.c: In function 'check_element':
> > > mm/mempool.c:65:16: error: implicit declaration of function 'kmap_atomic' [-Werror=implicit-function-declaration]
> > >    void *addr = kmap_atomic((struct page *)element);
> > > 
> > > The problem is clearly the missing declaration, and including
> > > linux/highmem.h fixes it.
> > > 
> > > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> > > Fixes: a3db5a8463b0db ("mm, mempool: poison elements backed by page allocator fix fix")
> > 
> > Acked-by: David Rientjes <rientjes@google.com>
> > 
> > Thanks!  Can you confirm that this is because CONFIG_BLOCK is disabled and 
> > not something else?
> 
> Unfortunately I've lost the information which build was responsible
> for this error (normally I keep it, but my script failed here because the
> same config introduced two new regressions). CONFIG_BLOCK sounds plausible
> here.
> 
> If necessary, I can repeat the last few hundred builds without this
> patch to find out what it was.
> 

Ok, thanks.  The only reason I ask is because if this is CONFIG_BLOCK then 
it shouldn't be arm specific and nothing else has reported it.  I'll do a 
randconfig loop with my arm cross-compiler and see if I can find any other 
issues.

--
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] 5+ messages in thread

* Re: [PATCH] mempool: add missing include
  2015-04-09 23:12     ` David Rientjes
@ 2015-04-09 23:22       ` Jim Davis
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Davis @ 2015-04-09 23:22 UTC (permalink / raw)
  To: David Rientjes
  Cc: Arnd Bergmann, linux-arm-kernel, Andrey Ryabinin, linux-mm,
	Andrew Morton, linux-kernel

On Thu, Apr 9, 2015 at 4:12 PM, David Rientjes <rientjes@google.com> wrote:
> On Thu, 9 Apr 2015, Arnd Bergmann wrote:
>
>> > > This is a fix^3 for the mempool poisoning patch, which introduces
>> > > a compile-time error on some ARM randconfig builds:
>> > >
>> > > mm/mempool.c: In function 'check_element':
>> > > mm/mempool.c:65:16: error: implicit declaration of function 'kmap_atomic' [-Werror=implicit-function-declaration]
>> > >    void *addr = kmap_atomic((struct page *)element);
>> > >
>> > > The problem is clearly the missing declaration, and including
>> > > linux/highmem.h fixes it.
>> > >
>> > > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> > > Fixes: a3db5a8463b0db ("mm, mempool: poison elements backed by page allocator fix fix")
>> >
>> > Acked-by: David Rientjes <rientjes@google.com>
>> >
>> > Thanks!  Can you confirm that this is because CONFIG_BLOCK is disabled and
>> > not something else?
>>
>> Unfortunately I've lost the information which build was responsible
>> for this error (normally I keep it, but my script failed here because the
>> same config introduced two new regressions). CONFIG_BLOCK sounds plausible
>> here.
>>
>> If necessary, I can repeat the last few hundred builds without this
>> patch to find out what it was.
>>
>
> Ok, thanks.  The only reason I ask is because if this is CONFIG_BLOCK then
> it shouldn't be arm specific and nothing else has reported it.

The random configuration file included in
http://marc.info/?l=linux-mm&m=142851035816974&w=2 doesn't have
CONFIG_BLOCK set.  That build failure was on an x86_32 system.

--
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] 5+ messages in thread

end of thread, other threads:[~2015-04-09 23:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09  9:46 [PATCH] mempool: add missing include Arnd Bergmann
2015-04-09 19:31 ` David Rientjes
2015-04-09 21:14   ` Arnd Bergmann
2015-04-09 23:12     ` David Rientjes
2015-04-09 23:22       ` Jim Davis

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