]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.4.83/avr32-fix-missing-module.h-causing-build-failure-in-mimc200-fram.c.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.4.83 / avr32-fix-missing-module.h-causing-build-failure-in-mimc200-fram.c.patch
CommitLineData
f2c92fde
GKH
1From 5745d6a41a4f4aec29e2ccd591c6fb09ed73a955 Mon Sep 17 00:00:00 2001
2From: Paul Gortmaker <paul.gortmaker@windriver.com>
3Date: Fri, 10 Jan 2014 09:29:39 -0500
4Subject: avr32: fix missing module.h causing build failure in mimc200/fram.c
5
6From: Paul Gortmaker <paul.gortmaker@windriver.com>
7
8commit 5745d6a41a4f4aec29e2ccd591c6fb09ed73a955 upstream.
9
10Causing this:
11
12In file included from arch/avr32/boards/mimc200/fram.c:13:
13include/linux/miscdevice.h:51: error: field 'list' has incomplete type
14include/linux/miscdevice.h:55: error: expected specifier-qualifier-list before 'mode_t'
15arch/avr32/boards/mimc200/fram.c:42: error: 'THIS_MODULE' undeclared here (not in a function)
16
17Reported-by: Fengguang Wu <fengguang.wu@intel.com>
18Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
19Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
20Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
21Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
22Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
23Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
24
25---
26 arch/avr32/boards/mimc200/fram.c | 1 +
27 1 file changed, 1 insertion(+)
28
29--- a/arch/avr32/boards/mimc200/fram.c
30+++ b/arch/avr32/boards/mimc200/fram.c
31@@ -11,6 +11,7 @@
32 #define FRAM_VERSION "1.0"
33
34 #include <linux/miscdevice.h>
35+#include <linux/module.h>
36 #include <linux/proc_fs.h>
37 #include <linux/mm.h>
38 #include <linux/io.h>