mirror of https://gitee.com/openkylin/linux.git
drivers/staging/android: don't use modular references in sync_debug.c
In commit 8a00448461
("staging/android:
create a 'sync' dir for debugfs information"), modular references were
introduced to this file. However if we look, we find:
drivers/staging/android/Makefile:obj-$(CONFIG_SYNC) += sync.o sync_debug.o
drivers/staging/android/Kconfig:config SYNC
drivers/staging/android/Kconfig: bool "Synchronization framework"
This file isn't currently buildable as a module, and hence the code
for module_exit is just dead code. Remove it and the module.h include.
Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4a3b3f47ed
commit
9c583af90a
|
@ -15,7 +15,6 @@
|
|||
*/
|
||||
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/export.h>
|
||||
#include <linux/file.h>
|
||||
#include <linux/fs.h>
|
||||
|
@ -335,13 +334,6 @@ static __init int sync_debugfs_init(void)
|
|||
}
|
||||
late_initcall(sync_debugfs_init);
|
||||
|
||||
static __exit void sync_debugfs_exit(void)
|
||||
{
|
||||
if (dbgfs)
|
||||
debugfs_remove_recursive(dbgfs);
|
||||
}
|
||||
module_exit(sync_debugfs_exit);
|
||||
|
||||
#define DUMP_CHUNK 256
|
||||
static char sync_dump_buf[64 * 1024];
|
||||
void sync_dump(void)
|
||||
|
|
Loading…
Reference in New Issue