Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1203814
| From | Mike Rapoport <mike.rapoport@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/6] staging: android: sync_debug.c: add include for linux/module.h |
| Date | 2015-08-10 08:30 +0200 |
| Message-ID | <pVOKS-5XF-19@gated-at.bofh.it> (permalink) |
| References | <pVOKR-5XF-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] staging: android: allow building some drivers as a module Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-10 08:30 +0200
[PATCH 2/6] staging: android: sync_debug.c: add include for linux/module.h Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-10 08:30 +0200
[PATCH 1/6] staging: android: allow building timed_gpio as a module Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-10 08:30 +0200
[PATCH 3/6] staging: android: combine sync.o and sync_debug.o into sync-core.o Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-10 08:30 +0200
[PATCH 5/6] mm: export shmem_zero_setup for modules Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-10 08:30 +0200
Re: [PATCH 5/6] mm: export shmem_zero_setup for modules Christoph Hellwig <hch@infradead.org> - 2015-08-10 09:50 +0200
[PATCH 4/6] staging: android: allow building sync and sw_sync as a module Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-10 08:30 +0200
Re: [PATCH 0/6] staging: android: allow building some drivers as a module Greg Kroah-Hartman <greg@kroah.com> - 2015-08-10 17:40 +0200
Re: [PATCH 0/6] staging: android: allow building some drivers as a module Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-10 22:20 +0200
Re: [PATCH 0/6] staging: android: allow building some drivers as a module Greg Kroah-Hartman <greg@kroah.com> - 2015-08-10 23:10 +0200
Re: [PATCH 0/6] staging: android: allow building some drivers as a module Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-11 15:10 +0200
Re: [PATCH 0/6] staging: android: allow building some drivers as a module Greg Kroah-Hartman <greg@kroah.com> - 2015-08-11 20:20 +0200
[PATCH] staging: android: TODO: remove irrelevant parts Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-11 21:10 +0200
Re: [PATCH] staging: android: TODO: remove irrelevant parts Joe Perches <joe@perches.com> - 2015-08-12 01:40 +0200
[PATCH v2] staging: android: update TODO Mike Rapoport <mike.rapoport@gmail.com> - 2015-08-12 20:10 +0200
csiph-web