[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1437418902-23324-1-git-send-email-tim.gardner@canonical.com>
Date: Mon, 20 Jul 2015 13:01:42 -0600
From: tim.gardner@...onical.com
To: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Cc: Tim Gardner <tim.gardner@...onical.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>
Subject: [PATCH 4.2-rc3] macintosh/ans-lcd.c: Missing include causes compile failure
From: Tim Gardner <tim.gardner@...onical.com>
drivers/macintosh/ans-lcd.c:201:1: warning: data definition has no type or storage class
module_init(anslcd_init);
^
drivers/macintosh/ans-lcd.c:201:1: error: type defaults to 'int' in declaration of 'module_init' [-Werror=implicit-int]
gcc version 4.9.3 (Ubuntu 4.9.3-1ubuntu1)
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>
Signed-off-by: Tim Gardner <tim.gardner@...onical.com>
---
This is a compile regression from v4.2-rc2
drivers/macintosh/ans-lcd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/macintosh/ans-lcd.c b/drivers/macintosh/ans-lcd.c
index 1a57e88..36a0047 100644
--- a/drivers/macintosh/ans-lcd.c
+++ b/drivers/macintosh/ans-lcd.c
@@ -5,6 +5,7 @@
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/miscdevice.h>
#include <linux/fcntl.h>
#include <linux/init.h>
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists