]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: fix build regession
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Mon, 18 Nov 2013 09:44:09 +0000 (11:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Nov 2013 23:07:35 +0000 (15:07 -0800)
commit51d981488eabab97590c74264d2acdc3a3780771
treec2780eedece128d0171c16f6ee7b17c118549b3a
parent19f6711c62bb2b07a9bb8e62deec1932c95dc5b2
sparc64: fix build regession

Commit 91f187390151 triggers build regression on sparc64.

include/linux/mm.h:1391:2: error: implicit declaration of function 'pgtable_cache_init' [-Werror=implicit-function-declaration]
arch/sparc/include/asm/pgtable_64.h:978:13: error: conflicting types for 'pgtable_cache_init' [-Werror]

It happens due headers include loop:

<linux/mm.h> -> <asm/pgtable.h> -> <asm/pgtable_64.h> ->
<asm/tlbflush.h> -> <asm/tlbflush_64.h> -> <linux/mm.h>

Let's drop <linux/mm.h> include from asm/tlbflush_64.h.
Build tested with allmodconfig.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/tlbflush_64.h