[linux-yocto] [kernel] yaffs2: remove the using of macro __DATE__ & __TIME__
Kevin Hao
kexin.hao at windriver.com
Wed Jun 11 18:20:36 PDT 2014
Using these macros will make the build non-deterministic and
is explicitly forbidden in the kernel.
Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
---
fs/yaffs2/yaffs_vfs.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index 894e185aa7b7..13de856f545a 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -3244,9 +3244,7 @@ static int yaffs_proc_read(char *page,
/* Print header first */
if (step == 0)
buf +=
- sprintf(buf,
- "Multi-version YAFFS built:" __DATE__ " " __TIME__
- "\n");
+ sprintf(buf, "Multi-version YAFFS\n");
else if (step == 1)
buf += sprintf(buf, "\n");
else {
@@ -3529,8 +3527,7 @@ static int __init init_yaffs_fs(void)
int error = 0;
struct file_system_to_install *fsinst;
- yaffs_trace(YAFFS_TRACE_ALWAYS,
- "yaffs built " __DATE__ " " __TIME__ " Installing.");
+ yaffs_trace(YAFFS_TRACE_ALWAYS, "yaffs Installing.");
mutex_init(&yaffs_context_lock);
@@ -3580,8 +3577,7 @@ static void __exit exit_yaffs_fs(void)
struct file_system_to_install *fsinst;
- yaffs_trace(YAFFS_TRACE_ALWAYS,
- "yaffs built " __DATE__ " " __TIME__ " removing.");
+ yaffs_trace(YAFFS_TRACE_ALWAYS, "yaffs removing.");
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0))
remove_proc_entry("yaffs", YPROC_ROOT);
--
1.9.3
More information about the linux-yocto
mailing list