public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tile: fix build failure
@ 2015-09-07 14:36 Sudip Mukherjee
  2015-09-08 17:44 ` Chris Metcalf
  0 siblings, 1 reply; 8+ messages in thread
From: Sudip Mukherjee @ 2015-09-07 14:36 UTC (permalink / raw)
  To: Chris Metcalf; +Cc: linux-kernel, Sudip Mukherjee

When building with allmodconfig the build was failing with the error:

arch/tile/kernel/usb.c:70:1: warning: data definition has no type or storage class [enabled by default]
arch/tile/kernel/usb.c:70:1: error: type defaults to 'int' in declaration of 'arch_initcall' [-Werror=implicit-int]
arch/tile/kernel/usb.c:70:1: warning: parameter names (without types) in function declaration [enabled by default]
arch/tile/kernel/usb.c:63:19: warning: 'tilegx_usb_init' defined but not used [-Wunused-function]

Include linux/module.h to resolve the build failure.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 arch/tile/kernel/usb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/tile/kernel/usb.c b/arch/tile/kernel/usb.c
index f0da5a2..9f1e05e 100644
--- a/arch/tile/kernel/usb.c
+++ b/arch/tile/kernel/usb.c
@@ -22,6 +22,7 @@
 #include <linux/platform_device.h>
 #include <linux/usb/tilegx.h>
 #include <linux/init.h>
+#include <linux/module.h>
 #include <linux/types.h>
 
 static u64 ehci_dmamask = DMA_BIT_MASK(32);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] tile: fix build failure
@ 2017-01-24 16:39 Sudip Mukherjee
  2017-01-24 16:56 ` Chris Metcalf
  0 siblings, 1 reply; 8+ messages in thread
From: Sudip Mukherjee @ 2017-01-24 16:39 UTC (permalink / raw)
  To: Chris Metcalf
  Cc: linux-kernel, Sudip Mukherjee, Peter Zijlstra, Sudip Mukherjee

From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>

The build of tilegx allmodconfig was failing with errors like:
../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]

The simplest solution was to include the types header file.

Fixes: 9e3d6223d209 ("math64, timers: Fix 32bit mul_u64_u32_shr() and friends")
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
---

build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/194717687

 arch/tile/include/asm/div64.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/tile/include/asm/div64.h b/arch/tile/include/asm/div64.h
index bf61619..b1c885d 100644
--- a/arch/tile/include/asm/div64.h
+++ b/arch/tile/include/asm/div64.h
@@ -1,6 +1,7 @@
 #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)
 {
-- 
2.7.4

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

end of thread, other threads:[~2017-02-14  8:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-07 14:36 [PATCH] tile: fix build failure Sudip Mukherjee
2015-09-08 17:44 ` Chris Metcalf
2015-09-28  6:46   ` Sudip Mukherjee
  -- strict thread matches above, loose matches on Subject: below --
2017-01-24 16:39 Sudip Mukherjee
2017-01-24 16:56 ` Chris Metcalf
2017-02-13 22:58   ` Sudip Mukherjee
2017-02-13 23:01     ` Stephen Rothwell
2017-02-14  8:48       ` Thomas Gleixner

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