summaryrefslogtreecommitdiff
path: root/arch/tile
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2017-01-24 16:39:21 +0000
committerThomas Gleixner <tglx@linutronix.de>2017-02-14 09:39:13 +0100
commitdba9a0babdd938a51d11ae81f9c40d07ca613f43 (patch)
treeeb763a29bf4f5e8a309cd1566016b999f9ef6e31 /arch/tile
parent3d837bc01c2153565333b2ce71d613b6e7cc761c (diff)
math64, tile: Fix build failure
The build of tilegx allmodconfig fails with: ../arch/tile/include/asm/div64.h:5:15: error: unknown type name 'u64' static inline u64 mul_u32_u32(u32 a, u32 b) ^~~ ../arch/tile/include/asm/div64.h:5:31: error: unknown type name 'u32' static inline u64 mul_u32_u32(u32 a, u32 b) ^~~ ../arch/tile/include/asm/div64.h:5:38: error: unknown type name 'u32' static inline u64 mul_u32_u32(u32 a, u32 b) ^~~ In file included from ../fs/ubifs/ubifs.h:26:0, from ../fs/ubifs/shrinker.c:42: ../include/linux/math64.h: In function 'mul_u64_u32_shr': ../arch/tile/include/asm/div64.h:9:21: error: implicit declaration of function 'mul_u32_u32' [-Werror=implicit-function-declaration] Include the linux/types.h in tiles div64.h to slve the problem. Fixes: 9e3d6223d209 ("math64, timers: Fix 32bit mul_u64_u32_shr() and friends") Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Acked-by: Chris Metcalf <cmetcalf@mellanox.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Link: http://lkml.kernel.org/r/1485275961-20112-1-git-send-email-sudip.mukherjee@codethink.co.uk Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/tile')
-rw-r--r--arch/tile/include/asm/div64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/tile/include/asm/div64.h b/arch/tile/include/asm/div64.h
index bf6161966dfa..9f765cdf09a5 100644
--- a/arch/tile/include/asm/div64.h
+++ b/arch/tile/include/asm/div64.h
@@ -1,6 +1,8 @@
#ifndef _ASM_TILE_DIV64_H
#define _ASM_TILE_DIV64_H
+#include <linux/types.h>
+
#ifdef __tilegx__
static inline u64 mul_u32_u32(u32 a, u32 b)
{