Skip to content

Commit

Permalink
tile: fix build failure
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
  • Loading branch information
Sudip Mukherjee authored and Chris Metcalf committed Sep 28, 2015
1 parent 6ff33f3 commit 3a48d13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/tile/kernel/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a48d13

Please sign in to comment.