[PATCH 2/6] staging: android: sync_debug.c: add include for linux/module.h

Mike Rapoport
2015-08-10T06:24:48Z

Otherwise an apptempt to build sync_debug.o as modules results in
compiler errors:
CC [M] drivers/staging/android/sync_debug.o
drivers/staging/android/sync_debug.c:226:1: warning: data definition has no type or storage class [enabled by default] late_initcall(sync_debugfs_init);
drivers/staging/android/sync_debug.c:226:1: error: type defaults to ‘int’ in declaration of ‘late_initcall’ [-Werror=implicit-int]
drivers/staging/android/sync_debug.c:226:1: warning: parameter names (without types) in function declaration [enabled by default]
drivers/staging/android/sync_debug.c:221:19: warning: ‘sync_debugfs_init’ defined but not used [-Wunused-function] static __init int sync_debugfs_init(void)

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
---
drivers/staging/android/sync_debug.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/staging/android/sync_debug.c b/drivers/staging/android/sync_debug.c
index 91ed2c4..a452975 100644
--- a/drivers/staging/android/sync_debug.c
+++ b/drivers/staging/android/sync_debug.c
@@ -26,6 +26,7 @@
#include <linux/uaccess.h>
#include <linux/anon_inodes.h>
#include <linux/time64.h>
+#include <linux/module.h>
#include "sync.h"

#ifdef CONFIG_DEBUG_FS
--
1.8.3.1