page_trace: fix compile error [1/1]
authorJiamin Ma <jiamin.ma@amlogic.com>
Mon, 30 Sep 2019 00:35:00 +0000 (08:35 +0800)
committerJiamin Ma <jiamin.ma@amlogic.com>
Mon, 30 Sep 2019 00:35:11 +0000 (08:35 +0800)
PD#SWPL-14800

Problem:
Compile error

Solution:
Fix compile error

Verify:
Compile pass

Change-Id: Iffb95fef1572e4ce17ec80f0765920b8afad8513
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
drivers/amlogic/memory_ext/page_trace.c

index 08f8d2c..a2ffc2d 100644 (file)
@@ -1621,6 +1621,7 @@ static const struct file_operations slabtrace_file_ops = {
 
 static int __init page_trace_module_init(void)
 {
+#ifndef CONFIG_64BIT
 
        if (!page_trace_disable)
                d_pagetrace = proc_create("pagetrace", 0444,
@@ -1629,6 +1630,7 @@ static int __init page_trace_module_init(void)
                pr_err("%s, create sysfs failed\n", __func__);
                return -1;
        }
+#endif
 
 #ifdef CONFIG_AMLOGIC_SLAB_TRACE
        if (slab_trace_en)